Skip to content

Mcp cannot return correct result #425

@zhaopengme

Description

@zhaopengme

mcp 查询结果为空

我用 curl 查询结果也是空

curl -X POST http://127.0.0.1:7777/mcp \
  -H "Authorization: Bearer xxxxxxx" \
  -H "mcp-session-id: session-1757041383513-y5kw089i42l" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"query_tasks","arguments":{"filter":{"completed":false,"priority":5},"limit":10}}}'
{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{\n  \"tasks\": [],\n  \"total\": 0\n}"}]}}%

麻烦了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions