AD

aiurda/devcontext

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

49 stars 14 forks 质量 59 趋势 13MIT

DevContext 是一款尖端的模型上下文协议(MCP)服务器,旨在为开发者提供持续的、以项目为中心的上下文感知。

概览

- DevContext 理解你的代码库、对话和开发模式,在你需要时提供相关上下文。 DevContext 是一款尖端的模型上下文协议(MCP)服务器,旨在为开发者提供持续的、以项目为中心的上下文感知。与传统上下文系统不同,DevContext 持续从您的开发模式中学习并适应。DevContext 利用复杂的检索方法,专注于关键词分析、关系图和结构化元数据,在开发过程中提供高度相关的上下文,更深入地理解您的对话和代码库。 服务器运行于专门用于单个项目的数据库实例,消除跨项目复杂性,确保性能且资源需求最小。

概述(AI 翻译)

通过智能上下文感知赋能你的开发工作流程 - DevContext 理解你的代码库、对话和开发模式,在你需要时提供相关上下文。

引言

DevContext 是一款尖端的模型上下文协议(MCP)服务器,旨在为开发者提供持续的、以项目为中心的上下文感知。与传统上下文系统不同,DevContext 持续从您的开发模式中学习并适应。DevContext 利用复杂的检索方法,专注于关键词分析、关系图和结构化元数据,在开发过程中提供高度相关的上下文,更深入地理解您的对话和代码库。

服务器运行于专门用于单一项目的数据库实例,消除跨项目复杂性,确保性能以最小的资源需求。DevContext 构建对代码库的全面理解——从仓库结构到单个函数——同时不断学习和适应你的开发模式。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

DevContext: Autonomous Context Awareness Model-Context-Protocol (MCP) Server

Empower your development workflow with intelligent context awareness - DevContext understands your codebase, conversations, and development patterns to provide relevant context exactly when you need it.

Introduction

DevContext is a cutting-edge Model Context Protocol (MCP) server designed to provide developers with continuous, project-centric context awareness. Unlike traditional context systems, DevContext continuously learns from and adapts to your development patterns. DevContext leverages sophisticated retrieval methods, focusing on keyword analysis, relationship graphs, and structured metadata to deliver highly relevant context during development, understanding both your conversations and your codebase at a deeper level.

The server operates with a database instance dedicated to a single project, eliminating cross-project complexity and ensuring performance with minimal resource requirements. DevContext builds a comprehensive understanding of your codebase - from repository structure down to individual functions - while continuously learning from and adapting to your development patterns.

The BEST way to use this MCP server is to follow the guide below on implementing the provided Cursor Rules system which in turn gives you:

  • Completely autonomous context management
  • Autonomous external documentation context and use
  • Complete task management workflow integration

Core Technologies

  • Node.js: Runtime environment (Node.js 18+)
  • TursoDB: SQL database optimized for edge deployment (compatible with SQLite)
  • Model Context Protocol SDK: For standardized communication with IDE clients
  • Cursor Rules: Autonomous development environment and workflow management
  • JavaScript/TypeScript: Pure JavaScript implementation with no external ML dependencies

Installation Guide

Prerequisites

  • Node.js 18.0.0 or higher
  • Cursor IDE with MCP support
  • TursoDB account (for database)

Step 1: Set up TursoDB Database

  1. Sign up for TursoDB:

    • Visit Turso and create an account
    • The free tier is sufficient for most projects
  2. Install Turso CLI (optional but recommended):

    curl -sSfL https://get.turso.tech/install.sh | bash
    
  3. Authenticate with Turso:

    turso auth login
    
  4. Create a project database:

    turso db create devcontext
    
  5. Get database credentials:

    # Get database URL
    turso db show devcontext --url
    
    # Create auth token
    turso db tokens create devcontext
    

    Save both the URL and token for the next step.

Step 2: Configure MCP in Cursor (can be applied to other IDE’s as well)

Create or edit .cursor/mcp.json in your project directory:

在 GitHub 查看完整 README

安装

npx -y devcontext@latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "devcontext": { "command": "npx", "args": ["-y", "devcontext@latest"], "enabled": true, "env": { "TURSO_DATABASE_URL": "your-turso-database-url", "TURSO_AUTH_TOKEN": "your-turso-auth-token" } } } }