mirror of
https://github.com/dnlbauer/cordra-mcp.git
synced 2026-09-10 21:55:30 +00:00
feat: replace CordraPy with http requests
This commit is contained in:
@@ -59,8 +59,8 @@ async def list_cordra_schemas() -> str:
|
||||
# Extract the names from the schema objects
|
||||
schema_names = []
|
||||
for schema in schemas:
|
||||
if isinstance(schema, dict) and 'name' in schema:
|
||||
schema_names.append(schema['name'])
|
||||
if isinstance(schema, dict) and 'content' in schema and 'name' in schema['content']:
|
||||
schema_names.append(schema['content']['name'])
|
||||
|
||||
result = {
|
||||
"schemas": schema_names,
|
||||
|
||||
Reference in New Issue
Block a user