Last active
October 25, 2025 16:22
-
-
Save Japh/35d0d8016d2efa2412a81f2e3247962a to your computer and use it in GitHub Desktop.
Context7 Action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| schema_version: 1.0.0 | |
| name_for_model: contextMemory | |
| name_for_human: Context7 Memory Retriever | |
| description_for_model: | | |
| Use this tool to retrieve relevant context memories from a message history. | |
| Sends OpenAI-style messages to Context7 MCP and receives related memory strings. | |
| description_for_human: | | |
| Retrieves contextually relevant memories using the Upstash Context7 MCP API. | |
| Useful for adding personalized or memory-based retrieval into conversations. | |
| auth: | |
| type: bearer | |
| authorization_url: https://example.com/ # not required, but OpenAI requires a URL. Not used. | |
| verification_tokens: {} | |
| api: | |
| type: openapi | |
| url: https://gist.githubusercontent.com/Japh/35d0d8016d2efa2412a81f2e3247962a/raw/ddabbddad596097ec110d052ce22ce8761ab1c7f/context7-openapi.yaml | |
| logo_url: https://avatars.githubusercontent.com/u/95771147?s=200&v=4 | |
| contact_email: support@upstash.com | |
| legal_info_url: https://upstash.com/terms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.1.0 | |
| info: | |
| title: Upstash Context7 MCP API | |
| description: | | |
| Public MCP (Memory Context Protocol) endpoint provided by Upstash Context7. | |
| Accepts OpenAI-style chat messages and returns contextually relevant memory entries. | |
| While this endpoint works without authentication, using a Bearer token is recommended for higher rate limits or access to private memory indexes. | |
| version: 1.0.1 | |
| servers: | |
| - url: https://mcp.context7.com | |
| description: Public hosted MCP endpoint | |
| paths: | |
| /mcp: | |
| post: | |
| operationId: getRelevantMemories | |
| summary: Retrieve relevant memories from the Context7 MCP server. | |
| requestBody: | |
| required: true | |
| content: | |
| application/json: | |
| schema: | |
| type: object | |
| properties: | |
| messages: | |
| type: array | |
| description: List of chat messages (OpenAI format). | |
| items: | |
| type: object | |
| required: [role, content] | |
| properties: | |
| role: | |
| type: string | |
| enum: [system, user, assistant, tool] | |
| content: | |
| type: string | |
| top_k: | |
| type: integer | |
| description: Number of relevant memories to return. | |
| example: 3 | |
| filter: | |
| type: object | |
| description: Optional metadata filter. | |
| additionalProperties: true | |
| required: | |
| - messages | |
| responses: | |
| '200': | |
| description: A list of relevant memory strings. | |
| content: | |
| application/json: | |
| schema: | |
| type: array | |
| items: | |
| type: string | |
| '400': | |
| description: Bad request – invalid input format. | |
| '401': | |
| description: Unauthorized – missing or invalid API token. | |
| '500': | |
| description: Internal server error. | |
| security: | |
| - bearerAuth: [] | |
| components: | |
| securitySchemes: | |
| bearerAuth: | |
| type: http | |
| scheme: bearer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment