AppMcpToolContext
Defined in: mcp.ts:82
Context passed to app MCP tool handlers at call time.
Properties
Section titled “Properties”appId:
string
Defined in: mcp.ts:83
recursiveSessionId?
Section titled “recursiveSessionId?”
optionalrecursiveSessionId?:string|null
Defined in: mcp.ts:85
Recursive session ID from the MCP transport, if available.
recursiveSessionIdTrusted?
Section titled “recursiveSessionIdTrusted?”
optionalrecursiveSessionIdTrusted?:boolean
Defined in: mcp.ts:91
Whether recursiveSessionId came from an authoritative transport binding
(spawn token / hint / pending claim) rather than a tool argument. Absent
means unknown — treat as untrusted. Scope-enforcing wrappers rely on this.