Package Exports
- @getnella/mcp
- @getnella/mcp/mcp
Readme
@getnella/mcp
Unified CLI and MCP Server for AI agent reliability
Nella provides codebase indexing, hybrid search, and context tracking for AI coding agents via MCP (Model Context Protocol).
Installation
# Global installation
npm install -g @getnella/mcp
# Or use with npx
npx @getnella/mcp --help
# As a dev dependency
npm install -D @getnella/mcpQuick Start
MCP Server (for Claude Desktop)
# Start MCP server
nella mcp --workspace /path/to/projectIndex Your Codebase
# Index for search
nella index --forcePlayground Server
# Start playground with real-time dashboard
nella playground --workspace /path/to/project
# With custom port
nella playground --workspace /path/to/project --port 4000Open http://localhost:3847 to view the dashboard with:
- Real-time tool call monitoring
- Chain of thought visualization
- Cost tracking (tokens + estimated $)
- Session management
Commands
nella index
Index workspace for semantic and lexical search.
nella index [--force]nella mcp
Start an MCP server for AI agent integration.
nella mcp [--workspace <path>]nella playground
Start the playground server with a real-time dashboard.
nella playground [--workspace <path>] [--port <number>] [--host <host>]nella connect
Configure MCP clients.
nella connect --client claude|vscode|cursor|all [--server-url <url>] [--api-key <key>]nella auth
Authentication management.
nella auth login|logout|statusMCP Integration
Claude Desktop Setup
Add to your Claude Desktop config:
macOS/Linux (~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"nella": {
"command": "npx",
"args": ["@getnella/mcp", "--workspace", "/path/to/project"]
}
}
}Available MCP Tools
| Tool | Description |
|---|---|
nella_index |
Index workspace for semantic and lexical search |
nella_search |
Hybrid search (semantic + BM25) across indexed codebase |
nella_get_context |
Get current session context |
nella_add_assumption |
Record an assumption about the codebase |
nella_check_assumptions |
Get status of recorded assumptions |
nella_check_dependencies |
Check for dependency drift |
CLI Options
| Option | Short | Description |
|---|---|---|
--workspace <path> |
-w |
Path to workspace (for mcp/playground) |
--port <number> |
-p |
Port for playground server (default: 3847) |
--host <host> |
Host for playground server (default: localhost) | |
--force |
-f |
Force full reindex |
--json |
Output as JSON | |
--help |
-h |
Show help |
Programmatic Usage
import {
ContextManager,
createIndexManager,
IndexManager,
} from '@getnella/mcp';
// MCP server
import { startMcpServer } from '@getnella/mcp/mcp';Core Modules (Re-exported)
@getnella/mcp re-exports key modules from @usenella/core:
- Indexing & search (RAG)
- Context tracking (assumptions, dependencies)
- Workspace management
- Auth + rate limiting
- Cloud sync (GCS)
- Playground server
See the Core Modules guide for examples.
Exit Codes
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Failure |
Related Packages
@usenella/core- Core library@usenella/benchmark- Benchmarking tools
Documentation
Full documentation available at:
License
MIT © Nella Labs