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

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

¿Debería usar esto?

Calidad y seguridad

B
Calidad de la descripción
95%
Integridad del esquema
96%
Calidad de los nombres
80%
Riesgo de envenenamiento
40%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (5)

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

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~1,944Tokens (definiciones de herramientas)
~2.4 KBTamaño de respuesta típico
Impacto moderado en la atención (1.52% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

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

Puntos de conexión remotos

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

Qué puede hacer

Inventario de herramientas

Herramientas (6)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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).

Esquema de entrada

{
  "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).

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada6 herramientas