Skip to content

mcp的使用有bug,总是漏传参数,导致调用失败? #67

@masx200

Description

@masx200

mcp的使用有bug,总是漏传参数,导致调用失败?

{
  "selectedAuthType": "custom-llm-api",
  "mcpServers": {
    "tavily": {
      "httpUrl": "https://mcp.tavily.com/mcp/?tavilyApiKey=<tavily-api-key>",
      "isActive": true,
      "name": "tavily",
      "type": "streamableHttp",
      "tags": [],
      "baseUrl": "https://mcp.tavily.com/mcp/?tavilyApiKey=<tavily-api-key>"
    }
  },
  "theme": "GitHub"
}

就拿这个tavily搜索来说,我的问题是"使用搜索工具在网上搜索一些东西"。

在调用search工具时会漏掉参数query,一直报错。

在调用extract工具时会漏掉参数urls,一直报错。

同样的工具,在claude code中就可以正常使用。

我也在mcp调试器里面用过,确实是必填参数。

/mcp  │
╰──────────╯


ℹ Configured MCP servers:

  🟢 tavily - Ready (4 tools)
    - tavily_search
    - tavily_extract
    - tavily_crawl
    - tavily_map
│  > 说出 tavily_extract和 tavily_search有哪些 输入参数  │
╰───────────────────────────────────────────────────────╯

✦
  根据工具定义,这两个工具的输入参数如下:


  tavily_search:
   - 无输入参数(空对象)
   - 用于搜索网络实时信息


  tavily_extract:
   - 无输入参数(空对象)
   - 用于从特定网页提取内容


  两个工具都不需要任何必需的输入参数,直接调用 即可使用。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions