Dependency Context
by DarianB
Dependency Context is an MCP server and command line tool that provides AI assistants with contextual access to your project's dependency documentation. This enables more accurate responses about libraries and frameworks used in your codebase.
Last updated: N/A
What is Dependency Context?
Dependency Context is a tool designed to provide AI assistants with contextual access to a project's dependency documentation. It includes an MCP server and a command-line interface for indexing and searching dependency documentation, improving the accuracy of AI responses related to libraries and frameworks.
How to use Dependency Context?
There are two main ways to use Dependency Context: through MCP integration with an AI editor like Cursor, or by directly downloading the documentation using the command-line tool. The MCP integration allows the AI to automatically pull in relevant dependency information when prompted. The command-line tool allows you to download and browse the dependency documentation without vector search.
Key features of Dependency Context
Indexes dependency documentation for semantic search
Provides contextual information to AI assistants
Supports custom dependency configuration via dependency-context.json
Offers both MCP server and command-line interface
Uses vector embeddings for efficient search
Use cases of Dependency Context
Improving AI code completion and suggestions
Providing accurate answers to questions about library usage
Generating documentation snippets for dependencies
Helping developers understand unfamiliar codebases
FAQ from Dependency Context
How do I specify which dependencies to index?
How do I specify which dependencies to index?
The recommended way is to create a dependency-context.json
file in your project root. If this file is not present, Dependency Context falls back to scanning package.json
or requirements.txt
.
What is MCP?
What is MCP?
MCP stands for Machine Communication Protocol. It provides a standardized interface for AI tools to interact with Dependency Context.
How do I resolve GitHub API rate limit errors?
How do I resolve GitHub API rate limit errors?
Create a GitHub personal access token and set it as the GITHUB_TOKEN
environment variable.
What do I do if my searches return empty results?
What do I do if my searches return empty results?
Ensure the indexing process completed successfully, check the console output for errors, verify that your search query is relevant, and try a more general query.
What are the licensing terms for Dependency Context?
What are the licensing terms for Dependency Context?
Dependency Context is licensed under the MIT License with Commons Clause. You can use, modify, and distribute it, but you cannot sell Dependency Context itself or offer it as a hosted service.