dependency-context

dependency-context

2

Dependency Context is a Model Context Protocol server and CLI tool designed to aid AI assistants by providing contextual access to project dependency documentation. It offers advanced features like semantic search and dependency indexing, intended to enhance AI-driven software development tools.

Dependency Context

An MCP server and command line tool providing AI assistants with access to project dependency documentation for accurate responses about libraries and frameworks used in the codebase.

Configuration

  • Create a dependency-context.json to specify dependencies for indexing.
  • Falls back to package.json or requirements.txt if not present.

Quick Start

  • MCP integration recommended for AI tool Cursor.
  • Direct download option available without vector database.

MCP Tools

  • InitializeDependencyIndex: Creates a searchable index of project dependencies.
  • searchDependencyDocs: Performs semantic search over indexed documentation.

Architecture

  • Modular TypeScript architecture with key components for dependency parsing, repository discovery, document fetching, and more.

Testing

  • Unit and manual testing procedures provided.

Troubleshooting

  • Solutions for GitHub API rate limits, empty search results, and permission issues.

Project Todo List

  • Includes tasks of varying priority with a focus on additional package manager support and enhanced documentation.

License

  • Licensed under MIT with Commons Clause, allowing modifications and distribution but restricting selling Dependency Context as a service.