Skip to content

fix(mcp): allow configured private network endpoints#1318

Open
YOMXXX wants to merge 1 commit into
XiaomiMiMo:devfrom
YOMXXX:fix/1315-mcp-docker-bridge-ssrf
Open

fix(mcp): allow configured private network endpoints#1318
YOMXXX wants to merge 1 commit into
XiaomiMiMo:devfrom
YOMXXX:fix/1315-mcp-docker-bridge-ssrf

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 25, 2026

Copy link
Copy Markdown

Summary

  • allow explicitly configured remote MCP servers to use private RFC1918/ULA endpoints such as Docker bridge addresses
  • keep WebFetch/default SSRF checks strict and continue blocking metadata/link-local endpoints
  • add regression coverage for Docker bridge MCP config and scoped private-network URL validation

Fixes #1315

Tests

  • bun test test/util/ssrf.test.ts --timeout 30000
  • bun test test/mcp/lifecycle.test.ts --timeout 30000 --test-name-pattern "remote MCP can connect"
  • bun test test/mcp/headers.test.ts --timeout 30000
  • bun typecheck
  • git diff --check

Note: full bun test test/mcp/lifecycle.test.ts --timeout 30000 still has the pre-existing dev-branch failure Claude Code local MCP server is pending until explicitly connected (expected pending, actual connected); the new Docker bridge regression passes.

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