[PR #69] [MERGED] Feat/sse mcp server connection #153

Closed
opened 2026-02-15 21:15:08 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/mcpo/pull/69
Author: @nohaz-h
Created: 4/11/2025
Status: Merged
Merged: 4/12/2025
Merged by: @tjbck

Base: devHead: feature/sse-mcp-server-support


📝 Commits (3)

  • 8c8a35e Merge pull request #42 from open-webui/dev
  • 96047bc Merge pull request #53 from open-webui/dev
  • 6fbc97e Added ability to connect to SSE MCP server

📊 Changes

1 file changed (+31 additions, -15 deletions)

View changed files

📝 src/mcpo/main.py (+31 -15)

📄 Description

I have added the ability to connect to SSE based MCP server by using mcp native sse client. The configuration can be made from command line by adding the "sse url://path/to/server" format as the server command or through config.json following Cursor's config example Cursor docs. The config.json can also be used to connect to both STDIO MCP servers and SSE MCP servers.

Usage of API key has not been tested with this implementation.

Changelog Entry

Description

Added the ability to connect to SSE based MCP server by using mcp native sse client.
Have not added any token based authorization to the request.

Added

added mcp.client.sse.sse_client module.

Changed

added mcptype to distinguish between stdio vs sse parameters

Deprecated

None

Removed

None

Fixed

None

Security

None

Breaking Changes

None

Additional Information

- use format below to connect to SSE MCP server
      uv run mcpo -- sse http://localhost:8001/sse

- use format below for config.json to connect to SSE MCP server
{
  "mcpServers": {
    "mcp_sse": {
      "url": "http://127.0.0.1:8001/sse"
    },
    "mcp_stdio": {
      "command": "python",
      "args": [
        "mcp_stdio.py"
      ]
    }
  }
}

Screenshots or Videos

None

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/mcpo/pull/69 **Author:** [@nohaz-h](https://github.com/nohaz-h) **Created:** 4/11/2025 **Status:** ✅ Merged **Merged:** 4/12/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feature/sse-mcp-server-support` --- ### 📝 Commits (3) - [`8c8a35e`](https://github.com/open-webui/mcpo/commit/8c8a35e07ebd910ec600a598d80a9601cd4f6861) Merge pull request #42 from open-webui/dev - [`96047bc`](https://github.com/open-webui/mcpo/commit/96047bc297427f8387f48cd89697b7f1f0f7c841) Merge pull request #53 from open-webui/dev - [`6fbc97e`](https://github.com/open-webui/mcpo/commit/6fbc97e506941a976bb3a0f472d3be18b81a73b1) Added ability to connect to SSE MCP server ### 📊 Changes **1 file changed** (+31 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/mcpo/main.py` (+31 -15) </details> ### 📄 Description I have added the ability to connect to SSE based MCP server by using mcp native sse client. The configuration can be made from command line by adding the "sse url://path/to/server" format as the server command or through config.json following Cursor's config example [Cursor docs](https://docs.cursor.com/context/model-context-protocol). The config.json can also be used to connect to both STDIO MCP servers and SSE MCP servers. Usage of API key has not been tested with this implementation. # Changelog Entry ## Description Added the ability to connect to SSE based MCP server by using mcp native sse client. Have not added any token based authorization to the request. ## Added added mcp.client.sse.sse_client module. ## Changed added mcptype to distinguish between stdio vs sse parameters ## Deprecated None ## Removed None ## Fixed None ## Security None ## Breaking Changes None ## Additional Information - use format below to connect to SSE MCP server uv run mcpo -- sse http://localhost:8001/sse - use format below for config.json to connect to SSE MCP server { "mcpServers": { "mcp_sse": { "url": "http://127.0.0.1:8001/sse" }, "mcp_stdio": { "command": "python", "args": [ "mcp_stdio.py" ] } } } ## Screenshots or Videos None --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:15:08 -05:00
yindo closed this issue 2026-02-15 21:15:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/mcpo#153