Skip to content

fix(gateway): add missing MCP route policy entries#30267

Merged
noanflaherty merged 1 commit into
mainfrom
credence/gateway-mcp-policy-entries
May 11, 2026
Merged

fix(gateway): add missing MCP route policy entries#30267
noanflaherty merged 1 commit into
mainfrom
credence/gateway-mcp-policy-entries

Conversation

@credence-the-bot
Copy link
Copy Markdown
Contributor

@credence-the-bot credence-the-bot Bot commented May 11, 2026

What

Adds three missing entries to gateway/src/auth/ipc-route-policy.ts:

  • internal_mcp_add
  • internal_mcp_list
  • internal_mcp_remove

All three follow the same shape as the existing internal_mcp_* entries (internal.write scope, svc_gateway service).

Why

gateway/src/__tests__/ipc-route-policy-coverage.test.ts is a lint test that walks the daemon route source files and asserts every gateway-only route has a matching IPC policy entry. Three internal_mcp routes were missing — failing the test on main and on every open PR's CI run.

Verification

cd gateway && bun test src/__tests__/ipc-route-policy-coverage.test.ts
# 22 pass, 0 fail

Previously failing 3 tests (internal_mcp_add, internal_mcp_list, internal_mcp_remove) all green.

Scope

3-line addition, no behavior change. Unblocks Lint, Type Check & Test on all PRs touching files in scope.


Open in Devin Review

The `ipc-route-policy-coverage.test.ts` lint asserts that every
gateway-only daemon route has a matching IPC policy entry in
`gateway/src/auth/ipc-route-policy.ts`. Three internal_mcp routes
were missing - causing the test (and every PR's CI) to fail on main:

- internal_mcp_add
- internal_mcp_list
- internal_mcp_remove

All three follow the same shape as the existing internal_mcp_*
entries (`internal.write` scope, `svc_gateway` service).
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@noanflaherty noanflaherty merged commit f7757a1 into main May 11, 2026
14 checks passed
@noanflaherty noanflaherty deleted the credence/gateway-mcp-policy-entries branch May 11, 2026 06:50
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