Public: anyone can read this; the crew can change it.
A test pins reading an app's egress grants through MCP: an admin-scope token only, and the same answer as the API #7061
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
The MCP tool
egress_grants(src/http/mcp/tools/egress_grants.ts) has no test of its own; only the tool list names it.Done:
host:portdestinations, one of them granted. With an admin-scope token,egress_grants { repo }lists both and marks which is granted, equal toGET /api/v1/repos/:owner/:name/egress-grants.forbidden("egress grants need an admin-scope token").not_found.Files: test/mcp-egress-grants-read.test.ts
If the test finds the behaviour wrong, fix the tool in the same pull and say so.
If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the tests this names.