API Keg — Spec Slice (OpenAPI & GraphQL Subgraph Extractor)

Extract minimal OpenAPI 3.x, Swagger 2.0, and GraphQL subgraphs with transitive $ref closure.

Sollte ich dies verwenden

Qualität und Sicherheit

B
Qualität der Beschreibung
95%
Vollständigkeit des Schemas
96%
Qualität der Benennung
80%
Risiko der Vergiftung
40%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Befunde (5)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains URL to non-standard domainin slice_openapi_spec
  • MEDIUMTool description contains URL to non-standard domainin slice_graphql_schema
  • MEDIUMTool description contains URL to non-standard domainin account_create_checkout
  • LOWTool 'account_rotate_api_key' description lacks action verbin account_rotate_api_key

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~1,944Tokens (Tool-Definitionen)
~2.4 KBTypische Antwortgröße
Mittlere Auswirkung auf die Aufmerksamkeit (1.52% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "spec-slice": {
      "url": "https://spec-slice.apikeg.com/mcp"
    }
  }
}

Remote-Endpunkte

https://spec-slice.apikeg.com/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (6)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢slice_openapi_spec(spec, query, operationIds, pathPatterns, methods, ...)

Selects OpenAPI/Swagger endpoints matching a natural-language query, operationIds, or pathPatterns, retains all transitively referenced component schemas, and returns a valid mini-spec plus optional curl and fetch examples. Pricing: $0.001 USD per OpenAPI/Swagger subgraph slice (x402 instant micropayment). Defaults to HTTP 402 (x402); if your client lacks 402 support, sign in via MCP OAuth or subscribe at https://apikeg.com/account. Pass ?dry_run=true on REST to validate schema free.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "spec": {
      "description": "OpenAPI 3.0/3.1 or Swagger 2.0 specification provided as either a parsed JSON object or a serialized JSON string (up to 5 MiB)."
    },
    "query": {
      "type": "string",
      "maxLength": 500,
      "description": "Natural-language task intent (e.g. 'create credit note and refund invoice') matched against operationId, summary, tags, and path segments."
    },
    "operationIds": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "maxItems": 50,
      "description": "Explicit operationId values to extract (case-insensitive)."
    },
    "pathPatterns": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 300
      },
      "maxItems": 50,
      "description": "Explicit path templates or 'METHOD /v1/path/*' glob patterns to extract (e.g. 'POST /v1/invoices/*/refund')."
    },
    "methods": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "GET",
          "POST",
          "PUT",
          "PATCH",
          "DELETE",
          "HEAD",
          "OPTIONS",
          "TRACE"
        ]
      },
      "maxItems": 8,
      "description": "Optional HTTP method allowlist."
    },
    "maxOperations": {
      "type": "integer",
      "default": 5,
      "minimum": 1,
      "maximum": 50,
      "description": "Maximum number of matched operations to retain in the sliced OpenAPI spec."
    },
    "compactDescriptions": {
      "type": "boolean",
      "default": false,
      "description": "Strip verbose prose descriptions, examples, and externalDocs while keeping spec-valid response descriptions."
    },
    "includeSnippets": {
      "type": "boolean",
      "default": true,
      "description": "Generate ready-to-use curl and TypeScript fetch code snippets for each selected operation."
    },
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Optional API Keg Bearer key (ak_live_... or ak_oauth_...) returned by account_verify_and_checkout when your MCP client does not send an Authorization HTTP header."
    }
  },
  "required": [
    "spec"
  ],
  "additionalProperties": false
}
🟢slice_graphql_schema(sdl, query, rootFields, operationTypes, maxRootFields, ...)

Parses GraphQL Schema Definition Language (`Query`, `Mutation`, `Subscription`, `type`, `input`, `interface`, `union`, `enum`, `scalar`), scores root fields against `query` or explicit `rootFields`, and emits a valid mini-SDL containing only selected root fields and the transitive closure of referenced types. Pricing: $0.001 USD per GraphQL SDL subgraph slice (x402 instant micropayment). Defaults to HTTP 402 (x402); if your client lacks 402 support, sign in via MCP OAuth or subscribe at https://apikeg.com/account. Pass ?dry_run=true on REST to validate schema free.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "sdl": {
      "type": "string",
      "minLength": 1,
      "description": "Full GraphQL Schema Definition Language (SDL) string."
    },
    "query": {
      "type": "string",
      "maxLength": 500,
      "description": "Natural-language task intent scored against root Query, Mutation, and Subscription fields."
    },
    "rootFields": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "maxItems": 50,
      "description": "Explicit root field names to extract (e.g. 'createCreditNote' or 'Mutation.refundInvoice')."
    },
    "operationTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Query",
          "Mutation",
          "Subscription"
        ]
      },
      "maxItems": 3,
      "description": "Optional filter restricting root operation containers."
    },
    "maxRootFields": {
      "type": "integer",
      "default": 5,
      "minimum": 1,
      "maximum": 50,
      "description": "Maximum number of matched root fields to retain in the mini-SDL."
    },
    "compactDescriptions": {
      "type": "boolean",
      "default": false,
      "description": "Strip triple-quoted and single-line descriptions from the emitted mini-SDL."
    },
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Optional API Keg Bearer key (ak_live_... or ak_oauth_...) returned by account_verify_and_checkout when your MCP client does not send an Authorization HTTP header."
    }
  },
  "required": [
    "sdl"
  ],
  "additionalProperties": false
}
🟡account_send_verification_code(email)

Free ($0.00). Sends a 9-character verification code (AAA-AAA-AAA) to the user's email address to register, sign in, or view their current ak_live_... API key without rotating it. Ask for the email and resulting code using your built-in interactive question tool (AskUserQuestion / ask_question).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "minLength": 5,
      "maxLength": 254,
      "description": "User's email address to receive the 9-character verification code."
    }
  },
  "required": [
    "email"
  ],
  "additionalProperties": false
}
🟡account_verify_and_checkout(email, code, tierId, createCheckout, rotateApiKey)

Free ($0.00). Verifies the 9-character email code from account_send_verification_code, returns the user's current ak_live_... API key on the first call (even if already registered, without rotating their key!), and optionally creates a direct Stripe Checkout URL for "spec-slice" ($5, $20, or $50/mo).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "minLength": 5,
      "maxLength": 254,
      "description": "The same email address passed to account_send_verification_code."
    },
    "code": {
      "type": "string",
      "minLength": 9,
      "maxLength": 16,
      "description": "9-character verification code (AAA-AAA-AAA) from the user's email."
    },
    "tierId": {
      "type": "string",
      "enum": [
        "starter_5",
        "growth_20",
        "scale_50"
      ],
      "default": "starter_5",
      "description": "Monthly plan for this API: starter_5 ($5/mo = $6 credit), growth_20 ($20/mo = $28 credit), or scale_50 ($50/mo = $80 credit)."
    },
    "createCheckout": {
      "type": "boolean",
      "default": true,
      "description": "Set false when the user only wants to view their current ak_live_... API key without generating a Stripe Checkout session."
    },
    "rotateApiKey": {
      "type": "boolean",
      "default": false,
      "description": "Leave false (default) to return the user's existing ak_live_... key unchanged. Set true only if the user explicitly wants to revoke and replace their key."
    }
  },
  "required": [
    "email",
    "code"
  ],
  "additionalProperties": false
}
🟡account_create_checkout(tierId, apiKey)

Free ($0.00). Generates a direct Stripe Checkout URL (https://checkout.stripe.com/...) for "spec-slice" ($5, $20, or $50/mo) using either the connected Authorization header or an apiKey.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "tierId": {
      "type": "string",
      "enum": [
        "starter_5",
        "growth_20",
        "scale_50"
      ],
      "default": "starter_5",
      "description": "Monthly plan to activate or upgrade to: starter_5 ($5/mo = $6 credit), growth_20 ($20/mo = $28 credit), or scale_50 ($50/mo = $80 credit)."
    },
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Optional ak_live_... or ak_oauth_... key when no Authorization header is configured on the MCP client."
    }
  },
  "additionalProperties": false
}
🔴account_rotate_api_key(apiKey)

Free ($0.00). Rotates the user's ak_live_... API key immediately without requiring an email verification code, authenticating with either the connected Authorization header or the current apiKey.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "string",
      "minLength": 10,
      "maxLength": 256,
      "description": "Current ak_live_... or ak_oauth_... Bearer key when no Authorization header is configured on the MCP client."
    }
  },
  "additionalProperties": false
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet6 Tools