> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/api-reference/internal/access-and-security/mcp-access.md). Agents can also search and read this documentation through its [MCP server](https://docs.thewalletcrew.io/~gitbook/mcp).

# MCP access

## Get my MCP access

> Returns the server URL of this environment, what blocks writes on it and the caller's write grant.\
> Open to every member of the tenant.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"McpAccess"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":[]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"McpAccessDefinition":{"required":["defaultGrantMinutes","environment","maxGrantMinutes","serverUrl","tenant","writesAvailable"],"type":"object","properties":{"environment":{"type":"string","description":"Environment this MCP server serves. Each environment is a separate server."},"serverUrl":{"type":"string","description":"URL to add to an MCP client to connect it to this environment."},"writesAvailable":{"type":"boolean","description":"Whether write tools are open on this environment at all."},"tenant":{"description":"The tenant's MCP switches, which can block the caller's writes whatever their grant.","$ref":"#/components/schemas/McpSettingsDefinition"},"writeGrantExpiresAt":{"type":["null","string"],"description":"When the caller's write grant on this tenant ends. Null when they hold none.","format":"date-time"},"defaultGrantMinutes":{"type":"integer","description":"Grant duration proposed by default, in minutes.","format":"int32"},"maxGrantMinutes":{"type":"integer","description":"Longest grant, in minutes.","format":"int32"}},"additionalProperties":false,"description":"MCP access to the tenant on this environment, seen by the caller."},"McpSettingsDefinition":{"required":["enabled","write"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the tenant allows MCP clients. When false, every tool call on the tenant is refused."},"write":{"type":"boolean","description":"Whether the tenant allows MCP write tools. When false, only read tools work."}},"additionalProperties":false,"description":"The tenant's MCP switches. They apply to every user, administrators included."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/mcp":{"get":{"tags":["McpAccess"],"summary":"Get my MCP access","description":"Returns the server URL of this environment, what blocks writes on it and the caller's write grant.\nOpen to every member of the tenant.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MCP access returned.","content":{"text/plain":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}},"application/json":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}},"text/json":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller is not a member of the tenant.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Get the tenant's MCP settings

> Returns \`mcp.enabled\` and \`mcp.write\`. A tenant that has not configured them allows both.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"McpAccess"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.mcp:read"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"McpSettingsDefinition":{"required":["enabled","write"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the tenant allows MCP clients. When false, every tool call on the tenant is refused."},"write":{"type":"boolean","description":"Whether the tenant allows MCP write tools. When false, only read tools work."}},"additionalProperties":false,"description":"The tenant's MCP switches. They apply to every user, administrators included."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/mcp/settings":{"get":{"tags":["McpAccess"],"summary":"Get the tenant's MCP settings","description":"Returns `mcp.enabled` and `mcp.write`. A tenant that has not configured them allows both.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MCP settings returned.","content":{"text/plain":{"schema":{"description":"The tenant's MCP switches. They apply to every user, administrators included.","$ref":"#/components/schemas/McpSettingsDefinition"}},"application/json":{"schema":{"description":"The tenant's MCP switches. They apply to every user, administrators included.","$ref":"#/components/schemas/McpSettingsDefinition"}},"text/json":{"schema":{"description":"The tenant's MCP switches. They apply to every user, administrators included.","$ref":"#/components/schemas/McpSettingsDefinition"}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.mcp:read` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Configure the tenant's MCP settings

> Replaces \`mcp.enabled\` and \`mcp.write\`. Every other security setting keeps its value. Applies\
> to every user, administrators included, from the next tool call.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"McpAccess"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.mcp:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"UpdateMcpSettingsRequest":{"required":["enabled","write"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether MCP clients may call tools on the tenant."},"write":{"type":"boolean","description":"Whether MCP clients may call write tools on the tenant."}},"additionalProperties":false,"description":"Request body to configure the tenant's MCP switches."},"McpSettingsDefinition":{"required":["enabled","write"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the tenant allows MCP clients. When false, every tool call on the tenant is refused."},"write":{"type":"boolean","description":"Whether the tenant allows MCP write tools. When false, only read tools work."}},"additionalProperties":false,"description":"The tenant's MCP switches. They apply to every user, administrators included."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/mcp/settings":{"put":{"tags":["McpAccess"],"summary":"Configure the tenant's MCP settings","description":"Replaces `mcp.enabled` and `mcp.write`. Every other security setting keeps its value. Applies\nto every user, administrators included, from the next tool call.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The switches to store.","content":{"application/json":{"schema":{"description":"Request body to configure the tenant's MCP switches.","$ref":"#/components/schemas/UpdateMcpSettingsRequest"}},"text/json":{"schema":{"description":"Request body to configure the tenant's MCP switches.","$ref":"#/components/schemas/UpdateMcpSettingsRequest"}},"application/*+json":{"schema":{"description":"Request body to configure the tenant's MCP switches.","$ref":"#/components/schemas/UpdateMcpSettingsRequest"}}},"required":true},"responses":{"200":{"description":"MCP settings updated.","content":{"text/plain":{"schema":{"description":"The tenant's MCP switches. They apply to every user, administrators included.","$ref":"#/components/schemas/McpSettingsDefinition"}},"application/json":{"schema":{"description":"The tenant's MCP switches. They apply to every user, administrators included.","$ref":"#/components/schemas/McpSettingsDefinition"}},"text/json":{"schema":{"description":"The tenant's MCP switches. They apply to every user, administrators included.","$ref":"#/components/schemas/McpSettingsDefinition"}}}},"400":{"description":"A switch is missing.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.mcp:write` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant has no security configuration, or it cannot be parsed.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Allow my MCP writes

> Allows the caller's MCP clients to call write tools on this tenant, on this environment only, for the\
> given duration. Replaces any grant the caller holds. Every write still needs its own permissions. Only\
> the admin console can give a grant: a token issued to any other client is refused.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"McpAccess"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":[]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"GrantMcpWritesRequest":{"type":"object","properties":{"durationMinutes":{"maximum":480,"minimum":1,"type":["null","integer"],"description":"How long writes stay allowed, in minutes. Defaults to 15; at most 480.","format":"int32"}},"additionalProperties":false,"description":"Request body to allow the caller's MCP writes."},"McpAccessDefinition":{"required":["defaultGrantMinutes","environment","maxGrantMinutes","serverUrl","tenant","writesAvailable"],"type":"object","properties":{"environment":{"type":"string","description":"Environment this MCP server serves. Each environment is a separate server."},"serverUrl":{"type":"string","description":"URL to add to an MCP client to connect it to this environment."},"writesAvailable":{"type":"boolean","description":"Whether write tools are open on this environment at all."},"tenant":{"description":"The tenant's MCP switches, which can block the caller's writes whatever their grant.","$ref":"#/components/schemas/McpSettingsDefinition"},"writeGrantExpiresAt":{"type":["null","string"],"description":"When the caller's write grant on this tenant ends. Null when they hold none.","format":"date-time"},"defaultGrantMinutes":{"type":"integer","description":"Grant duration proposed by default, in minutes.","format":"int32"},"maxGrantMinutes":{"type":"integer","description":"Longest grant, in minutes.","format":"int32"}},"additionalProperties":false,"description":"MCP access to the tenant on this environment, seen by the caller."},"McpSettingsDefinition":{"required":["enabled","write"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the tenant allows MCP clients. When false, every tool call on the tenant is refused."},"write":{"type":"boolean","description":"Whether the tenant allows MCP write tools. When false, only read tools work."}},"additionalProperties":false,"description":"The tenant's MCP switches. They apply to every user, administrators included."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/mcp/writeGrant":{"put":{"tags":["McpAccess"],"summary":"Allow my MCP writes","description":"Allows the caller's MCP clients to call write tools on this tenant, on this environment only, for the\ngiven duration. Replaces any grant the caller holds. Every write still needs its own permissions. Only\nthe admin console can give a grant: a token issued to any other client is refused.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"How long writes stay allowed.","content":{"application/json":{"schema":{"description":"Request body to allow the caller's MCP writes.","$ref":"#/components/schemas/GrantMcpWritesRequest"}},"text/json":{"schema":{"description":"Request body to allow the caller's MCP writes.","$ref":"#/components/schemas/GrantMcpWritesRequest"}},"application/*+json":{"schema":{"description":"Request body to allow the caller's MCP writes.","$ref":"#/components/schemas/GrantMcpWritesRequest"}}},"required":true},"responses":{"200":{"description":"Writes allowed; the response carries when the grant ends.","content":{"text/plain":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}},"application/json":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}},"text/json":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}}}},"400":{"description":"The duration is out of range.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller is not a member of the tenant, or did not sign in through the admin console.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Revoke my MCP writes

> Ends the caller's write grant on this tenant now. Read tools keep working.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"McpAccess"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":[]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"McpAccessDefinition":{"required":["defaultGrantMinutes","environment","maxGrantMinutes","serverUrl","tenant","writesAvailable"],"type":"object","properties":{"environment":{"type":"string","description":"Environment this MCP server serves. Each environment is a separate server."},"serverUrl":{"type":"string","description":"URL to add to an MCP client to connect it to this environment."},"writesAvailable":{"type":"boolean","description":"Whether write tools are open on this environment at all."},"tenant":{"description":"The tenant's MCP switches, which can block the caller's writes whatever their grant.","$ref":"#/components/schemas/McpSettingsDefinition"},"writeGrantExpiresAt":{"type":["null","string"],"description":"When the caller's write grant on this tenant ends. Null when they hold none.","format":"date-time"},"defaultGrantMinutes":{"type":"integer","description":"Grant duration proposed by default, in minutes.","format":"int32"},"maxGrantMinutes":{"type":"integer","description":"Longest grant, in minutes.","format":"int32"}},"additionalProperties":false,"description":"MCP access to the tenant on this environment, seen by the caller."},"McpSettingsDefinition":{"required":["enabled","write"],"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the tenant allows MCP clients. When false, every tool call on the tenant is refused."},"write":{"type":"boolean","description":"Whether the tenant allows MCP write tools. When false, only read tools work."}},"additionalProperties":false,"description":"The tenant's MCP switches. They apply to every user, administrators included."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/mcp/writeGrant":{"delete":{"tags":["McpAccess"],"summary":"Revoke my MCP writes","description":"Ends the caller's write grant on this tenant now. Read tools keep working.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Grant ended.","content":{"text/plain":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}},"application/json":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}},"text/json":{"schema":{"description":"MCP access to the tenant on this environment, seen by the caller.","$ref":"#/components/schemas/McpAccessDefinition"}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller is not a member of the tenant.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/api-reference/internal/access-and-security/mcp-access.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
