Skip to content

Migrate to FastMCP 2.0 with stdio transport#17

Open
tuki0918 wants to merge 3 commits intomainfrom
fastmcp-stdio
Open

Migrate to FastMCP 2.0 with stdio transport#17
tuki0918 wants to merge 3 commits intomainfrom
fastmcp-stdio

Conversation

@tuki0918
Copy link
Copy Markdown
Owner

@tuki0918 tuki0918 commented Oct 12, 2025

This PR migrates the Eagle MCP Server from fastapi_mcp to the official FastMCP 2.0 SDK, replacing the remote transport with stdio transport for better local usage.

MCP config

    "eagle-mcp-server": {
      "command": "uvx",
      "args": [
        "--from", "git+https://github.com/tuki0918/eagle-mcp-server@fastmcp-stdio",
        "eagle-mcp-server"
      ]
    }

MCP config: devepment

    "eagle-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "</path/to/repo>",
        "eagle-mcp-server"
      ]
    }

@tuki0918 tuki0918 linked an issue Oct 12, 2025 that may be closed by this pull request
Co-authored-by: Junpei Kawamoto <[email protected]>
Copilot AI review requested due to automatic review settings October 23, 2025 02:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the Eagle MCP Server from fastapi_mcp to the official FastMCP 2.0 SDK, transitioning from HTTP-based remote transport to stdio transport for improved local usage and compatibility with the MCP protocol standard.

Key Changes:

  • Replaced fastapi_mcp with fastmcp>=2.12.4 dependency
  • Converted FastAPI route-based architecture to FastMCP tool-based architecture
  • Changed from HTTP/remote transport to stdio transport for MCP communication

Reviewed Changes

Copilot reviewed 21 out of 23 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
pyproject.toml Updated dependency from fastapi-mcp to fastmcp>=2.12.4 and added project scripts/build configuration
main.py Simplified to entry point wrapper calling server.main() instead of FastAPI/uvicorn server
server.py New file implementing FastMCP server with stdio transport and tool registration
tools/*.py New tool modules replacing route-based endpoints with @mcp.tool decorators
tools/init.py New module exporting tool registration functions
routes/*.py Removed FastAPI router implementations (replaced by tools)
schemas/*.py Removed Pydantic request/response models (replaced by inline FastMCP annotations)
docs/* Removed OpenAPI documentation files (no longer applicable with stdio transport)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <[email protected]>
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.

Migrate to fastmcp

4 participants