Repository navigation
fix(mcp): enforce App tool audiences across Connect - #4865
Merged
reachjalil merged 3 commits intoSep 10, 2026
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
reachjalil
force-pushed
the
fix/direct-app-resources
branch
from
September 10, 2026 22:52
efa344d to
fe4e440
Compare
reachjalil
force-pushed
the
fix/connect-app-tool-audiences
branch
from
September 10, 2026 22:53
b29152e to
1b4207e
Compare
reachjalil
added a commit
that referenced
this pull request
Sep 10, 2026
…4864) * fix(server): resolve direct Connect Apps through private host * fix(server): retain direct App policy identity in launch leases * fix(mcp): enforce App tool audiences across Connect (#4865) * fix(connect): enforce MCP tool audiences across App helpers * fix(app): honor ordered permissions for MCP App calls * fix(app): compose direct and private App permissions
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependencies
Stacked on #4864 (
fix/direct-app-resources), which builds on #4863. This delta consumes their trusted launch and authoritative policy-namespace contract. Merge/rebase and revalidate bottom-up.Summary
Apply MCP App tool audiences consistently across direct, compatibility and ordinary execution paths, while making valid App-only helpers callable through Connect.
execute_capabilityagainst the trusted original lease, actual resource binding and effective ordered permissions.Audience comes from the trusted private surface, not public arguments. Den write-scope requirements, grants, credential selection, ordinary resource denial and provider-specific routing remain unchanged.
Verification
Signed head:
1b4207ef7d9f9bf6a96d3463a8850caffb679307.Exact parent-PR base and merge-base:
fe4e440cb398ec20d40df136051298c39164d61c.Passed on that exact head, exit 0:
pnpm --filter openwork-server exec bun --conditions=development test src/mcp-app-host.test.ts src/connect-mcp-server-catalog.test.ts src/mcp.passive-inventory.test.ts— 93 passed.DATABASE_URL=mysql://root:[email protected]:9/unused DATABASE_REDIS_URL=redis://127.0.0.1:9 pnpm --filter @openwork-ee/den-api exec bun --conditions=development test test/external-connection-proxy.test.ts— 24 passed.DATABASE_URL=mysql://root:[email protected]:9/unused DATABASE_REDIS_URL=redis://127.0.0.1:9 pnpm --filter @openwork-ee/den-api exec bun --conditions=development test test/codemode-tools.test.ts— 11 passed.pnpm --filter openwork-server typecheckpnpm --filter @openwork-ee/den-api exec tsc --noEmit --pretty falseTotal: 128 passed, zero failed. The database URLs above are deliberately unused local test settings; the focused tests use isolated mock authentication and provider boundaries. Only the local generated MCP dependency bundles were built for Den typechecking.
Verdict and remaining coverage
Incomplete. The existing
connector-search-intentjourney and database-backed search-divergence assertions were extended but not executed. No full Den/Electron journey, live provider or enterprise deployment was exercised. These results do not establish universal MCP Apps conformance.Hosted CI/review are pending. No merge or deployment is included.