LeTrAInAI Super Agent

LeTrAInAI Super Agent · GPT-Aktionen

Context7 MCP Server (Explicit Query Params)

Fetch up-to-date library documentation and resolve library IDs. This version explicitly defines api_key, profile, and operation as query parameters for each operation.

  • POST /@upstash/context7-mcp/mcpResolve an npm package name to a Context7 library ID.
  • POST /@upstash/context7-mcp/mcp_get_docsFetch documentation for a resolved Context7 library ID.
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Context7 MCP Server (Explicit Query Params)",
    "version": "1.0.2",
    "description": "Fetch up-to-date library documentation and resolve library IDs. This version explicitly defines api_key, profile, and operation as query parameters for each operation."
  },
  "servers": [
    {
      "url": "https://server.smithery.ai",
      "description": "Base Smithery server. The full path and query parameters for MCP operations will be specified per operation."
    }
  ],
  "paths": {
    "/@upstash/context7-mcp/mcp": {
      "post": {
        "operationId": "resolveLibraryId",
        "summary": "Resolve an npm package name to a Context7 library ID.",
        "parameters": [
          {
            "name": "profile",
            "in": "query",
            "required": true,
            "description": "User's Smithery profile ID.",
            "schema": {
              "type": "string",
              "default": "chief-cricket-2AG09J"
            }
          },
          {
            "name": "api_key",
            "in": "query",
            "required": true,
            "description": "User's Smithery API key.",
            "schema": {
              "type": "string",
              "default": "b37f65fb-6e75-4e76-940d-88d1db664b90"
            }
          },
          {
            "name": "operation",
            "in": "query",
            "required": true,
            "description": "The MCP operation to perform.",
            "schema": {
              "type": "string",
              "default": "resolve-library-id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The npm package name (e.g., react, lodash)"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully resolved the library ID.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The Context7-compatible library ID (e.g., npm:react@18.2.0)"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. Check API key, profile, and operation name in the query parameters."
          },
          "404": {
            "description": "Not Found. Ensure the path /@upstash/context7-mcp/mcp is correct."
          },
          "default": {
            "description": "An unexpected error occurred."
          }
        }
      }
    },
    "/@upstash/context7-mcp/mcp_get_docs": {
      "post": {
        "operationId": "getLibraryDocs",
        "summary": "Fetch documentation for a resolved Context7 library ID.",
        "parameters": [
          {
            "name": "profile",
            "in": "query",
            "required": true,
            "description": "User's Smithery profile ID.",
            "schema": {
              "type": "string",
              "default": "chief-cricket-2AG09J"
            }
          },
          {
            "name": "api_key",
            "in": "query",
            "required": true,
            "description": "User's Smithery API key.",
            "schema": {
              "type": "string",
              "default": "b37f65fb-6e75-4e76-940d-88d1db664b90"
            }
          },
          {
            "name": "operation",
            "in": "query",
            "required": true,
            "description": "The MCP operation to perform.",
            "schema": {
              "type": "string",
              "default": "get-library-docs"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The Context7-compatible library ID obtained from resolveLibraryId (e.g., npm:react@18.2.0)"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully fetched library documentation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "docs": {
                      "type": "string",
                      "description": "The library documentation content, typically in Markdown or HTML."
                    }
                  },
                  "required": [
                    "docs"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. Check API key, profile, and operation name in the query parameters."
          },
          "404": {
            "description": "Not Found. Ensure the path is correct."
          },
          "default": {
            "description": "An unexpected error occurred."
          }
        }
      }
    }
  }
}