• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 24725780665

21 Apr 2026 01:42PM UTC coverage: 66.476% (+0.02%) from 66.452%
24725780665

push

github

web-flow
Set MCP parent on resource entities for server-scoped policies (#4965)

When serverName is configured on the Cedar authorizer, resource entities
(Tool, Prompt, Resource) need an MCP parent so that server-scoped Cedar
policies like `resource in MCP::"github"` evaluate correctly. Without
this parent, those policies silently match nothing and deny all requests.

Add serverName parameter to CreateEntitiesForRequest and build an
MCP::"<serverName>" parent UID when non-empty. Thread a.serverName
through all four authorize* methods in core.go.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

19 of 19 new or added lines in 2 files covered. (100.0%)

18 existing lines in 5 files now uncovered.

58435 of 87904 relevant lines covered (66.48%)

63.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.38
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc