Skip to content

server/everything reports error when requesting tools #2818

@JLLeitschuh

Description

@JLLeitschuh

Describe the bug

Attempting to make a request to the everything server for tools using the tools/list method results in an error about being unable to read roots on an undefined property.

To Reproduce

Run the everything MCP server using NPM npm run start:streamableHttp

Initialize the server and extract the mcp-session-id

curl -s -i -X POST http://localhost:3001/mcp -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "singularity", "version": "0.0.1"}}}' | grep mcp-session-id

Then use that mcp-session-id to make a tools call:

curl -X POST 'http://localhost:3001/mcp' \
  -H 'accept: application/json, text/event-stream' \
  -H 'content-type: application/json' \
  -H 'mcp-protocol-version: 2025-06-18' \
  -H 'mcp-session-id: [ID FROM ABOVE]' \
  --data-raw '{"method":"tools/list","params":{"_meta":{"progressToken":2}},"jsonrpc":"2.0","id":1}'

Response throws an error about being unable to read "roots" on undefined property:

event: message
id: da8d4665-3a14-4c4b-84db-6c4d67f67e66_1759535272050_q8ol27zk
data: {"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"Cannot read properties of undefined (reading 'roots')"}}

Expected behavior

Should be able to read data from the tools/list endpoint via curl using the mcp-session-id

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions