Mcp sse streamable http
Skill kjuhwa/skills-hub/skills/mcp-integration/mcp-sse-streamable-http
Connect an agent to a remote MCP server via HTTP+SSE or Streamable HTTP transport.From its SKILL.md
npx -y skills add kjuhwa/skills-hub --skill mcp-sse-streamable-httpAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.2 KB, 416 tokens by cl100k_base, as published. Nobody here has run it
mcp-sse-streamable-http
Use MCPServerSse for HTTP+SSE MCP servers or MCPServerStreamableHttp for Streamable HTTP servers. Both run tool calls in your Python process, unlike HostedMCPTool.
When to apply
When you run a private MCP server (not exposed to the internet) that your Python process can reach, and you want tool execution to happen locally rather than on OpenAI's infrastructure.
HTTP+SSE
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
name="SSE Server",
params={"url": "http://localhost:8000/sse"},
cache_tools_list=True,
) as mcp_server:
agent = Agent(
name="Assistant",
instructions="Use the tools to answer questions.",
mcp_servers=[mcp_server],
)
result = await Runner.run(agent, "What tools do you have?")
print(result.final_output)
Streamable HTTP
from agents.mcp import MCPServerStreamableHttp
async with MCPServerStreamableHttp(
name="Streamable HTTP Server",
params={"url": "http://localhost:8000/mcp"},
) as mcp_server:
agent = Agent(name="Assistant", mcp_servers=[mcp_server])
result = await Runner.run(agent, "Hello!")
Key notes
- Both require the server to be running before the agent starts
cache_tools_list=Truecaches the tool list to avoid repeatedlist_tools()calls- Both support
tool_filterfor exposing only a subset of available tools MCPServerStreamableHttpis preferred for new servers;MCPServerSsefor legacy servers- Add
mcp_config={"convert_schemas_to_strict": True}on the agent for better schema compatibility
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.