mcp

v0.6.0
@airctrl/mcp Checked 1 day ago Published 15 days ago

Local/self-hosted MCP server for AIRCTRL records, projects, gateways and usage workflows.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_record_group_grants List record group grants

Read group grants and sharing capabilities from the server. Requires records:read and Team+.

ParameterTypeDescription
accountId *string
recordId *string

list_groups List project groups

List existing group contexts for a project. Requires groups:list.

ParameterTypeDescription
accountId *string
projectId *string

create_group Create group

Create a reusable account group in a project context. Does not grant a project role.

ParameterTypeDescription
accountId *string
name *string
projectId *string
descriptionstring

update_group Update group

Replace group name and description. Omitted description becomes empty.

ParameterTypeDescription
accountId *string
groupId *string
name *string
descriptionstring

delete_group Delete group

Delete group intent and reconcile access on the server, preserving other access paths.

ParameterTypeDescription
accountId *string
groupId *string

list_group_members List group members

List current group members.

ParameterTypeDescription
accountId *string
groupId *string

add_group_member Add group member

Add durable membership. The response reports pending material; reconcile_group_access attempts sealing.

ParameterTypeDescription
accountId *string
groupId *string
userId *string

remove_group_member Remove group member

Remove membership; wrappers are removed only when no authorized access path remains.

ParameterTypeDescription
accountId *string
groupId *string
userId *string

grant_project_group Grant project role to group

Grant an existing role to a group. The server checks delegation and every affected membership.

ParameterTypeDescription
accountId *string
groupId *string
projectId *string
roleId *string

revoke_project_group Revoke project role from group

Revoke one grant without revoking independent access paths.

ParameterTypeDescription
accountId *string
groupId *string
projectId *string
roleId *string

reconcile_group_access Reconcile group access material

Use the configured local vault to attempt existing project-key and group-record repair. Optional projectIds restrict projects, not direct group-record repairs in the account. Returns attempted IDs, not proof of complete access. Never grants permissions. Errors retain code/message/details.

ParameterTypeDescription
accountId *string
projectIdsarray

list_accounts List accessible accounts

List the AIRCTRL accounts the authenticated developer can access. This discovers context only; it does not administer an account.

list_projects List accessible projects

List projects the authenticated developer belongs to in one AIRCTRL account.

ParameterTypeDescription
accountId *string
includeArchivedboolean

get_project Get project

Read one AIRCTRL project the authenticated developer can access.

ParameterTypeDescription
accountId *string
projectId *string

create_project Create project

Create an AIRCTRL project in an account. The API checks projects:create and quota, then makes the creator Project Administrator.

ParameterTypeDescription
accountId *string
name *string
descriptionstring

update_project Update project

Replace a project name, description and active state. Pass null to clear the description; all three editable fields are required.

ParameterTypeDescription
accountId *string
description *string | null
isActive *boolean
name *string
projectId *string

set_project_archive Archive or restore project

Archive or restore one AIRCTRL project.

ParameterTypeDescription
accountId *string
archived *boolean
projectId *string

list_service_accounts List Service Accounts

List Service Account metadata and active/revoked state in one AIRCTRL account. Credential material is never returned.

ParameterTypeDescription
accountId *string

get_service_account Get Service Account

Read metadata and active/revoked state for one Service Account. This does not manage its credentials.

ParameterTypeDescription
accountId *string
serviceAccountId *string

list_providers List providers

List the AI providers AIRCTRL supports (OpenAI, Anthropic, Gemini, …) with their ids. Use this to get a providerId for add_provider_key or set_routing.

list_gateways List gateways

List the gateways in a project.

ParameterTypeDescription
projectId *string

list_mcp_gateways List MCP gateways

List governed MCP gateways in one project.

ParameterTypeDescription
projectId *string

get_mcp_gateway Get MCP gateway

Read one MCP gateway with its real server and client inventory.

ParameterTypeDescription
gatewayId *string

list_mcp_server_catalog List MCP server catalog

List curated MCP server recipes and their official source metadata.

list_mcp_servers List MCP servers

List servers connected to one MCP gateway.

ParameterTypeDescription
gatewayId *string

list_mcp_tools List MCP tools

List synchronized, namespaced tools exposed by one MCP gateway.

ParameterTypeDescription
gatewayId *string

list_mcp_clients List MCP clients

List registered client identities. Secrets are never returned.

ParameterTypeDescription
gatewayId *string

list_mcp_policies List MCP policies

List tool rules configured on one MCP gateway.

ParameterTypeDescription
gatewayId *string

list_mcp_calls List MCP call evidence

List bounded tool-call metadata; retained payload bodies are not included.

ParameterTypeDescription
gatewayId *string
limitinteger
outcomestring
sincestring
toolstring
untilstring

create_mcp_gateway Create MCP gateway

Create a governed MCP gateway in a project.

ParameterTypeDescription
name *string
projectId *string
slugstring

create_mcp_server Add MCP server

Connect a remote, legacy SSE or connector-backed MCP server to a gateway.

ParameterTypeDescription
authMode *string
gatewayId *string
name *string
namespace *string
transport *string
authSecretEnvstring
catalogSlugstring
endpointUrlstring

sync_mcp_server Synchronize MCP server tools

Fetch the current tool inventory from one connected server.

ParameterTypeDescription
gatewayId *string
serverId *string

create_mcp_client Create MCP client

Register a named MCP client identity. Create its scoped key separately.

ParameterTypeDescription
clientType *string
gatewayId *string
name *string

create_mcp_client_key Create MCP client key

Create a scoped key. Its plaintext is returned once and must be stored securely.

ParameterTypeDescription
clientId *string
gatewayId *string
scopesarray
serverIdsarray

create_mcp_policy Create MCP tool policy

Add an allow, block or ask-first rule to one MCP gateway.

ParameterTypeDescription
accessMode *string
effect *string
gatewayId *string
name *string
toolPattern *string
priorityinteger
serverIdstring

export_mcp_policy Export MCP policy as code

Export the canonical YAML policy document for review or version control.

ParameterTypeDescription
gatewayId *string

preview_mcp_policy Preview MCP policy changes

Validate YAML and preview its diff without applying it.

ParameterTypeDescription
gatewayId *string
yaml *string
pruneboolean

update_mcp_gateway Update MCP gateway

Update the name or active state of one MCP gateway.

ParameterTypeDescription
gatewayId *string
isActiveboolean
namestring

update_mcp_runtime Update MCP runtime limits

Update discovery mode, bounded timeout, response, concurrency, rate and optional IP allowlist settings.

ParameterTypeDescription
gatewayId *string
ipAllowlistarray
maxConcurrentCallsinteger
maxResultBytesinteger
rateLimitPerMin
requestTimeoutMsinteger
toolDiscoveryModestring

delete_mcp_gateway Delete MCP gateway

Permanently delete one MCP gateway. Requires explicit confirmation.

ParameterTypeDescription
confirm *boolean
gatewayId *string

update_mcp_server Update MCP server

Update one connected MCP server.

ParameterTypeDescription
gatewayId *string
serverId *string
enabledboolean
endpointUrlstring
namestring

delete_mcp_server Remove MCP server

Remove one server and its synchronized tool inventory. Requires explicit confirmation.

ParameterTypeDescription
confirm *boolean
gatewayId *string
serverId *string

get_mcp_server_health Get MCP server health

Read synchronization and connector health for one MCP server.

ParameterTypeDescription
gatewayId *string
serverId *string

update_mcp_client Update MCP client

Rename one MCP client identity.

ParameterTypeDescription
clientId *string
gatewayId *string
name *string

revoke_mcp_client Revoke MCP client

Revoke one client and all of its keys. Requires explicit confirmation.

ParameterTypeDescription
clientId *string
confirm *boolean
gatewayId *string

list_mcp_client_keys List MCP client keys

List safe key metadata for one MCP client.

ParameterTypeDescription
clientId *string
gatewayId *string

revoke_mcp_client_key Revoke MCP client key

Revoke one client key. Requires explicit confirmation.

ParameterTypeDescription
clientId *string
confirm *boolean
gatewayId *string
keyId *string

delete_mcp_policy Delete MCP policy

Delete one tool policy. Requires explicit confirmation.

ParameterTypeDescription
confirm *boolean
gatewayId *string
policyId *string

list_mcp_grants List MCP grants

List direct user, service-account, group and role grants.

ParameterTypeDescription
gatewayId *string

create_mcp_grant Create MCP grant

Grant full or read-only gateway access to an existing AIRCTRL principal.

ParameterTypeDescription
accessMode *string
gatewayId *string
subjectId *string
subjectType *string

revoke_mcp_grant Revoke MCP grant

Revoke one MCP grant. Requires explicit confirmation.

ParameterTypeDescription
confirm *boolean
gatewayId *string
grantId *string

apply_mcp_policy Apply MCP policy as code

Apply a reviewed YAML policy document. Requires explicit confirmation.

ParameterTypeDescription
confirm *boolean
gatewayId *string
yaml *string
pruneboolean

get_mcp_call_metrics Get MCP call metrics

Read call totals, outcomes and average latency.

ParameterTypeDescription
gatewayId *string

get_mcp_call_payload Get retained MCP call payload

Read one authorized encrypted payload record when body retention was enabled.

ParameterTypeDescription
callId *string
gatewayId *string

export_mcp_calls_csv Export MCP call evidence

Export a bounded CSV of MCP call metadata.

ParameterTypeDescription
gatewayId *string
outcomestring
serverIdstring
sincestring
toolstring
untilstring

create_gateway Create gateway

Create an empty gateway in a project. Use this only when you need a bare gateway; if the user is connecting a provider key, prefer setup_gateway, which creates the gateway, stores the key, and mints a token in one call.

ParameterTypeDescription
accountId *string
name *string
projectId *string
credentialBindingsarray
slugstring

add_provider_key Add provider key (BYOK)

Add an org provider API key (BYOK). NEVER pass the key itself — pass apiKeyEnv, the NAME of an environment variable in this MCP server's config that holds the key (must be named AIRCTRL_MCP_KEY_*, e.g. AIRCTRL_MCP_KEY_ANTHROPIC_PROD). The server reads that variable, validates the key against the provider, and stores it encrypted — it is NEVER returned. If a credential with the same variable name already exists it is reused (no duplicates). accountId and providerId come from the project / list_providers.

ParameterTypeDescription
accountId *string
apiKeyEnv *string
providerId *string
baseUrlOverridestring
credentialKindstring
labelstring

rotate_provider_key Rotate provider key

Replace an existing provider credential from an AIRCTRL_MCP_KEY_* environment variable. NEVER pass the provider key itself: pass apiKeyEnv, the variable name. The replacement is re-validated and re-encrypted.

ParameterTypeDescription
accountId *string
apiKeyEnv *string
credentialId *string

set_routing Set gateway routing

Update gateway metadata and optionally attach one provider credential to multiple exact models.

ParameterTypeDescription
accountId *string
gatewayId *string
attachCredentialIdstring
isActiveboolean
modelIdsarray
namestring

create_gateway_token Create gateway token

Create a gateway token (the data-plane connection credential, 'sk-actrl-*'). The plaintext is returned ONCE — give it to the client (e.g. ANTHROPIC_AUTH_TOKEN). It is not retrievable again.

ParameterTypeDescription
accountId *string
gatewayId *string
name *string
allowedModelsarray
expiresInDays
principalobject
rateLimitPerMin
scopesarray
spendLimit
spendWindowstring

read_usage Read gateway usage

Read a gateway request logs (provider, model, status, tokens, cost, latency).

ParameterTypeDescription
gatewayId *string
cursorstring
limitinteger
modelstring
offsetinteger
providerstring
searchstring
sincestring
statusinteger
statusClassstring
untilstring

list_usage_logs List project usage logs

Read request-log metadata across every gateway in one project.

ParameterTypeDescription
projectId *string
cursorstring
gatewayIdstring
limitinteger
modelstring
offsetinteger
providerstring
sincestring
statusinteger
untilstring

read_usage_log Read project usage log detail

Read stored request and response bodies for one project usage log when authorized.

ParameterTypeDescription
logId *string
projectId *string

read_usage_spend Read project spend

Read spend versus configured caps for a project.

ParameterTypeDescription
projectId *string
gatewayIdstring

read_usage_metrics Read project usage metrics

Read bucketed usage metrics and KPIs for a project.

ParameterTypeDescription
projectId *string
bucketstring
gatewayIdstring
modelstring
providerstring
searchstring
sincestring
statusClassstring
untilstring

get_connection_config Get connection config

Compose the copy-paste connection config for a gateway: the data-plane base URLs for the OpenAI SDK (/compat), OpenAI-native, and Claude Code (/anthropic). Pair with a token from create_gateway_token.

ParameterTypeDescription
gatewayId *string

setup_gateway Set up a gateway (one-shot)

One call for the common request 'connect my <provider> key to AIRCTRL'. NEVER pass the key itself — pass apiKeyEnv, the NAME of an environment variable in this MCP server config that holds the key (must be named AIRCTRL_MCP_KEY_*, e.g. AIRCTRL_MCP_KEY_ANTHROPIC_PROD). Given a projectId, a provider slug (from list_providers: openai/anthropic/gemini) and apiKeyEnv, this: (1) reads the key from that env var and stores it encrypted (BYOK, validated against the provider) — reusing an existing credential with the same variable name instead of duplicating, (2) verifies every requested model again…

ParameterTypeDescription
apiKeyEnv *string
models *array
projectId *string
provider *string
baseUrlOverridestring
namestring
tokenNamestring

delete_gateway Delete gateway

Soft-delete a gateway and revoke its connection tokens.

ParameterTypeDescription
accountId *string
gatewayId *string

list_gateway_tokens List gateway tokens

List gateway token metadata. Plaintext token values are never returned.

ParameterTypeDescription
gatewayId *string

revoke_gateway_token Revoke gateway token

Revoke a gateway token immediately.

ParameterTypeDescription
accountId *string
gatewayId *string
tokenId *string

rename_gateway_token Rename gateway token

Change the display name of a gateway token.

ParameterTypeDescription
accountId *string
gatewayId *string
name *string
tokenId *string

delete_gateway_token Delete gateway token

Delete a gateway token from the control-plane registry.

ParameterTypeDescription
accountId *string
gatewayId *string
tokenId *string

set_gateway_settings Set gateway settings

Update gateway spend, rate, logging, guardrail, and model settings.

ParameterTypeDescription
accountId *string
gatewayId *string
allowedModelsarray
guardrailModestring
logBodiesboolean
loggingEnabledboolean
rateLimitPerMin
spendLimit
spendWindowstring

get_otel_export Get gateway OTel export

Read the safe OpenTelemetry export configuration for a gateway.

ParameterTypeDescription
accountId *string
gatewayId *string

set_otel_export Set gateway OTel export

Update OpenTelemetry export settings. Optional auth headers come only from an AIRCTRL_MCP_KEY_* env var containing a JSON object.

ParameterTypeDescription
accountId *string
gatewayId *string
clearHeadersboolean
enabledboolean
endpointstring | null
exportBodiesboolean
exportMetricsboolean
exportTracesboolean
headersEnvstring

detach_gateway_credential Detach gateway credential

Detach one exact model when modelId is provided; otherwise detach the entire provider credential from the gateway.

ParameterTypeDescription
accountId *string
credentialId *string
gatewayId *string
modelIdstring

read_gateway_log Read gateway log detail

Read stored request and response bodies for one gateway log when authorized.

ParameterTypeDescription
gatewayId *string
logId *string

read_gateway_key_access Read gateway key access

Read the immutable provider-key access audit for a gateway.

ParameterTypeDescription
gatewayId *string
cursorstring
limitinteger
offsetinteger
outcomestring
sincestring
untilstring

list_provider_credentials List provider credentials

List provider credential metadata for an account. Secret values are never returned.

ParameterTypeDescription
accountId *string

list_provider_models List provider models

List the live models available through the provider credential. Provider secrets are never returned.

ParameterTypeDescription
accountId *string
credentialId *string

rename_provider_credential Rename provider credential

Change the display label of a provider credential.

ParameterTypeDescription
accountId *string
credentialId *string
label *string

revoke_provider_credential Revoke provider credential

Revoke a provider credential so gateways can no longer use it.

ParameterTypeDescription
accountId *string
credentialId *string

list_records List records

List accessible secret records — metadata only, never secret values. Optionally scope the list to one project.

ParameterTypeDescription
accountIdstring
includeArchivedboolean
limitinteger
offsetinteger
projectIdstring
tabstring

list_record_versions List record versions

List the immutable version history metadata for one record.

ParameterTypeDescription
recordId *string

read_record_audit Read record audit

Read audit-event metadata for one record. Secret values are never returned.

ParameterTypeDescription
recordId *string
limitinteger

list_record_audit List record audit events

List one stable cursor page of audit-event metadata for a record. Secret values are never returned.

ParameterTypeDescription
recordId *string
actionstring
actorstring
cursorstring
fromstring
limitinteger
offsetinteger
tostring

update_record_metadata Update record metadata

Update a record name, tags, due date, or rotation interval without changing ciphertext.

ParameterTypeDescription
recordId *string
environmentstring
namestring
rotationIntervalDays
secretDueAtstring | null
tagsarray

set_record_archive Archive or restore record

Set a record archived state. Use false to restore it.

ParameterTypeDescription
archived *boolean
recordId *string

transfer_record_ownership Transfer record ownership

Transfer a record to another eligible user.

ParameterTypeDescription
newOwnerUserId *string
recordId *string

rollback_record Rollback record

Create a new record version from a prior immutable version.

ParameterTypeDescription
recordId *string
targetVersionId *string

get_secret Get a secret (decrypted)

Fetch and decrypt a record locally. Humans use AIRCTRL_MCP_VAULT_PASSWORD; Service Accounts use their configured credential bundle. Never pass either through the prompt. This puts the secret into the agent context — use only when the agent needs the value; for zero model-exposure, route the model call through the gateway instead. Omit environment for General or select development, staging, or production.

ParameterTypeDescription
recordId *string
environmentstring

read_record Read a secret (scoped, decrypted)

Scoped read of a record: pick which sections to return via `scope` (fields/meta/owner/access/full; default ["fields"]). `fields` is DECRYPTED client-side; `meta`/`owner`/`access` are metadata. The vault unlock material comes from the configured human password or Service Account credential (NEVER the prompt). Same model-exposure caveat as get_secret when requesting `fields`.

ParameterTypeDescription
recordId *string
environmentstring
scopearray

list_secret_types List secret types + their fields

List every secret type and, per type, its fields (name, primitive, required, masked) plus whether it is generatable. Use this to map arbitrary input (e.g. env vars, a pasted blob) to the right record type + field names before calling create_record.

create_record Create a record

Create a new secret record in a project. Either pass `fields` (the plaintext values for the type — see list_secret_types) or set `generate: true` for a generatable type to mint the material. Encrypted client-side with the vault password from this server config (AIRCTRL_MCP_VAULT_PASSWORD); the server never sees plaintext. accountId is resolved from the project. Returns the new recordId.

ParameterTypeDescription
name *string
projectId *string
secretFormat *string
environmentstring
fieldsobject
generateboolean
idempotencyKeystring
optionsobject
rotationIntervalDays
secretDueAtstring | null
tagsarray

list_record_anomalies List record anomalies

Read recent security-relevant record events for the current user or one project.

ParameterTypeDescription
accountIdstring
scopeIdstring
scopeTypestring

list_record_activity List record activity

Read record activity buckets for one UTC day.

ParameterTypeDescription
day *string
accountIdstring
scopeIdstring
scopeTypestring

list_record_alerts List record alerts

Read the paginated record alert feed.

ParameterTypeDescription
accountIdstring
cursorstring
limitinteger
offsetinteger
scopeIdstring
scopeTypestring

list_record_access List record access

Read the paginated record access feed.

ParameterTypeDescription
accountIdstring
actionsarray
cursorstring
limitinteger
offsetinteger
scopeIdstring
scopeTypestring

set_secret Set secret value

Update a record by id, or upsert it by project/name/type. Plaintext is encrypted client-side; the API never sees it.

ParameterTypeDescription
fields *object
changedFieldsarray
environmentstring
idempotencyKeystring
namestring
projectIdstring
recordIdstring
rotationIntervalDays
secretDueAtstring | null
secretFormatstring
tagsarray

rotate_record Rotate record encryption key

Rotate a record DEK and re-encrypt/re-seal it client-side. The API never sees plaintext.

ParameterTypeDescription
recordId *string

share_record_user Share record with user

Seal a record DEK client-side to one user and create the grant.

ParameterTypeDescription
recordId *string
userId *string
permissionstring

share_record_service_account Share record with service account

Seal a record DEK client-side to the current service-account identity and create the grant.

ParameterTypeDescription
accountId *string
recordId *string
serviceAccountId *string

share_record_group Share record with group

Seal a record DEK client-side to every current group member and create the group grant.

ParameterTypeDescription
groupId *string
recordId *string

revoke_record_user Revoke record from user

Revoke one user grant and remove its record wrapper.

ParameterTypeDescription
recordId *string
userId *string

revoke_record_service_account Revoke record from service account

Revoke one service-account grant and remove its record wrapper.

ParameterTypeDescription
recordId *string
serviceAccountId *string

revoke_record_group Revoke record from group

Revoke a group grant and remove its member record wrappers.

ParameterTypeDescription
groupId *string
recordId *string

generate_secret Generate a secret

Mint spec-correct secret material client-side and return the record fields to store — nothing is sent to a server (zero-knowledge). Generatable types: totp (Base32 seed), ssh (Ed25519 keypair, OpenSSH format), certificate (self-signed X.509), password, webhook (whsec_ signing secret), api_key (random token), oauth_client (client_secret + PKCE). Provider-issued/freeform types (database, cloud_iam, service_account, license, env, json, plain) are NOT generatable.

ParameterTypeDescription
format *string
optionsobject

get_all Get all project secrets (decrypted)

Decrypt every record in a project that the caller can access, returning name+value pairs (e.g. to inject as env vars). Omit environment for General or select development, staging, or production. Unlock material comes from the configured human password or Service Account credential, never the prompt. Same model-exposure caveat as get_secret.

ParameterTypeDescription
projectId *string
environmentstring

airctrl_status AIRCTRL MCP status

Report the AIRCTRL API URL and whether MCP runs as a human or Service Account. Never returns credential values.