From 2deb0e250f4c61a3c90197ebc0d9a7b24127ff2e Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:33:37 -0500 Subject: [PATCH] docs(mcp): correct session metadata key (#52602) Co-authored-by: rekram1-node --- services/www/src/docs/content/mcp-servers.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/www/src/docs/content/mcp-servers.mdx b/services/www/src/docs/content/mcp-servers.mdx index 6c0d9b13adb..4951db4ff3b 100644 --- a/services/www/src/docs/content/mcp-servers.mdx +++ b/services/www/src/docs/content/mcp-servers.mdx @@ -353,7 +353,7 @@ Use permission actions to hide or deny tools without disconnecting their server. ## Context -For calls made on behalf of a session, OpenCode sends the session ID in `CallToolRequest.params._meta.sessionID`. This applies to direct tools and Code Mode over stdio and Streamable HTTP: +For calls made on behalf of a session, OpenCode sends the session ID in `CallToolRequest.params._meta["ai.opencode/sessionID"]`. This applies to direct tools and Code Mode over stdio and Streamable HTTP: ```json { @@ -361,7 +361,7 @@ For calls made on behalf of a session, OpenCode sends the session ID in `CallToo "params": { "name": "lookup", "arguments": { "query": "example" }, - "_meta": { "sessionID": "ses_..." } + "_meta": { "ai.opencode/sessionID": "ses_..." } } } ```