Skip to content

fix: improve code_execution tool description for AI agents#339

Merged
Dumbris merged 1 commit intomainfrom
fix/code-execution-tool-description
Mar 11, 2026
Merged

fix: improve code_execution tool description for AI agents#339
Dumbris merged 1 commit intomainfrom
fix/code-execution-tool-description

Conversation

@Dumbris
Copy link
Contributor

@Dumbris Dumbris commented Mar 11, 2026

Summary

  • Add explicit synchronous call_tool warning — agents were incorrectly using await on the sync function
  • Add MCP response parsing guidance — show how to extract data via JSON.parse(res.result.content[0].text)
  • Clarify return value semantics — last evaluated expression is the output
  • Sync mcp_routing.go from outdated ES5.1 description to modern ES2020+/TypeScript, matching mcp.go

Test plan

  • go build ./cmd/mcpproxy — personal edition builds
  • go build -tags server ./cmd/mcpproxy — server edition builds
  • go test ./internal/server -race -run TestCodeExec — all code execution tests pass
  • go test ./internal/server -race -run "TestRouting|TestMCP" — routing tests pass
  • Pre-commit hooks pass (gofmt, OAS coverage, go build)

🤖 Generated with Claude Code

Add synchronous call_tool warning, MCP response parsing guidance, and
return value semantics. Sync mcp_routing.go from outdated ES5.1 to
modern ES2020+/TypeScript description matching mcp.go.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1226bf9
Status: ✅  Deploy successful!
Preview URL: https://0b757a21.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-code-execution-tool-desc.mcpproxy-docs.pages.dev

View logs

@github-actions
Copy link

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/code-execution-tool-description

Available Artifacts

  • archive-darwin-amd64 (25 MB)
  • archive-darwin-arm64 (23 MB)
  • archive-linux-amd64 (14 MB)
  • archive-linux-arm64 (13 MB)
  • archive-windows-amd64 (25 MB)
  • archive-windows-arm64 (22 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (28 MB)
  • installer-dmg-darwin-arm64 (25 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 22964830372 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit 75dd19a into main Mar 11, 2026
23 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