Version 1.1
This document holds the rules of the ProcurAuth protocol [PROTOCOL] that only MCP needs.
The changelog in docs/ of the repository gives the changes of each version.
A paragraph keeps its number in later versions. A paragraph that leaves this document keeps its number, with the word "Unused" and a pointer. A new paragraph gets a new number, or a letter after the number of the paragraph that it continues.
This document is the MCP binding of the protocol. Its place is bindings/mcp/ in the repository of this specification. It names no product, and any product can use it.
In this document, "protocol N.M" is paragraph N.M of [PROTOCOL], and "protocol N" is section N of [PROTOCOL]. "protocol 2, Key" is the term Key in section 2. This binding cites the rules of the protocol and does not restate them.
The words MUST, MUST NOT, SHOULD and MAY have the meaning of [RFC 2119] and [RFC 8174].
1.Introduction
This binding applies to a service with an MCP endpoint that follows the protocol (protocol 1.3). It also applies to an edge in front of such a service. It gives:
A service without an MCP endpoint does not need this binding. The protocol gives its refusals (protocol 10.3).
This binding is for the MCP revision 2026-07-28 [MCP 2026-07-28]. A request of this revision has params._meta["io.modelcontextprotocol/protocolVersion"] [CONTRACT, 2.5]. A service can also accept the legacy revisions of [CONTRACT, 2.4]. The rules of this binding apply to each revision, except where a paragraph names one revision.
This binding adds no member to the questions and the answers of the protocol (protocol 1.2). It adds no field to an MCP message [CONTRACT, 0.3]. It gives only the MCP form of the rules of the protocol.
2.Terms
The terms of protocol section 2 apply. This binding adds these terms:
- MCP endpoint: the route of a service that receives MCP requests, for example
POST /mcp[CONTRACT, 2.1]. - MCP request: one JSON-RPC request that a client sends to the MCP endpoint.
- Tool: a tool of the service, which
tools/listnames andtools/callruns [MCP 2026-07-28]. - Tool error: a result of
tools/callwithisErrortrue, which MCP calls a tool execution error [MCP 2026-07-28, tools]. It is not a JSON-RPC error. - Map of the tools: the table of the service that gives each tool its action and the arguments that name its resource (3.2).
- Standalone key: a key that a service checks by itself, with no edge (section 7). It is not a key of the protocol (protocol 2, Key).
3.The work of the service
The service does the MCP work: the MCP endpoint, the map of the tools and the list of the tools. For each tool, the service asks the decision point and it applies the answer (3.5a) [CONTRACT, section 9]. The service is the PEP of each tool (protocol 1.3). The edge decides only the action access on the service (protocol 8.3). It answers no MCP method.
A call that only asks the client for input (MCP InputRequiredResult) is not a use. For this call, the service asks the action of the tool without context.usage (protocol 6.6, 10.1). The later call that gives the input and runs the tool is the use of 3.4. For an action that lists a budget, a kept true answer of the first call never starts this use (protocol 10.1). A reason of protocol 17.1 in the answer does not refuse the first call, because it runs no action: the use needs an approval later. The call asks the client for input.
Each tool follows protocol section 17 (protocol 5.2b, 17.7) [CONTRACT, 9.1], also a tool that only reads. For each call, the service asks as protocol 10.1 says, with no effect. When the PDP answers a reason of protocol 17.1, the service builds op and view of the call (protocol 17.3a). It asks without context.usage, with context.approval.effect (protocol 17.1). After the approval, at the run, it sends the question of 3.4 with context.usage and the effect (protocol 17.2). A refused or void approval takes no unit, and the service learns only the verdict (5.7).
The op of a call has the member tool, the name of the tool. It also has each argument that decides what the tool does, and each default that the tool applies, for example a number of rows. It has no control argument (5.7). The view shows each argument that the agent chose (protocol 17.3a).
A tool that only asks the owner of the key has no action in the map of the tools [CONTRACT, 9.1]. It sends no other data out of the system and it changes no resource. It is not a use. It sends no question and needs no approval.
A request for an MCP method with no tool asks the action mcp.session on the resource of type service with the id of the service (protocol 4.1). Such methods are initialize, ping, server/discover and the notifications. The service declares the action mcp.session in its action document (protocol 5.2). When this action lists a budget, each such request is one use (protocol 6.4). Such a request cannot wait (protocol 17.7a). The confirm of a grant has no effect on this action (protocol 17.8), so the PDP gives no approval for it. A tool never uses the action mcp.session, because the action cannot be approved. A reason of protocol 17.1 for such a request is a fault of the PDP: the service answers as 5.1 says, with no effect and no submission.
A tool can need permissions on other actions or on other resources (protocol 5.5a). The action of the tool is the action of the use: the service declares it in its documentation and names it in its questions. The service asks the other permissions as protocol 10.1a shows, with context.permission_only equal to true and with context.usage only for the action of the tool. When one answer is false, the service refuses the call as 5.1 says. The PDP never gives a reason of protocol 17.1 for such a permission, because the approval covers the action of the use only (protocol 15, item 8). A confirm on such a permission limits the scope and asks for no approval. A service that gets such a reason for it answers HTTP 503 and -32603, as for an answer that is not valid. Section 10 gives an example.
4.The list of the tools
For tools/list, the service names only the tools whose action the PDP lets the subject do in the service. For each tool, it asks the action of the tool on the service, with context.match = subtree (protocol 4.4). It asks these questions without context.usage, with one item for each action of its tools, not for each tool. It sends them in one Access Evaluations request, or in several requests when the items are above the maxima of the PDP (protocol 6.6, 6.11, 10.7a). It names a tool when the answer for the action of the tool is true.
The inputSchema of each tool SHOULD describe the control arguments of 5.7 as optional arguments. The description of each tool SHOULD say two things. The first is that the call can need an approval. The second is that the retry after the approval repeats the same arguments and exactly one of approval_ref, lease_s and until. An agent reads only tools/list, so it needs this text.
For one tools/list, tools with the same action share one item (4.1), so the items are not more than the actions of the action document (protocol 5.3c). Example: with 20 actions and one tools/list each minute on each service, the PDP gets approximately 17 requests (333 items) each second for 1,000 services. For 10,000 services, it gets approximately 167 requests (3,333 items) each second. The kept answers of 4.3 take one entry for each subject and action of one service. For 1,000 subjects and 20 actions, they take 20,000 entries, approximately 2 MB at 100 bytes each. This number is the same for 1,000 and for 10,000 services.
5.Refusals of a service
Protocol 10.3 applies to an MCP request: the service fails closed and sends no context.reason to the client. The exceptions are the code budget_exceeded in the tool error of 5.3 and the codes of 5.7a. The service maps each answer of the PDP as the list below shows:
falsewith no reason, or with any other reason: ontools/call, HTTP 200 and-32602, as for an unknown tool [CONTRACT, 3.6]. The next two items hold the exceptions. On another MCP request, HTTP 403 with the body of 5.1b.falsewith a reason of protocol 17.1 for the action of the tool: ontools/call, the result of 5.7 or the tool error of 5.7a. On another MCP request, which cannot wait (protocol 17.7a), HTTP 403 with the body of 5.1b.falsewithbudget_exceeded: ontools/call, HTTP 200 and the tool error of 5.3. On another MCP request, HTTP 429 withRetry-After, and the JSON-RPC error of 5.4.- No answer, an HTTP error, or an answer that is not valid: HTTP 503 and the JSON-RPC error of 5.5.
On an MCP request other than tools/call, the HTTP 403 of 5.1 has the body of the JSON-RPC error -32001 with the message forbidden. The error has no data. Example: {"jsonrpc": "2.0", "id": 7, "error": {"code": -32001, "message": "forbidden"}}. The code is the code that COAZ-MCP gives to each denial (section 11). The service sends this body only when it knows the id (5.6a).
On tools/call, a false answer with budget_exceeded gives a tool error, not a JSON-RPC error. The tool error has the code budget_exceeded, retryable true, and retry_after with the seconds that protocol 10.3 gives to Retry-After. The service writes a fixed message and copies no value of the request. content[0].text holds structuredContent as compact JSON [CONTRACT, 5.1, 6.1]. For a request of revision 2026-07-28, the result also has resultType complete [CONTRACT, 2.5]. The result has this form:
{ "resultType": "complete", "content": [ { "type": "text", "text": "{\"error\":{\"code\":\"budget_exceeded\",\"message\":\"The budget of this action is spent.\",\"retryable\":true,\"retry_after\":12}}" } ], "structuredContent": { "error": { "code": "budget_exceeded", "message": "The budget of this action is spent.", "retryable": true, "retry_after": 12 } }, "isError": true}This binding adds the code budget_exceeded to the common codes of a tool error of [CONTRACT, 6.2] (section 12, item 3). It tells that a budget of the action is spent, and it is retryable.
On an MCP request other than tools/call, a false answer with budget_exceeded gives HTTP 429 with Retry-After (protocol 10.3). The body is the JSON-RPC error -31429 with the message rate_limited. Its data.retry_after has the value of Retry-After. Example: {"jsonrpc": "2.0", "id": 7, "error": {"code": -31429, "message": "rate_limited", "data": {"retry_after": 12}}}.
Each error of this section has a fixed message, and the service copies no value of the request into it [CONTRACT, 5.2].
When the service refuses an MCP request before it reads the id, the body of the answer is empty, as for an edge (6.1). The client reads the HTTP status and the headers. The service sends a JSON-RPC error only when it knows the id of the request.
Each tool accepts these optional control arguments: approval_ref, wait_s, supersedes, lease_s and until. The service sends them to the approval API as protocol 17.4 gives (protocol 17.9a). They never enter the effect. wait_s is the most seconds that the service waits for a verdict, and the service bounds it. A call gives at most one of approval_ref, lease_s and until. A call with more than one, or with a bad type, gets the tool error invalid_argument (5.7a), and the service asks the PDP nothing.
A call with none of the three runs when the PDP asks for no approval. When the PDP asks for an approval and the call has none of the three, the service cannot give a lease. It submits nothing, and the call gets the tool error invalid_argument (5.7a).
The retry of a call after an approval repeats the same arguments and exactly one of approval_ref, lease_s and until (protocol 17.7). A service MAY refuse a retry with none of the three. The tool error is invalid_argument, also when the approval waits. The agent therefore keeps one control argument in each retry. Section 10 has an example.
When protocol 17.7 tells that the action waits, the service answers HTTP 200 with a result that is not an error. Its structuredContent.action has id (the request_id), status equal to awaiting_approval, code and executed equal to false. The second item of content is a fixed text that starts with NOT EXECUTED. The service copies no value of the request into it (5.6). The result has this form:
{ "resultType": "complete", "content": [ { "type": "text", "text": "{\"action\":{\"id\":\"apr_9f3a\",\"status\":\"awaiting_approval\",\"code\":\"K7QF\",\"executed\":false}}" }, { "type": "text", "text": "NOT EXECUTED. The action waits for the approval of its owner." } ], "structuredContent": { "action": { "id": "apr_9f3a", "status": "awaiting_approval", "code": "K7QF", "executed": false } }}A refused call of a tool, for a cause of protocol section 17, is a tool error, in the form of 5.3. It has a fixed message and never has the text of the owner (protocol 17.12). The codes are:
approval_denied,retryablefalse: the PDP answeredapproval_denied(protocol 17.1);approval_expired,retryablefalse: the PDP answeredapproval_expired, or it refused twoevaluation_idof the call (below). The code does not tell if the approval expired, was abandoned, was cancelled or was replaced (protocol 17.6);invalid_argument,retryablefalse: a control argument is bad, or the call needs an approval and has none of the three (5.7). The code also covers a command larger thanmax_command_bytes(protocol 17.3a). It covers a 413command_too_large, a 422 withinvalid_argument,invalid_lease,lease_requiredorexplanation_required, and a 409cannot_supersede(protocol 17.4);approval_unavailable,retryabletrue: the PDP answered 409no_deviceto a submission (protocol 17.4);approval_rate_limited,retryabletrue, withretry_after: the PDP answered 429 to a submission. The service copiesretry_after.
A 422 invalid_evaluation to a submission tells that the evaluation_id is unknown or late (protocol 17.9). The service then asks the question with the effect one more time (protocol 17.7, step 3). It submits again with the new evaluation_id, as protocol 17.7 says. When this second submission also gets invalid_evaluation, the call gets the tool error approval_expired. The service does not ask a third time.
Another answer of the approval API gives HTTP 503 and the JSON-RPC error of 5.5. This includes a code that this list does not name, a 401 and a 403 (protocol 17.4). A call to the approval API that fails gives the same result. A request that the service sends again is a new request (protocol 12).
A service with a tool also has the tool get_action_status. Each tool can give a result that waits. Its argument is request_id. Its result has structuredContent equal to {"status": "<verdict>"}, with a verdict of protocol 17.6. The annotation readOnlyHint is true. The result is not an error, also for denied and void.
The tool has no action in the map of the tools (3.2), and it is not a use. The service sends no question to the PDP for it. It reads the verdict with renew=true and the subject of the token, and so it renews the lease for the agent (protocol 17.4, 17.5). A request that is unknown, or that is of another subject, gives the tool error invalid_argument. tools/list names the tool when it names at least one tool (4.1).
6.Refusals of an edge
When an edge refuses an MCP request, the body of the answer is empty, for each status. The client reads the HTTP status and the headers: WWW-Authenticate on a 401 (protocol 9.8) and Retry-After on a 429. The edge sends no JSON-RPC error, so it needs no part of the body of the request. Only a service that answers by itself uses the JSON-RPC errors of section 5.
An edge never answers 400, 404 or 405 to an MCP request. A client of revision 2026-07-28 that gets one of these statuses uses the legacy transport [MCP 2026-07-28].
7.Standalone keys
A service that has no edge can check its own keys: the standalone keys of [CONTRACT, section 3]. A standalone key is not a key of the protocol (protocol 2, Key). For a request with a standalone key, the service asks the PDP no question [CONTRACT, 11.1].
The text of a standalone key is mcp_, then 43 base64url characters, with no = at the end: 47 characters in total [CONTRACT, 3.1]. The 43 characters encode 32 random bytes.
A service behind an edge accepts requests only through the edge (protocol 9.4). It takes the subject only from the identity token, and it does not check a standalone key (7.1). The limits of a standalone key [CONTRACT, 3.8, 3.9] do not apply to a request with an identity token. The own limits of the service still apply (protocol 6.10).
For a standalone key, the service sends the 401 and the 429 of [CONTRACT, 2.7] before it reads the message [CONTRACT, 2.8]. Thus their body is empty (5.6a). The 429 has Retry-After [CONTRACT, 2.7].
Unused. The system that makes keys chooses the format of their text, because the protocol defines no format (protocol 3.8).
8.Security considerations
- An MCP client can send a request again after a broken stream. No rule of MCP 2026-07-28 prevents it. The service asks a new question with
context.usage, and the PDP counts the use again (protocol 12). This over-count is safe. - A refused tool and an unknown tool get the same answer (5.1), and
tools/listdoes not name a refused tool (4.1). Thus a client does not learn a tool whose action it cannot do in the service. - The errors of section 5 copy no value of the request (5.6), and a refusal of an edge has no body (6.1). Thus an agent reads no text of a third party in a refusal [CONTRACT, 5.2].
- The tool error of 5.3 tells that a budget is spent, and the seconds to wait. It shows no grant and no amount (protocol 7.3, 11.2).
9.Conformance cases
The conformance cases of the protocol are data in conformance/ of the repository of this specification (protocol 15, item 2). The cases that only MCP needs are in this section, and each case cites the paragraphs that it tests. Earlier versions of the protocol gave them these ids for a later version of [CONTRACT]. [CONTRACT] does not hold them, and this binding is their source (section 12, item 1). These ids are in the series U, for a PEP, but the cases are in this binding. conformance/ gives these ids to no case of its own.
- U18 (3.4, 3.5, 3.6; protocol 6.4): a use of an action that lists a budget sends one Access Evaluation with
context.usageequal to{"units": 1}. Atools/list, a call that ends withInputRequiredResultand a call of a tool whose action lists no budget send no question withcontext.usage. - U23 (5.1, 5.3, 5.4; protocol 10.3): the test PDP answers
falsewithbudget_exceededandretry_after12. Atools/callgets HTTP 200 and the tool error of 5.3, withretryabletrue andretry_after12. An MCP request other thantools/callwhose action lists a budget (3.6a) gets HTTP 429,Retry-After: 12and-31429withdata.retry_after12.conformance/tests the HTTP route of protocol 10.3 in a case with its own id. - U25 (1.3; [CONTRACT, 2.5]): with a valid identity token, the header
MCP-Protocol-Version: 2026-07-28and the_metaversion2025-11-25give HTTP 400 and-32020.
These cases test the other rules of sections 3 to 6. The ids U26 to U31 continue the series U of conformance/. E01 is the first case of the series E, and the series E of conformance/ starts at E02 (protocol 15, item 2). conformance/ does not use these ids.
- U26 (4.1, 4.2, 5.1): the test PDP answers
falsefor the action of one tool, andtruefor the other actions.tools/listdoes not name this tool. Atools/callof this tool gets HTTP 200 and-32602, as for an unknown tool. - U27 (3.3, 3.3a, 5.2, 5.6a): an MCP request with no identity token gets HTTP 401 and an empty body.
- U28 (5.1, 5.5): when the test PDP does not answer, a
tools/callgets HTTP 503 and-32603. - U29 (3.6a): a
pingasks the actionmcp.sessionon the resource of typeservicewith the id of the service. The test PDP answersfalse, and thepinggets HTTP 403 and-32001. - U30 (3.5a, 5.7; protocol 17.1, 17.7): the test PDP answers
approval_requiredfor the action of a tool. The service sends one question withoutcontext.usage, with the effect, at the call. It gives the result of 5.7. After the approval, it sends one question withcontext.usageequal to{"units": 1}and the effect. A refused approval sends none. The runner does this for each action of the service. - U31 (5.1b): the test PDP answers
falsewith no reason for aserver/discover. The answer is HTTP 403 with the body{"jsonrpc": "2.0", "id": 7, "error": {"code": -32001, "message": "forbidden"}}. - E01 (6.1, 6.2, 6.3; protocol 9.8): an MCP request with a key text that the edge does not know gets HTTP 401,
WWW-Authenticate: Bearer error="invalid_token"with noresource_metadata, and an empty body. No refusal of the edge has the status 400, 404 or 405.
10.Examples
The examples use the service datastore, the person Alice and her key key:9b1c04e2aa71f0c3, with the grants of protocol section 13. The service has the tools read_rows (action data.read), write_rows (action data.write) and copy_table (action data.write).
The list of the tools. For tools/list with the identity token of the key, the service sends one Access Evaluations request (4.1). The top-level subject, resource and context give the values of each item [AUTHZEN 1.0, l.542].
{ "subject": { "type": "user", "id": "key:9b1c04e2aa71f0c3" }, "resource": { "type": "service", "id": "datastore" }, "context": { "match": "subtree" }, "evaluations": [ { "action": { "name": "data.read" } }, { "action": { "name": "data.write" } } ]}The answer:
{ "evaluations": [{ "decision": true }, { "decision": false }] }The key has a grant of data.read on the database test2, and no grant of data.write. Thus tools/list names only read_rows. A tools/call of write_rows or of copy_table gets -32602, as for an unknown tool (5.1).
A call of a tool. An agent with the key calls read_rows on the table orders of the database test2:
{ "jsonrpc": "2.0", "id": 7, "method": "tools/call", "params": { "name": "read_rows", "arguments": { "host": "prod", "database": "test2", "table": "orders" }, "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28" } }}The request also has the headers of [CONTRACT, 2.5]. The service builds the chain from its own data (3.2), and it sends one question with context.usage (3.4):
{ "subject": { "type": "user", "id": "key:9b1c04e2aa71f0c3" }, "action": { "name": "data.read" }, "resource": { "type": "table", "id": "orders", "properties": { "ancestors": [ { "type": "service", "id": "datastore" }, { "type": "host", "id": "prod" }, { "type": "database", "id": "test2" } ] } }, "context": { "usage": { "units": 1 } }}The answer, when the use can run:
{ "decision": true, "context": { "limits": { "max_rows": 100, "max_duration": 30 }, "usage": { "units": 1 } }}The grant of Alice on the table orders gives the lowest value of max_rows, 100 (protocol 8.1). The service gives 100 rows at most, and the read runs for 30 seconds at most (protocol 7.5). The answer, when the budget is spent:
{ "decision": false, "context": { "reason": "budget_exceeded", "retry_after": 12 }}The service then answers HTTP 200, with the tool error of 5.3 as the result of the request with the id 7.
Two permissions for one tool. The tool copy_table copies the table orders of test1 into test2, as in protocol 10.1a. For Alice, the service asks data.read on the table without context.usage, then data.write on test2 with context.usage. Both answers are true, and the copy takes one unit from each counter of Alice (protocol 6.7). For the key, the first answer is false, because the key has no grant on test1. The service gives -32602 and sends no question with context.usage (3.7).
The retry after an approval. The first call of write_rows has the argument lease_s, and the service answers awaiting_approval (5.7). The owner approves. The agent calls write_rows again, with the same arguments and with lease_s again:
{ "jsonrpc": "2.0", "id": 9, "method": "tools/call", "params": { "name": "write_rows", "arguments": { "host": "prod", "database": "test2", "table": "orders", "rows": [{ "id": 1 }], "lease_s": 600 }, "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28" } }}A retry without lease_s, approval_ref and until can get the tool error invalid_argument (5.7), although the approval waits.
A refusal at the edge. An agent sends a key text that the edge does not know. The edge answers with no body (6.1) and no resource_metadata (6.3):
HTTP/1.1 401 UnauthorizedWWW-Authenticate: Bearer error="invalid_token"Content-Length: 011.Relation to other work (informative)
- COAZ-MCP gives the JSON-RPC code
-32001to each denial. It says that an implementation MUST NOT use a code outside-32000to-32099[COAZ-MCP, l.859-863]. This binding claims no conformance to COAZ-MCP. It gives-32001only to a denial of an MCP request other thantools/call(5.1b). A refusedtools/callgets-32602, as an unknown tool (5.1). A spent budget of an MCP request other thantools/callgets-31429(5.4). Both differ from COAZ-MCP. The table of section 12 is about [CONTRACT] and changes nothing here. - MCP 2026-07-28 tells new implementations not to use the codes
-32000to-32019[MCP 2026-07-28]. The AuthZEN repository does not hold this text. - COAZ-MCP lets an implementation give a denial as a tool result with
isErrortrue [COAZ-MCP, l.880-883]. The tool error of 5.3 has this form, but only forbudget_exceeded. - COAZ-MCP gives
-32603when the PEP cannot reach the PDP [COAZ-MCP, l.887-888]. Section 5 gives the same code, with HTTP 503 (protocol 10.3). - COAZ-MCP puts the map of a tool,
x-authzen-mapping, in theinputSchemaof the tool in thetools/listresponse [COAZ-MCP, l.374-376]. Thus a gateway can be the PEP of the tools [COAZ-MCP, l.191-197]. In this binding, the service is the PEP of its tools (3.1), and an MCP message has no added field (1.5).
12.The MCP server contract
This section held the open points of version 1.0. Each item now states a final rule. The table at the end of the section lists each difference from [CONTRACT].
- This binding is the source for a ProcurAuth service. Where this binding and [CONTRACT] differ, the service follows this binding. [CONTRACT] stays the source for the parts that this binding does not cover, for example the logs and the jobs [CONTRACT, 7, 10]. The table below lists each difference. A service that follows this binding and the rest of [CONTRACT] obeys both texts.
- A refusal before the service reads the
idhas an empty body, for each status (5.2, 5.6a, 7.4). Examples are the 401, the 429 of a standalone key and the 400 of a body that is not JSON. When the service knows theid, it gives HTTP 429 with-31429(5.4) and HTTP 503 with-32603(5.5). An MCP request other thantools/callthat the PDP refuses gets HTTP 403 with-32001(5.1b). - A tool error of a refused budget has the code
budget_exceededandretry_afterin whole seconds (5.3, 5.3a). It never hasretry_after_ms. TheoutputSchemaof a tool SHOULD accept the objecterrorof 5.3 and 5.7a, so that a client that checks the schema accepts a tool error. - For a ProcurAuth service, the protocol gives the identity token, the action document and the link to the PDP, not [CONTRACT, 11.3 to 11.5]. The token follows protocol 9.2 to 9.4, also on the MCP endpoint (3.3). The action document is at
/.well-known/procurauth/actions(protocol 5.1). The link to the PDP is secured (protocol 10.0, step 4). - A PDP that fails gives HTTP 503 (protocol 10.3), never a refusal. A bad
context.matchin one evaluation gives HTTP 400 (protocol 11.1). Afalseanswer withbudget_exceededgives HTTP 429 on an HTTP route, or the tool error of 5.3 (protocol 10.3). The cases U08 and D14 of [CONTRACT] do not apply to a ProcurAuth service. - The file
IMPLEMENTATIONS.mdof [CONTRACT] stays in [CONTRACT]. The repository of this specification has its own fileIMPLEMENTATIONS.md, which lists the ProcurAuth implementations. - The approval follows the model of [CONTRACT, section 9]: the PDP decides, and the service learns only the verdict. [CONTRACT, 9.2, 9.6, 9.7 and 9.9] are Unused, and [CONTRACT, 9.4, 9.5 and 9.8] agree with 5.7, 5.7a and 5.7b. Items 8 to 10 and the table give the differences that remain.
- No tool error has the code
approval_cancelled. The PEP learns onlyvoidfor a request that someone cancelled (protocol 17.6, 17.12), so the call getsapproval_expired(5.7a). - The tool error
approval_rate_limitedhasretry_afterin whole seconds, as 5.3 has it and as protocol 10.3 and 17.4 give it (5.7a). It never hasretry_after_ms. - A service never sends an MCP task in place of the result of 5.7, also when the client declares the extension
io.modelcontextprotocol/tasks. The result of 5.7 and the toolget_action_status(5.7b) are the only form of a call that waits. An owner with no way to receive the request givesapproval_unavailable(5.7a).
Differences from the MCP server contract. Each row gives the rule of [CONTRACT] and the rule of this binding, which a ProcurAuth service follows.
| Topic | [CONTRACT] | This binding | Item |
|---|---|---|---|
| Body of a 401 | JSON-RPC -32001, message unauthorized [CONTRACT, 2.7] | An empty body (5.2, 5.6a) | 2 |
| Body of a 429 of a standalone key | JSON-RPC -32002 [CONTRACT, 2.7] | An empty body, with Retry-After (7.4) | 2 |
| Body of a 400 for a body that is not JSON | JSON-RPC -32700 [CONTRACT, 2.7] | An empty body (5.6a) | 2 |
| A method error | HTTP 200 for each error of a method [CONTRACT, 2.7] | HTTP 429 with -31429 (5.4), HTTP 503 with -32603 (5.5), HTTP 403 with -32001 (5.1b) | 2 |
retry_after of a tool error | retry_after_ms [CONTRACT, 6.1] | retry_after in whole seconds (5.3, 5.7a) | 3, 9 |
| Common codes of a tool error | No budget_exceeded [CONTRACT, 6.2] | budget_exceeded, retryable (5.3a) | 3 |
outputSchema and a tool error | No rule [CONTRACT, 4.5] | It SHOULD accept the object error | 3 |
| Path of the action document | /.well-known/access-actions [CONTRACT, 11.4] | /.well-known/procurauth/actions (protocol 5.1) | 4 |
Form of iat and exp, and nbf | A NumericDate, no rule for nbf [CONTRACT, 11.3] | Integers with digits only, nbf checked (protocol 9.3, 9.4) | 4 |
kid with more than one key | No rule [CONTRACT, 11.3] | A token without kid is refused (protocol 9.4) | 4 |
| Link to the PDP | A private network without TLS is possible [CONTRACT, 11.5] | The link is secured (protocol 10.0, step 4) | 4 |
| A PDP that fails | The decision is false, HTTP 403 [CONTRACT, 11.5, case U08] | HTTP 503 (5.1, 5.5, protocol 10.3) | 5 |
A bad context.match in one evaluation | false with invalid_request [CONTRACT, 11.5, case D14] | HTTP 400 (protocol 11.1) | 5 |
false with budget_exceeded on an HTTP route | HTTP 403 [CONTRACT, 11.6] | HTTP 429 with Retry-After (protocol 10.3) | 5 |
A 422 invalid_evaluation of the approval API | No rule [CONTRACT, 9.4] | One more question with the effect, then approval_expired (5.7a) | 7 |
A 422 explanation_required or a 409 cannot_supersede | No rule [CONTRACT, 9.4] | The tool error invalid_argument (5.7a) | 7 |
| A task in place of a result that waits | A server MAY send a task [CONTRACT, 9.4] | Never: the result of 5.7 only | 10 |
References
- [PROTOCOL] ProcurAuth Protocol, version 1.1:
protocol/in the repository of this specification. - [AUTHZEN] (also cited as [AUTHZEN 1.0]) AuthZEN Authorization API 1.0, Final Specification, OpenID Foundation. A citation l.N is a line of
api/authorization-api-1_0.mdin the repositoryopenid/authzenat commit4deba63. - [COAZ-MCP] COAZ Binding for the Model Context Protocol, Draft 1:
profiles/authzen-coaz-mcp-binding-1_0.mdat the same commit. A citation l.N is a line of this file. - [CONTRACT] The contract of the MCP servers, version 1 (draft):
SPEC.mdandconformance/CASES.mdof the repositorymcp-server-contract. A citation N.M is a paragraph ofSPEC.md. This binding is the source for a ProcurAuth service where the two texts differ (section 12). - [MCP 2026-07-28] Model Context Protocol, revision 2026-07-28.
- [RFC 2119] Key words for use in RFCs to Indicate Requirement Levels. [RFC 8174] Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words.