Skip to content

Custom MCP Client

Connect Nella to any MCP-compatible client or build your own integration.

Connect Nella to any MCP-compatible client or build your own integration.

Stdio Transport

Nella’s MCP server uses the stdio transport by default. Any MCP client that supports stdio can connect:

npx -y @getnella/mcp --workspace /path/to/repo

The server communicates over stdin/stdout using the MCP protocol.

Programmatic Connection

Connect to Nella from a TypeScript/JavaScript application:

import { Client } from '@modelcontextprotocol/sdk/client';
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio';

const transport = new StdioClientTransport({
  command: 'npx',
  args: ['-y', '@getnella/mcp', '--workspace', '/path/to/repo'],
});

const client = new Client({ name: 'my-app', version: '1.0.0' });
await client.connect(transport);

// List available tools
const tools = await client.listTools();
console.log(tools);

// Call a tool
const result = await client.callTool({
  name: 'nella_search',
  arguments: {
    query: 'authentication middleware',
  },
});

console.log(result);

Available Tools

Local stdio connections expose the workspace tools below:

ToolDescription
nella_indexIndex a workspace directory
nella_searchHybrid semantic + lexical codebase search
nella_get_contextGet session context
nella_add_assumptionRecord an assumption
nella_check_assumptionsCheck assumption validity
nella_check_dependenciesDetect dependency drift
nella_heartbeatVerify trust-chain continuity between tool calls

See the MCP Tools Reference for full input/output schemas.