-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
I want to know if the mcp server tools write by myself can receive the RunContextWrapper in Agent sdk.
Without mcp server:
agent = Agent(tools=[....])
result = await Runner.run(context=UserInfo(...))
@function_tool:
def test(ctx: RunContextWrapper[UserInfo]):
.....
With mcp server
@mcp.tool()
def test()
===> Can I access the runcontext wrapper here
jonemo and jihun-im