Code Intelligence Plugin — integrate code-index-mcp for codebase understanding #85
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
code-index-mcp is an MCP server that indexes codebases and exposes search/analysis tools to LLMs. It uses tree-sitter AST parsing for 7 languages (Python, JS/TS, Java, Go, Zig, ObjC), fallback for 50+, persistent caching, and file watching.
Why this matters for cobot
Cobot agents that work on code (review PRs, fix issues, refactor) currently rely on raw file reads and grep. A code intelligence layer would give them:
Integration approaches
Option A: MCP client in tools plugin
Add MCP client support to cobot's
toolsplugin. The agent could connect to any MCP server (code-index-mcp, or others) as a tool provider. This is the most general approach — code-index-mcp becomes just one of many MCP tools.Pros: General-purpose, ecosystem-compatible, any MCP server works
Cons: MCP protocol overhead, another dependency (MCP client lib)
Option B: Dedicated code-intelligence plugin
Build a
code_intelplugin that wraps code-index-mcp's core (tree-sitter parsing + indexing) directly as a cobot plugin, exposing capabilities likesearch_symbol,analyze_file,find_referencesas native cobot tools.Pros: Tighter integration, no MCP protocol overhead, fits plugin architecture
Cons: More maintenance, tightly coupled to one implementation
Option C: Subprocess + stdio (lightest touch)
Launch code-index-mcp as a subprocess via
uvx code-index-mcpand communicate over stdio/MCP protocol. No library integration needed.Pros: Zero coupling, always latest version, trivial to set up
Cons: Process management, stdio parsing
Recommendation
Option A (MCP client) is the most forward-looking. MCP is becoming the standard for tool integration in the AI agent ecosystem. Adding MCP client support to cobot opens the door to code-index-mcp and dozens of other MCP servers (databases, APIs, browsers, etc.).
Option C is a good quick-win for prototyping.
Key features to expose
set_project_path— point the indexer at a reposearch_code— search across indexed files (uses ripgrep/ugrep under the hood)analyze_file— deep analysis of a single file (imports, classes, methods, complexity)find_symbol— locate function/class definitions and referenceslist_files— filtered file listing with metadataReferences