REQ-MCP-010: Per-identity MCP key authorization is opt-in but default-deny once enabled

← Requirements

What it requires

  1. Given an unregistered identity, When a tool is checked, Then it passes; Given a registered identity with no keys, Then every tool is denied; Given a grant of "filesystem.*" at READ and an exact grant of "filesystem.read_file" at WRITE, Then the exact grant wins for that tool; Given a granter lacking the key or holding a lower level, Then grant_from returns ENTROPIC_ERROR_PERMISSION_DENIED; an unregistered granter or grantee returns ENTROPIC_ERROR_IDENTITY_NOT_FOUND; serialize/deserialize round-trips the full set.
tier
NOT_RUN

Where it lives

  • src/facade7
  • src/mcp6

See it on the map

How it is met

implemented byresults (108 tests)check_accesscheck_mcp_authorizationentropic_check_mcp_keyentropic_deserialize_mcp_keysentropic_grant_mcp_keyentropic_grant_mcp_key_fromentropic_list_mcp_keysentropic_revoke_mcp_keyentropic_serialize_mcp_keysfind_best_matchhas_accessis_enforcedserver_wildcard108 absent108 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (108)

Reached through calls

108 tests: 108 absent

testresultlinked byimplementers exercisedcalls away
MCP key full round-trip on configured handle (best effort)absentinferred5 of 131
MCP key grant and check round-tripabsentinferred4 of 13: check_access, entropic_check_mcp_key, entropic_grant_mcp_key, entropic_revoke_mcp_key1
MCPKeySet READ does not authorize WRITEabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet WRITE implies READabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet concurrent grant, revoke, and checkabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet concurrent serialize and deserializeabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet deserialize skips invalid entriesabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet empty denies allabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet exact match READabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet exact match WRITEabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet full wildcard matchabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet grant can downgradeabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet grant updates levelabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet most specific wins: exact over wildcardabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet most specific wins: server over fullabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet revoke removes accessabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet serialize roundtripabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
MCPKeySet server wildcard matchabsentinferred3 of 13: find_best_match, has_access, server_wildcard1
create registers MCP keysabsentinferred2 of 13: check_access, is_enforced1
entropic_check_mcp_key on configured handle returns int verdictabsentinferred2 of 13: check_access, entropic_check_mcp_key1
entropic_check_mcp_key returns -1 on NULL handleabsentinferred2 of 13: check_access, entropic_check_mcp_key1
entropic_check_mcp_key returns -1 on unconfigured handleabsentinferred2 of 13: check_access, entropic_check_mcp_key1
update refreshes MCP keysabsentinferred2 of 13: check_access, is_enforced1
Grant from valid granter succeedsabsentinferred1 of 13: check_access1
Grant then check succeedsabsentinferred1 of 13: check_access1
Identity with READ-only keys is denied WRITE accessabsentinferred1 of 13: check_access1
MCP key serialize/deserialize round-tripabsentinferred1 of 13: entropic_serialize_mcp_keys1
Registered empty identity denies allabsentinferred1 of 13: check_access1
Revoke then check failsabsentinferred1 of 13: check_access1
Serialize all roundtripabsentinferred1 of 13: check_access1
Unregister disables enforcementabsentinferred1 of 13: check_access1
Unregistered identity passes authorizationabsentinferred1 of 13: check_access1
destroy unregisters MCP keysabsentinferred1 of 13: is_enforced1
entropic_deserialize_mcp_keys on unconfigured handle returns INVALID_STATEabsentinferred1 of 13: entropic_deserialize_mcp_keys1
entropic_deserialize_mcp_keys with empty JSON object on configured handleabsentinferred1 of 13: entropic_deserialize_mcp_keys1
entropic_deserialize_mcp_keys with malformed JSON returns INVALID_CONFIGabsentinferred1 of 13: entropic_deserialize_mcp_keys1
entropic_grant_mcp_key on NULL handle returns INVALID_HANDLEabsentinferred1 of 13: entropic_grant_mcp_key1
entropic_grant_mcp_key on configured handle exercises mcp_auth pathabsentinferred1 of 13: entropic_grant_mcp_key1
entropic_grant_mcp_key on unconfigured handle returns INVALID_STATEabsentinferred1 of 13: entropic_grant_mcp_key1
entropic_grant_mcp_key_from on configured handle exercises grant_fromabsentinferred1 of 13: entropic_grant_mcp_key_from1
entropic_grant_mcp_key_from on unconfigured handle returns INVALID_STATEabsentinferred1 of 13: entropic_grant_mcp_key_from1
entropic_list_mcp_keys on configured handle returns JSON or NULLabsentinferred1 of 13: entropic_list_mcp_keys1
entropic_list_mcp_keys returns NULL on NULL handleabsentinferred1 of 13: entropic_list_mcp_keys1
entropic_list_mcp_keys returns NULL on unconfigured handleabsentinferred1 of 13: entropic_list_mcp_keys1
entropic_revoke_mcp_key on configured handle exercises mcp_auth pathabsentinferred1 of 13: entropic_revoke_mcp_key1
entropic_revoke_mcp_key on unconfigured handle returns INVALID_STATEabsentinferred1 of 13: entropic_revoke_mcp_key1
entropic_serialize_mcp_keys on configured handle returns JSONabsentinferred1 of 13: entropic_serialize_mcp_keys1
entropic_serialize_mcp_keys returns NULL on NULL handleabsentinferred1 of 13: entropic_serialize_mcp_keys1
entropic_serialize_mcp_keys returns NULL on unconfigured handleabsentinferred1 of 13: entropic_serialize_mcp_keys1
is_enforced correctabsentinferred1 of 13: is_enforced1
A call that fails identically is refused rather than retried absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Anti-spiral hard block stops dispatch and emits absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Anti-spiral hard block uses derived default when sentinel setabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Auto approve skips callbackabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Chained POST_TOOL_CALL hooks: last write winsabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Circuit breaker at threeabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Duplicate counter resetsabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Duplicate detection skipsabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Error result not cached for dedupabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Headless mode denies without callbackabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Max tool calls per turnabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Multiple tool calls in batchabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
POST_TOOL_CALL fires on duplicate rejection with kindabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
POST_TOOL_CALL fires on schema rejection with kindabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
POST_TOOL_CALL hook transforms duplicate-rejection contentabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
POST_TOOL_CALL hook transforms schema-rejection contentabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
POST_TOOL_CALL hook transforms successful tool result contentabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
POST_TOOL_CALL with *modified_json == NULL leaves content untouchedabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
PRE/POST_TOOL_CALL fire for successful callsabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
PRE_TOOL_CALL cancel short-circuits dispatch and still fires POSTabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Permission denied returns feedbackabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Process single tool callabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Schema validation rejects invalid enum valueabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Schema validation rejects missing required fieldabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Tool call history records successful executionsabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Tool emits directives → ToolExecutor extracts + dispatches themabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
Tool executor processes calls via ServerManagerabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
effective_max_tool_calls_per_turn overrides global limitabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#111: POST_TOOL_CALL hook returning malformed UTF-8 is absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#143: an argument-free call serialises as an object absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#143: an argument-free call to a no-required-fields tool absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#143: dispatch converts a throwing tool into a tool errorabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#168: a rewritten payload carrying bad UTF-8 is sanitized, absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#168: the rewrite is visible to the dup cache and POST hookabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#190: a structured JSON error counts as a failure everywhereabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#211: a tier that declares an EMPTY allowlist may call nothingabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#83: allowlisted tool dispatches normallyabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#83: empty locked_tier bypasses enforcementabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#83: no map wired = pass-through (pre-v2.5.2 behavior)absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#83: off-allowlist tool is rejected_unauthorized at dispatchabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#83: tier with no allowlist entry is unrestrictedabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
mcp.bash.timeout_seconds reaches the dispatched bash serverabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
process_single_call completes with locked_tier setabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
v2.14.0: schema validation enforces declared minimum and maximumabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
v2.14.6: a headless host still dispatches engine directivesabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced4
gh#158: a delegated child's read satisfies its parent's write — absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#158: a session's tool call never resolves inside another absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#158: repeated sandbox swaps race nothing a concurrent absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#158: two sessions reading and writing through ONE filesystem absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#158: two sessions writing todos through ONE entropic server absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#168: a PRE_TOOL_CALL hook's modified args reach the toolabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#168: a malformed modification is refused, not half-appliedabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#168: a modification that renames the tool is refusedabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#168: a non-zero return still cancels, modification or notabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced5
gh#158: clearing the default conversation releases the default absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced6
gh#158: each session's todo list is its ownabsentinferred3 of 13: check_access, check_mcp_authorization, is_enforced6
gh#158: ending a session's conversation releases its read absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced6
gh#158: read-before-write is judged per session — another absentinferred3 of 13: check_access, check_mcp_authorization, is_enforced6