mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix(mcp): default Notion registry entry to streamable HTTP with OAuth
This commit is contained in:
parent
3818562df8
commit
5a5136de17
2 changed files with 13 additions and 2 deletions
|
|
@ -185,8 +185,9 @@
|
|||
"icon_url": "https://cdn.simpleicons.org/notion",
|
||||
"category": "Productivity",
|
||||
"registry_url": "https://registry.modelcontextprotocol.io/servers/com.notion%2Fmcp",
|
||||
"transport": "sse",
|
||||
"url": "https://mcp.notion.com/sse",
|
||||
"transport": "http",
|
||||
"url": "https://mcp.notion.com/mcp",
|
||||
"auth_type": "oauth2",
|
||||
"env_vars": []
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -106,6 +106,16 @@ class TestMCPRegistryFile:
|
|||
assert "command" not in slack
|
||||
assert "args" not in slack
|
||||
|
||||
def test_notion_defaults_to_streamable_http_oauth(self, registry_path):
|
||||
"""Notion's MCP server should default to streamable HTTP at /mcp with OAuth, not SSE at /sse."""
|
||||
with open(registry_path, "r") as f:
|
||||
data = json.load(f)
|
||||
notion = next(s for s in data["servers"] if s["name"] == "notion")
|
||||
assert notion["transport"] == "http"
|
||||
assert notion["url"] == "https://mcp.notion.com/mcp"
|
||||
assert notion["auth_type"] == "oauth2"
|
||||
assert "/sse" not in notion["url"]
|
||||
|
||||
def test_atlassian_uses_authv2_endpoint(self, registry_path):
|
||||
"""Atlassian's MCP server should default to the streamable HTTP authv2 endpoint."""
|
||||
with open(registry_path, "r") as f:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue