Setup
1
Create the Context7 connection
Create The API key is optional, so the connection can use Context7’s anonymous limits when
agent/connections/context7.ts in your eve project:CONTEXT7_API_KEY is not set. For higher rate limits, create an API key in the Context7 dashboard.2
Configure an API key (recommended)
Add the key to For a deployed eve agent, add the same variable to the linked Vercel project and pull it locally:eve’s
.env.local for local development. Do not commit this file.getToken callback sends the value as an Authorization: Bearer token. Vercel Connect is not required when using an API key.3
Verify the connection
Inspect the agent and confirm that it compiles with Then start the agent and ask a documentation question. When the connection is used, eve discovers only the two tools in the allowlist:
0 errors and 0 warnings:How It Works
The filename registers the connection ascontext7. eve discovers the remote MCP tools and makes them available as context7__resolve-library-id and context7__query-docs when the model searches for a relevant connection.
The allowlist keeps the connection limited to Context7’s documentation tools, including if the server adds more tools later. Both tools are read-only, so they do not require an approval gate.
When a request names a library, the agent first calls resolve-library-id to find its Context7 library ID, then calls query-docs with that ID and the user’s specific question. If the prompt already includes a Context7 library ID such as /vercel/next.js, the agent can call query-docs directly.