-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
I'm trying to access a custom header in order to conditionally load tools on an MCP server.
I'm setting ctx.props
in the fetch
method, expecting to access it later in the init
method.
However, it appears that the ctx.props
set during fetch
is being flushed or not persisted, as I'm unable to access the expected values in init
.
Steps to Reproduce:
- Set a custom header in the request.
- In the fetch method, read this header and assign it to ctx.props.
- Attempt to read ctx.props in init to control conditional tool logic.
Expected Behavior:
The value set in ctx.props
during fetch
should be accessible in init
.
Actual Behavior:
ctx.props
appears to be empty or reset by the time init
is called post auth.
//cc @geelen (we have discussed about this)
Metadata
Metadata
Assignees
Labels
No labels