mcp-agent icon indicating copy to clipboard operation
mcp-agent copied to clipboard

support for remote mcp servers

Open rkreddyp opened this issue 9 months ago • 5 comments

hello is there support for remote mcp servers with /sse ?

rkreddyp avatar Mar 06 '25 18:03 rkreddyp

hello is there support for remote mcp servers with /sse ?

@rkreddyp there is! I would love for you to contribute an example using a remote MCP server. All that's needed is updating the mcp_agent.config.yaml server with a url and transport: "sse":

https://github.com/lastmile-ai/mcp-agent/blob/main/examples/mcp_basic_agent/mcp_agent.config.yaml#L11

something like this:

mcp:
  servers:
    remote-mcp:
      transport: "sse"
      url: "https://..."

Full configuration possibilities: https://github.com/lastmile-ai/mcp-agent/blob/main/src/mcp_agent/config.py#L69

saqadri avatar Mar 06 '25 18:03 saqadri

Adding onto this @saqadri is there support for websocket servers?

Nicba1010 avatar Mar 10 '25 18:03 Nicba1010

Adding onto this @saqadri is there support for websocket servers?

@Nicba1010 are there any web socket servers you can point me to? Currently I only implemented SSE

saqadri avatar Mar 11 '25 01:03 saqadri

The MCP package contains a websocket server implementation. Image

Nicba1010 avatar Mar 11 '25 10:03 Nicba1010

+1 for websocket support as well.

pmohan6 avatar Mar 28 '25 02:03 pmohan6