Skip to content

Implement the official MCP Python SDK quickstart - #1

Merged
turfin-logic merged 4 commits into
masterfrom
codex/official-mcp-sdk
Sep 3, 2026
Merged

turfin-logic merged 4 commits into
masterfrom
codex/official-mcp-sdk

Conversation

@turfin-logic

@turfin-logic turfin-logic commented Sep 3, 2026 •

Copy link
Copy Markdown
Owner

Problem

The repository claimed to be an MCP quickstart but implemented a private action JSON loop instead of the current protocol.

Root cause

There was no official SDK, handshake, schema, stdio transport or protocol test.

Changes

  • Use the official Python MCP SDK 2.1.1 FastMCP server and typed hello_world tool.
  • Add a real stdio ClientSession example that initializes and calls the server.
  • Add pinned runtime/dev dependencies, tests, lint/type CI and accurate limitations.

Checks

  • Local: py_compile passed; pytest -q 1 passed; ruff check . passed; real python client.py stdio round trip passed.
  • Remote CI: first run failed only on mypy SDK typing; fixed with a narrow SDK type ignore and content-block narrowing. A new run is pending.

Limitations

This remains a one-tool, stdio-only example with no authentication, network service or persistence. No merge or deployment is performed.

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@turfin-logic
turfin-logic marked this pull request as ready for review September 3, 2026 14:53
@turfin-logic
turfin-logic merged commit e8a2d16 into master Sep 3, 2026
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.

1 participant