Rishabh Verma
Results
2
comments of
Rishabh Verma
> You can pull the header from the MCP supplied context object if you're running a streamable-http server > > from fastmcp import FastMCP, Context > > mcp = FastMCP()...
``` import asyncio from mcp import ClientSession, StdioServerParameters from mcp.client.stdio import stdio_client async def test(): params = StdioServerParameters(command="python", args=["main.py"]) async with stdio_client(params) as (stdio, write): async with ClientSession(stdio, write) as...