Repository navigation
Let one ClickStack instance carry the MCP instructions for a multi-environment agent (2.46.0) - #10
Draft
mfroembgen wants to merge 1 commit into
Draft
mfroembgen wants to merge 1 commit into
mfroembgen wants to merge 1 commit into
Conversation
An agent that connects one ClickStack MCP server per environment receives the same 1.6 KB tool-selection policy from each of them in every session. With DISABLE_MCP_INSTRUCTIONS=true the API's MCP server sends none, so one instance can carry the policy for all of them.
mfroembgen
force-pushed
the
fork-sync/app-2.46.0-rebase
branch
from
November 23, 2026 09:02
58cf84b to
4732504
Compare
mfroembgen
force-pushed
the
fork-sync/app-2.46.0-mcp-instructions
branch
from
November 23, 2026 09:02
5f73fa3 to
086c676
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An agent that connects one ClickStack MCP server per environment gets the same 1.5 KB tool-selection policy once per environment in every session. With
DISABLE_MCP_INSTRUCTIONS=true, an instance sends none, so one instance can carry the policy for all of them.Summary
serverInstructions(context) + if DISABLE_MCP_INSTRUCTIONS: return undefined # McpServer sends no instructions PromQL enabled ? base + PromQL : baseStacked on #9 (2.46.0). It supersedes #8: the same commit,
086c676de(wascf0156c66), replayed without changes (git range-diffshows=). It stays an opt-in on top of the base stack rather than a fifth base patch until Marco decides to keep it. It lands with the force-push of #9's stack, then this branch's commit on top.Evidence
createTestClientreads 1,553 characters of instructions.After: with
DISABLE_MCP_INSTRUCTIONS=true, it reads none.vitest run src/mcp: 30 files, 614 tests pass;tsrs --noEmitand ESLint (0 errors) pass. Main runs onai/release-2.46.0-mcp-instructions.Merge Danger
Door: two-way
Opt-in; unset, nothing changes.
Blast Radius: opt-in