Repository navigation
Let one ClickStack instance carry the MCP instructions for a multi-environment agent - #8
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
marked this pull request as draft
November 18, 2026 20:45
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.6 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 #7 (2.45.0):
2.44.0is already published and the image workflow never overwrites a version, so this patch ships with2.45.0. It lands with the force-push of #7's stack, then this branch's commit on top.Evidence
createTestClientreads 1,560 characters of instructions.After: with
DISABLE_MCP_INSTRUCTIONS=true, it reads none.vitest run src/mcp: 29 files, 578 tests pass;tsrs --noEmitand ESLint (0 errors) pass. Main runs onai/release-2.45.0-mcp-instructions.Merge Danger
Door: two-way
Opt-in; unset, nothing changes.
Blast Radius: opt-in