Skip to content

Conversation

melvinodsa
Copy link
Contributor

While connecting to mcp filesystem server we are getting the following error

failed to initialize: RPC error -32603: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "params",
      "protocolVersion"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "undefined",
    "path": [
      "params",
      "capabilities"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "undefined",
    "path": [
      "params",
      "clientInfo"
    ],
    "message": "Required"
  }
]

Couldn't find much info around the documentation nor code. Just by adding protocolVersion, capabilities, clientInfo the issues seems to be going away. Adding client info seems to be on the right path as in documentation it mentions to share the same. But not sure on protocolVersion or capabilities.

I am open to changes. With these changes I am able to connect to MCP Fileserver

jhaynie added a commit to agentuity/mcp-golang that referenced this pull request Mar 22, 2025
@Joffref
Copy link

Joffref commented Apr 7, 2025

+1 for merging this, any ETA?

Joffref added a commit to blaxel-ai/toolkit that referenced this pull request Apr 7, 2025
@ecekyn ecekyn merged commit 6f6550e into metoro-io:main Apr 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants