native_tool_call_adapter icon indicating copy to clipboard operation
native_tool_call_adapter copied to clipboard

Parse the MCP tool description

Open irreg opened this issue 1 year ago • 1 comments

Currently, it is written in a format different from the standard tools, so it is not being parsed.

irreg avatar Aug 26 '25 14:08 irreg

@irreg

After the feature to dump to a file appeared, I see that the description of the instruments is completely missing.

dump:


    MCP SERVERS

    The Model Context Protocol (MCP) enables communication between the system and MCP servers that provide additional tools and resources to extend your capabilities. MCP servers can be one of two types:

    1. Local (Stdio-based) servers: These run locally on the user's machine and communicate via standard input/output
    2. Remote (SSE-based) servers: These run on remote machines and communicate via Server-Sent Events (SSE) over HTTP/HTTPS

    # Connected MCP Servers

    When a server is connected, you can use the server's tools via the `use_mcp_tool` tool, and access the server's resources via the `access_mcp_resource` tool.

    ## mcp-clickhouse-docker (`docker run --rm --network host -i -e CLICKHOUSE_HOST -e CLICKHOUSE_PORT -e CLICKHOUSE_USER -e CLICKHOUSE_PASSWORD -e CLICKHOUSE_SECURE -e CLICKHOUSE_VERIFY -e CLICKHOUSE_CONNECT_TIMEOUT -e CLICKHOUSE_SEND_RECEIVE_TIMEOUT -e CLICKHOUSE_DATABASE mcp-clickhouse`)

    ### Available Tools

    ====

    CAPABILITIES


Here's how this part under the Available Tools heading looks in the original:



### Available Tools
- list_tables: List available ClickHouse tables in a database, including schema, comment,
row count, and column count.
    Input Schema:
		{
      "type": "object",
      "properties": {
        "database": {
          "title": "Database",
          "type": "string"
        },
        "like": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Like"
        },
        "not_like": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Not Like"
        }
      },
      "required": [
        "database"
      ]
    }

- run_select_query: Run a SELECT query in a ClickHouse database
    Input Schema:
		{
      "type": "object",
      "properties": {
        "query": {
          "title": "Query",
          "type": "string"
        }
      },
      "required": [
        "query"
      ]
    }

====

CAPABILITIES

--

This problem is relevant at the time of the corresponding commit dc0f1eb68476f21b3a33a329435662ed5c981f65.

R-omk avatar Sep 06 '25 09:09 R-omk