mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 11:41:02 +02:00
More MCP management
This commit is contained in:
parent
0cb844144a
commit
962b806795
5 changed files with 274 additions and 1 deletions
|
|
@ -49,6 +49,19 @@ class Config:
|
|||
|
||||
self.request(input)
|
||||
|
||||
def delete(self, keys):
|
||||
|
||||
# The input consists of system and prompt strings
|
||||
input = {
|
||||
"operation": "delete",
|
||||
"keys": [
|
||||
{ "type": v.type, "key": v.key }
|
||||
for v in keys
|
||||
]
|
||||
}
|
||||
|
||||
self.request(input)
|
||||
|
||||
def list(self, type):
|
||||
|
||||
# The input consists of system and prompt strings
|
||||
|
|
@ -67,7 +80,7 @@ class Config:
|
|||
"type": type,
|
||||
}
|
||||
|
||||
object = self.request(input)["directory"]
|
||||
object = self.request(input)
|
||||
|
||||
try:
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue