Skip to content

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
fork-sync/app-2.46.0-rebasefrom
fork-sync/app-2.46.0-mcp-instructions
Draft

mfroembgen wants to merge 1 commit into
fork-sync/app-2.46.0-rebasefrom
fork-sync/app-2.46.0-mcp-instructions

Conversation

@mfroembgen

@mfroembgen mfroembgen commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

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 : base

Stacked on #9 (2.46.0). It supersedes #8: the same commit, 086c676de (was cf0156c66), replayed without changes (git range-diff shows =). 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

  • Before: an MCP client created with createTestClient reads 1,553 characters of instructions.
    After: with DISABLE_MCP_INSTRUCTIONS=true, it reads none.
  • vitest run src/mcp: 30 files, 614 tests pass; tsrs --noEmit and ESLint (0 errors) pass. Main runs on ai/release-2.46.0-mcp-instructions.

Merge Danger

Door: two-way

Opt-in; unset, nothing changes.

Blast Radius: opt-in

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
mfroembgen force-pushed the fork-sync/app-2.46.0-rebase branch from 58cf84b to 4732504 Compare November 23, 2026 09:02
@mfroembgen
mfroembgen force-pushed the fork-sync/app-2.46.0-mcp-instructions branch from 5f73fa3 to 086c676 Compare November 23, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant