MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / MCPConnectionHTTP

Class MCPConnectionHTTP

mcp-builder/scripts/connections.py:100–109  ·  view source on GitHub ↗

MCP connection using Streamable HTTP.

Source from the content-addressed store, hash-verified

98
99
100class MCPConnectionHTTP(MCPConnection):
101 """MCP connection using Streamable HTTP."""
102
103 def __init__(self, url: str, headers: dict[str, str] = None):
104 super().__init__()
105 self.url = url
106 self.headers = headers or {}
107
108 def _create_context(self):
109 return streamablehttp_client(url=self.url, headers=self.headers)
110
111
112def create_connection(

Callers 1

create_connectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected