Skip to content

JSON schema issue #8

@mattepiu

Description

@mattepiu

Opencode + local gtp-OSS-20B

It fails "in LLM", locallama reports:
srv log_server_r: request: POST /v1/chat/completions 127.0.0.1 500
got exception: {"code":500,"message":"JSON schema conversion failed:\nUnrecognized schema: {"description":"The call template for the UTCP Manual endpoint."}\nUnrecognized schema: {"description":"The call template for the UTCP Manual endpoint."}","type":"server_error"}
srv log_server_r: request: POST /v1/chat/completions 127.0.0.1 500
got exception: {"code":500,"message":"JSON schema conversion failed:\nUnrecognized schema: {"description":"The call template for the UTCP Manual endpoint."}\nUnrecognized schema: {"description":"The call template for the UTCP Manual endpoint."}","type":"server_error"}
srv log_server_r: request: POST /v1/chat/completions 127.0.0.1 500
got exception: {"code":500,"message":"JSON schema conversion failed:\nUnrecognized schema: {"description":"The call template for the UTCP Manual endpoint."}\nUnrecognized schema: {"description":"The call template for the UTCP Manual endpoint."}","type":"server_error"}

Setup in opencode config: (same as serena and other mcp tools)
"code-mode": {
"type": "local",
"command": ["npx", "@utcp/code-mode-mcp"],
"enabled": true,
"environment": {
"UTCP_CONFIG_FILE": "mcp\.utcp_config.json"
}
}

in .utcp_config.json:
{
"load_variables_from": [
{
"variable_loader_type": "dotenv",
"env_file_path": ".env"
}
],
"tool_repository": {
"tool_repository_type": "in_memory"
},
"tool_search_strategy": {
"tool_search_strategy_type": "tag_and_description_word_match"
},
"manual_call_templates": [
{
"name": "openlibrary",
"call_template_type": "http",
"http_method": "GET",
"url": "https://openlibrary.org/static/openapi.json",
"content_type": "application/json"
}
],
"post_processing": [
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions