Skip to content

fix(cli): agent-instructions follow-ups from zcode review of #1486 - #1487

Merged
github-actions[bot] merged 1 commit into
mainfrom
claude/agent-instructions-followups
Oct 3, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
claude/agent-instructions-followups

Conversation

@Dumbris

@Dumbris Dumbris commented Oct 3, 2026

Copy link
Copy Markdown
Member

Description

Fixes three LOW findings from the zcode (GLM-5.3) review of #1486:

  • Config load failure (cmd/mcpproxy/agent_instructions_cmd.go): mcpproxy agent-instructions used to discard a config load error and print the default retrieve_tools workflow with exit 0. It now warns on stderr, the same way --with-servers already does.
  • upstream_servers line: the default snippet always said to use upstream_servers. With disable_management or read_only_mode that tool is absent (internal/server/mcp.go management guard), so the line is now omitted in that case.
  • Godoc (internal/profile/policy.go): HasAllowRules had been inserted inside Decide's doc comment, so Decide lost its godoc. The method now sits below Decide. No behaviour change.

Not needed for v0.70.0-rc.3.

Testing

  • I have tested these changes locally
  • I have added/updated tests that prove my fix is effective or my feature works
  • All existing tests pass

New test: TestBuildAgentInstructions_OmitsUpstreamServersWithoutManagement. go test ./cmd/mcpproxy/ -run AgentInstructions and ./internal/profile/ pass.

🤖 Generated with Claude Code

…pstream_servers when management is off

zcode review of #1486 (all low):
- agent-instructions silently printed the retrieve_tools workflow when the
  config failed to load; it now warns on stderr like --with-servers does.
- the default snippet always prescribed upstream_servers, which
  disable_management / read_only_mode remove from the surface; it is now
  omitted when management tools are off.
- move CompiledPolicy.HasAllowRules below Decide so Decide keeps its godoc.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2779cf5
Status: ✅  Deploy successful!
Preview URL: https://48473b60.mcpproxy-docs.pages.dev
Branch Preview URL: https://claude-agent-instructions-fo.mcpproxy-docs.pages.dev

View logs

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: claude/agent-instructions-followups

Available Artifacts

  • archive-darwin-amd64 (31 MB)
  • archive-darwin-arm64 (28 MB)
  • archive-linux-amd64 (19 MB)
  • archive-linux-arm64 (17 MB)
  • archive-windows-amd64 (31 MB)
  • archive-windows-arm64 (27 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (27 MB)
  • installer-dmg-darwin-arm64 (24 MB)
  • smart-mcp-proxymcpproxy-goG3OTFG.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 37131941385 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 25.00000% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/mcpproxy/agent_instructions_cmd.go 30.00% 7 Missing ⚠️
internal/profile/policy.go 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved (Model B): Paperclip review verdicts = ACCEPT and qa-gate green at this head SHA. Arming auto-merge; GitHub merges when all required checks pass.

@github-actions
github-actions Bot merged commit eef407c into main Oct 3, 2026
45 checks passed
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.

2 participants