關於這個工具
CodexA 是一款開發者智慧引擎,專注於語意程式碼搜尋、AI 輔助理解與工作區工具。它面向開發者以及 AI 編碼助理使用者,提供 CLI、HTTP 和 MCP 三種整合方式,使 AI 代理能夠呼叫其 13 個結構化工具。
核心能力
- 語意程式碼搜尋:透過自然語言查詢程式碼庫,快速定位相關程式碼。
- AI 代理工具整合:透過 MCP、HTTP 橋接或 CLI 與 Copilot、Claude、Cursor 等 AI 編碼助理整合。
- 多輪程式碼調查:支援多輪對話與調查鏈,深入理解程式碼邏輯。
- 程式碼庫分析:提供呼叫圖、依賴映射、品質指標與影響分析。
- AI 程式碼審查:自動審查程式碼變更,識別潛在問題。
使用方式
CodexA 提供 39 個 CLI 命令、13 個 AI 代理工具和 22 個外掛鉤子。您可以透過 codexa ask 提問、codexa chat 進行多輪對話、codexa review 執行 AI 程式碼審查。MCP 模式透過 codexa mcp --path /your/project 啟動,所有 13 個工具均以 MCP 工具形式暴露。
配置要求
AI 驅動的分析需要配置 LLM 供應商,支援 openai、ollama(本地)和 mock(測試)。首次使用需執行 codexa init 初始化專案,codexa doctor 檢查環境健康。
功能與使用情境
* llm Configure the LLM provider for AI-powered commands*"])incrementalbooltrueOnly re-index changed files You can also create a0 Benchmark-backed performance work and native integration0 Reliability, integration contracts, and critical-path testing0 Tool schemas: Auto-generated from CodexA's tool definitions Error handling: Typed errors with machine-readable codes Requirements The MCP SDK (mcp) is an optional dependency1:24842/tools/invoke \ -H "Content-Type: application/json" \ -d '{"tool_name": "semantic_search", "arguments": {"query": "auth"}}' # List tools curl http://1271:24842/tools/invoke directly1:24842/tools/list # SSE event stream curl http://1271:24842/tools/stream MCP (Model Context Protocol) bashcodexa mcp --path /your/project All 13 tools are exposed as MCP tools with proper schemas13 structured tools for AI agents2, "max_tokens": 2048 } } Supported providers: openai, ollama (local), mock (testing)39 CLI commands, 13 AI agent tools, 22 plugin hooks
快速事實
提供公開 API
整合與連接
GitHub