Skip to content

Conversation

@epps
Copy link
Contributor

@epps epps commented Mar 31, 2025

To test the proxy, simple run the following FastMCP server in a virtual env:

from mcp.server.fastmcp import FastMCP

mcp = FastMCP("Demo")


@mcp.tool()
def add(a: int, b: int) -> int:
    """Add two numbers"""
    return a + b


if __name__ == "__main__":
    mcp.run(transport="sse")

When running, you should be able to see the the SSE even endpoint at http://localhost:8000/sse in your browser.

Stepping through the integration test should provide a good overview of how the proxy functions.

To run the inspector and test tool listing and usage, in your terminal run:

npx @modelcontextprotocol/inspector go run main.go http://localhost:8000/sse proxy-logs.txt

All you have to do is click "Connect" in the inspector UI.

Screen Shot 2025-03-31 at 11 16 57 AM Screen Shot 2025-03-31 at 11 10 38 AM

@epps epps requested review from a user, RiddhiBagadiaa and simba-git March 31, 2025 17:48
@epps
Copy link
Contributor Author

epps commented Apr 2, 2025

Closing PoC PR in favor of improved proxy implementation.

@epps epps closed this Apr 2, 2025
@simba-git simba-git deleted the feature/stdio-sse-proxy-poc branch April 3, 2025 08:55
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.

2 participants