SDKs: expose MCP server instruction policy - #2386
Conversation
Signed-off-by: Oliver Slapinski <olliefromcanada@gmail.com>
|
Thanks for the Node support here — the fix is clean, well-tested, and matches the existing Since For each language, focused unit/wire-level tests covering explicit Once all languages are covered, please mark the PR ready for review. Thanks again! |
|
Implemented the requested cross-SDK expansion in Node.js, Python, Go, Rust, .NET, and Java now all expose and forward the option for create and resume. Each language has wire/serialization coverage for explicit |
|
Follow-up |
|
Th |
Fixes #2379
Summary
trueandfalsevalues through bothsession.createandsession.resumemainThe generated runtime protocol already supports
allowAllMcpServerInstructions. This fills the missing public create/resume path consistently across every SDK without changing the generated protocol schema.Security
Enabling this option broadens the session's instruction trust boundary. Each public API documents that caveat, and no SDK enables it by default or coerces an omitted value.
Tests
Deterministic wire/serialization tests cover explicit
true, explicitfalse, and omission for create and resume in every SDK.Local validation:
git diff --checkfor the PR delta: passedRust is covered by the repository's fresh CI matrix; its local toolchain was unavailable in this workspace.