Gazebo
    ServicesAgentsDocsWritingPricing
    Log inSign up
    Log in

    Getting Started

    • Introduction
    • How Gazebo works
    • Core concepts
    • Quickstart

    Agent Access

    • Access profiles
    • Bearer tokens
    • Audit logs

    MCP

    • Overview
    • Cursor
    • Claude Desktop
    • Claude Code
    • OpenAI / Codex
    • Devin / Windsurf
    • Any MCP client
    • Get credential reference

    Authorization

    • Agent Consent Flow

    REST API

    • Overview
    • Authentication
    • Services
    • Agents
    • Access policies
    • Audit events
    • Consent administration
    • Agent credential access
    • Errors and limits

    Developer Tools

    • TypeScript SDK
    • CLI

    Security

    • Overview
    • Encryption model
    • Credential storage
    • Audit and compliance
    • Responsible disclosure
    Documentation

    Getting Started

    • Introduction
    • How Gazebo works
    • Core concepts
    • Quickstart

    Agent Access

    • Access profiles
    • Bearer tokens
    • Audit logs

    MCP

    • Overview
    • Cursor
    • Claude Desktop
    • Claude Code
    • OpenAI / Codex
    • Devin / Windsurf
    • Any MCP client
    • Get credential reference

    Authorization

    • Agent Consent Flow

    REST API

    • Overview
    • Authentication
    • Services
    • Agents
    • Access policies
    • Audit events
    • Consent administration
    • Agent credential access
    • Errors and limits

    Developer Tools

    • TypeScript SDK
    • CLI

    Security

    • Overview
    • Encryption model
    • Credential storage
    • Audit and compliance
    • Responsible disclosure
    DocsMCPGet credential reference

    Get credential reference

    The get_credential tool retrieves a plaintext credential from the Gazebo vault for a named service. Valid credential-retrieval attempts are audited, including policy denials and missing credentials. Authentication failures and malformed arguments do not create credential-access events. If audit persistence fails, no credential is released. The value is delivered to the MCP client/agent; do not persist it.

    Security boundary

    The runtime receives the actual stored provider key, not a new per-call credential. Its host can retain the value, and MCP clients may place tool responses in model context. Use trusted runtimes and narrow provider permissions. Revoking Gazebo access stops new retrieval, not use of keys already retrieved.

    Parameters

    ParameterTypeRequiredDescription
    servicestringYesThe service slug (e.g. "stripe", "github", "vercel")
    methodstringYesThe HTTP method you intend to use the credential for ("GET", "POST", "PUT", "PATCH", "DELETE")
    key_namestringRequired for OAuth; optional for manual agent tokensThe explicitly approved named credential. Only manual agent-token requests may omit it to retrieve the service's primary active credential.

    The method parameter is policy-enforced — declaring "POST" when you intend to make a write call is not optional. If your access profile doesn't permit POST on that service, the call is denied and logged.

    This check governs retrieval using the declared method. Gazebo does not proxy or enforce the provider API call made afterward; the retrieved key's provider permissions still apply.

    Success response

    On success, get_credential returns the plaintext credential as a string:

    get_credential({ service: "stripe", key_name: "api_key", method: "GET" })
    → "<scoped-service-credential>"
    

    Use this value directly in your API call. Do not persist it; retrieve it again when needed.

    Denial response

    If the agent is not permitted to use the declared method, the tool returns JSON text inside result.content, with result.isError: true:

    {
      "status": "denied",
      "service": "stripe",
      "method": "DELETE",
      "allowed_methods": ["GET", "POST"]
    }
    

    If the service itself is not allowed, the JSON text is { "status": "denied", "service": "stripe" }.

    On denial, do not retry without user intervention. Parse the response, tell the user what happened, and stop. There are no reason or next_action fields in these MCP responses.

    Not-found response

    If no active credential matches the requested service/key, the tool returns JSON text with result.isError: true:

    {
      "status": "not_found",
      "service": "stripe",
      "key_name": null
    }
    

    key_name is the requested name when supplied, or null when omitted. Check that the credential exists and has not expired.

    Error table

    HTTP statusstatus fieldMeaning
    200—Credential returned as MCP text content
    200deniedTool error: service not allowed, or declared method not permitted
    200not_foundTool error: no active credential matches
    401—Invalid or missing bearer token
    403—Untrusted browser Origin; not a credential-policy denial
    500—Internal error, including failed audit persistence; no credential released

    Invalid tool arguments return a JSON-RPC error (-32602), not a structured status outcome. The table describes MCP, not the separate REST API.

    Recommended usage pattern

    1. get_identity()                           → confirm accessible services
    2. get_credential({ service, method })      → fetch the credential
    3. [make your API call using the credential]
    4. list_audit_events({ service, limit: 1 }) → optionally confirm it was logged
    

    Do not store the returned credential in memory beyond the scope of the current API call. Treat it as ephemeral.

    Explore Gazebo

    Gazebo gives each agent an independent access boundary around your agent credentials, with controls for approval, auditing, and revocation.

    Scoped identities for AI agentsGive every agent only the credentials it needs.Credential security and audit controlsSee how access is protected, recorded, and revoked.
    Any MCP clientAgent Consent Flow
    Gazebo

    Credential management for AI agents. Scoped access, approval controls, and complete audit logs—without hardcoding or rotating shared API keys.

    Gazebo

    • Platform
    • Demo
    • MCP
    • Pricing

    Explore

    • Services
    • Agents
    • Vaults

    Content

    • Writing
    • Topics
    • Blog
    • Docs

    Company

    • About
    • [email protected]

    © 2026 Gazebo. All rights reserved.

    PrivacyTermsSecurity