itwanger / itwanger/PaiCLI-Python

mcp initialize issue

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
92
Forks
22
PR merge metrics
No merged PRs in 30d

Description

after I run
uv run paicli mcp serve --transport http --port 3000

and then connect from @modelcontextprotocol/inspector

there is an initialize issue

Invalid result for initialize: [
{ "expected": "string", "code": "invalid_type", "path": [ "protocolVersion" ], "message": "Invalid input" },
{ "expected": "object", "code": "invalid_type", "path": [ "capabilities" ], "message": "Invalid input" },
{ "expected": "string", "code": "invalid_type", "path": [ "serverInfo", "version" ], "message": "Invalid input" } ]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run uv run paicli mcp serve --transport http --port 3000, then connect with @modelcontextprotocol/inspector to reproduce the initialize error. Trace the MCP initialize response and inspect how protocolVersion, capabilities, and serverInfo.version are produced. Done means the inspector accepts the initialize result without validation errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.