-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add integration tests for a server with SSE transport #17
Comments
Would be nice to be able to instantiate multiple servers, and mount each on a base_path.
It will make having a single monolithic server make more sense, and (when auth is supported) make it easier to implement ACLs. |
Would also be nice to add middleware support. |
Definitely agree, the way I'm imagining that SSE should work is that the transport will register itself onto an existing http server as a handler. My personal use case is that I want to use our existing http servers (gin) to also host MCP servers so we'll definitely support this. I don't quite have a lot of the specifics fleshed out in my mind right now, I'll probably write up a proposal later this week after looking at some of the implementations in the official sdks. |
We're thinking of cloud hosting ours, using gRPC with a custom auth middleware, and doing something like running a local (generated) grpc proxy. For now, we'll do something like store a JWT locally which is passed along for authentication / authorization to the proxy, which unlocks certain endpoints. (This is a short term hack until they figure out a real auth / auth model.) |
Yeah makes sense, the current proposal PR for auth (support for JWT and oauth) is here modelcontextprotocol/specification#101 if anyone happens to find this later |
Integration tests should:
The text was updated successfully, but these errors were encountered: