Code
How upstash/context7 is laid out, and where to start for common changes.
There is no import map for this report yet.
Where to start reading
- Repository root
- Repository root
- Likely public API
- Likely public API
- Likely start-up file
- Suggested starting pointAI
- Suggested starting pointAI
- Suggested starting pointAI
Find files for a task
AIAdd a new CLI command
- Register command in CLI router within packages/cli/src/index.ts
- Add command to setup flow if needed in packages/cli/src/setup/
Add a new SDK command (e.g., new query type)
- Export command from packages/sdk/src/commands/index.ts
Add a new MCP tool/resource
- Define tool interface and parameters in packages/mcp/src/lib/tool-names.ts
- Create tool handler that calls underlying SDK commands
- Register tool in MCP server initialization at packages/mcp/src/index.ts
- Add authentication/scope validation if needed in packages/mcp/src/lib/mcp-operation-scope.ts
Add AI SDK agent integration
- Export adapter factory from packages/tools-ai-sdk/src/index.ts
- Add integration tests in packages/tools-ai-sdk/src/index.test.ts
Change the public API
Trace runtime behavior
Add or update tests
Change build or automation
RepoPilot lists up to 500 files, so a file missing here may still exist.
- Files marked “likely” are guessed from their names.