Koskamo

Search Context7 documentation for code snippets

Retrieves relevant code and information snippets from Context7's documentation index based on a specific technical query.

How it works

Read-onlySoftware development

The agent constructs a search query using natural language keywords. It calls the Context7 MCP server's search tool (mapped to GET /api/v3/search) to find relevant libraries and retrieve snippets. The agent parses the JSON response to extract code snippets and informational content, filtering for the most relevant results based on the user's intent.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Search Context7 documentation for code snippets
Find documentation on how to implement authentication with a proxy in Next.js. Please provide the relevant code snippets and explanation.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

The Search API is the simplest way to retrieve documentation. You provide a question, and Context7 selects relevant libraries before searching and reranking their snippets.
API Guide - Context7 MCP

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.