-
Notifications
You must be signed in to change notification settings - Fork 34
MCP safe outputs with Claude CLI integration #726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MCP safe outputs with Claude CLI integration #726
Conversation
…ensive tests Co-authored-by: pelikhan <[email protected]>
…mports Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot revert last commit |
…arnings Reverted commit b2a3f2d which downgraded MCP SDK to v0.2.0. Now back to using Go MCP SDK v0.4.0 with proper API usage: - Fixed Client.Connect calls to include nil ClientSessionOptions parameter - Replaced deprecated NewCommandTransport with CommandTransport struct literal - Replaced deprecated NewStreamableClientTransport with StreamableClientTransport struct literal - All tests passing and linter clean Co-authored-by: pelikhan <[email protected]>
Reverted commit b2a3f2d as requested. Now back to using Go MCP SDK v0.4.0 with proper API usage and fixed deprecation warnings. Commit: 8f15ff6 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot add a test in the vitest JavaScript test suite that uses the MCP typescript SDK to list tools, call tools, validate file is generated. |
Co-authored-by: pelikhan <[email protected]>
…s across workflows
…ng across workflows
…14d1-4802-81ec-ee5946e7c01c
…cessing across workflows
…proved environment variable handling
|
@copilot fix the tests, do not modify the source code. |
Co-authored-by: pelikhan <[email protected]>
Fixed the failing tests by updating test expectations to match the current MCP server implementation. Key changes:
All tests now pass without modifying source code. Commit: 1e57d70 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…726) * Initial plan * Implement run-doctor workflow for CI failure investigation Co-authored-by: pelikhan <[email protected]> * Merge branch 'main' into copilot/fix-725 * Add missing workflow_run expressions to allow run-doctor workflow compilation Co-authored-by: pelikhan <[email protected]> * Remove user-controlled strings from workflow_run expressions for security Co-authored-by: pelikhan <[email protected]> * Merge remote-tracking branch 'origin/main' into copilot/fix-725 * Merge remote-tracking branch 'origin/main' into copilot/fix-725 * Merge branch 'main' into copilot/fix-725 * Remove unused GitHub Actions workflow_run expressions from AllowedExpressions * Merge branch 'main' into copilot/fix-725
hasSafeOutputsEnabledto common helper insafe_outputs.goHasSafeOutputsEnabledhelperMCP_LOG_LEVEL: debugandDEBUG: mcp:*environment variables withmcp_debug: trueinput parameter that leverages Claude Code CLI's native--mcp-debugflag for better debugging integration when safe outputs or custom environment variables are configuredDEBUG: claude:mcp:*environment variable entries while keeping the generalDEBUG: mcp:*entries for MCP debugging.aw/safe-outputs/mcp-server.jswith configuration, output file, and executable run script for local testing.mdand.lock.ymlfiles as requestedworkflowDatabefore accessing its fields to resolve staticcheck warningRecent Fix Details
Fixed failing tests by updating test expectations to match the current MCP server implementation:
✅ Tool naming consistency - Updated test expectations from underscored names (
create_issue,missing_tool) to hyphenated names (create-issue,missing-tool) to match actual MCP server behavior✅ Missing-tool prompt generation test - Updated
TestMissingToolPromptGenerationto match current implementation which only adds header text without detailed instructions✅ MCP server tool tests - Fixed all
TestSafeOutputsMCPServer_*tests to use correct tool names and handle disabled tool scenarios properly✅ Disabled tool handling - Updated disabled tool test to include at least one enabled tool for server startup and accept "Tool not found" error message for disabled tools
All tests now pass consistently without modifying the source code implementation.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.