AC

ab498/code-context-provider-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

20 stars 7 forks 品質 62 トレンド 0MIT

AIアシスタントのコードコンテキストと解析を提供するMCPサーバー。 WebAssembly Tree-sitter パーサをゼロネイティブ依存症で使用しているディレクトリ構造とコードシンボルを抽出します.

概要

- ディレクトリツリー構造の生成 - JavaScript/TypeScript と Python ファイルを分析 - ソースコードのシンボル(関数、変数、クラス、インポート、エクスポート) - AI アシスタントとのシームレスな統合のための MCP プロトコルと互換性のある スミサリーを介して自動的にClaudeデスクトップ用のコードコンテキストプロバイダをインストールするには: ディレクトリを分析し、コードシンボル(オプション)とともに構造を返す。 パラメーター: - 絶対パス(文字列、必須): 解析するディレクトリへの絶対パス - analyticsJs(ブーリアン、オプション): JavaScript/TypeScript と Python ファイル(デフォルト: false)を解析するかどうか - includeSymbols (boolean、オプション): 応答(デフォルト: false)のコード記号を含むかどうか - symbolType(enum、オプション): includeSymbols が真 (options: 'functions', 'variables', 'classes', 'imports', 'exports', 'all', default: 'all') - filePatterns (文字列の配列、オプション) 解析するファイルパターン(例:['.js', '.py', 'config.).

概要(AI 翻訳)

MCP サーバーは、AI アシスタントのコードコンテキストと解析を提供します。 WebAssembly Tree-sitter パーサをゼロネイティブ依存症で使用しているディレクトリ構造とコードシンボルを抽出します。

お問い合わせ

##特徴

  • ディレクトリツリー構造を生成する
  • JavaScript/TypeScript と Python ファイルの解析
  • 抽出コードシンボル(機能、変数、クラス、インポート、エクスポート)
  • AIアシスタントとのシームレスな統合のためのMCPプロトコルと互換性のある

速い使用法(MCPの組み立て)

##Smitheryでインストールする

スミサリーを介して自動的にClaudeデスクトップ用のコードコンテキストプロバイダをインストールするには:

ウィンドウズ

##MacOS/Linuxの

npmでグローバルにインストールするか:

次に実行して使用します。

利用可能なツール

##[get_code_context

ディレクトリを分析し、コードシンボル(オプション)とともに構造を返す。

パラメーター:

  • absolutePath: ディレクトリへの絶対パスを解析
  • [analyzeJs] (ブーリアン、オプション): JavaScript/TypeScript と Python ファイルを解析するかどうか (デフォルト: false)
  • [includeSymbols] (ブーリアン、オプション): 応答にコード記号を含めるかどうか (デフォルト: false)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Code Context Provider MCP

MCP server that provides code context and analysis for AI assistants. Extracts directory structure and code symbols using WebAssembly Tree-sitter parsers with Zero Native Dependencies.


Features

  • Generate directory tree structure
  • Analyze JavaScript/TypeScript and Python files
  • Extract code symbols (functions, variables, classes, imports, exports)
  • Compatible with the MCP protocol for seamless integration with AI assistants

Quick Usage (MCP Setup)

Installing via Smithery

To install Code Context Provider for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @AB498/code-context-provider-mcp --client claude

Windows

{
  "mcpServers": {
    "code-context-provider-mcp": {
      "command": "cmd.exe",
      "args": [
        "/c",
        "npx",
        "-y",
        "code-context-provider-mcp@latest"
      ]
    }
  }
}

MacOS/Linux

{
  "mcpServers": {
    "code-context-provider-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "code-context-provider-mcp@latest"
      ]
    }
  }
}

OR install globally with npm:

npm install -g code-context-provider-mcp

Then use it by running:

code-context-provider-mcp # if you're not using @latest, you may want to clear the cache for latest version using `Remove-Item -Path "$env:LOCALAPPDATA\npm-cache\_npx" -Recurse -Force` for windows and `rm -rf ~/.npm/_npx` for linux/macos

Available Tools

get_code_context

Analyzes a directory and returns its structure along with code symbols (optional).

Parameters:

  • absolutePath (string, required): Absolute path to the directory to analyze
  • analyzeJs (boolean, optional): Whether to analyze JavaScript/TypeScript and Python files (default: false)
  • includeSymbols (boolean, optional): Whether to include code symbols in the response (default: false)
GitHub で README 全文を見る

インストール

npx -y code-context-provider-mcp@latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "code-context-provider-mcp": { "command": "cmd.exe", "args": [ "/c", "npx", "-y", "code-context-provider-mcp@latest" ] } } }