Integrations¶
This page explains how to plug Hypercontext into other tools and assistants. The current split is:
python -m hypercontext mcplaunches the stdio MCP daemon for Claude Desktop, Claude Code, Codex, and other assistants that speak MCP over stdin/stdout.python -m hypercontext servelaunches the HTTP MCP server for the browser dashboard and local HTTP integrations.hypercontext-node-sdkis the TypeScript SDK for Node.js applications.
Choose Your Install Path¶
| Install path | Best for | Typical entry points |
|---|---|---|
| Python package installed | Using Hypercontext from another project with the installed package | python -m hypercontext ... |
| Npm package installed | Node.js applications and TypeScript agents | import { ... } from 'hypercontext-node-sdk' |
1. Python Package Installed¶
If you installed Hypercontext from PyPI:
pip install hypercontext
Then use the CLI from any project directory:
python -m hypercontext version
python -m hypercontext mcp --workdir /path/to/project
python -m hypercontext tui --workdir /path/to/project
python -m hypercontext serve --port 8080 --workdir /path/to/project
This is the cleanest route if you want Hypercontext on a machine where the installed package is all you need.
2. Npm Package Installed¶
If you are building a Node.js or TypeScript app, install the SDK:
npm install hypercontext-node-sdk
Use it from application code:
import {
ContextCompressor,
StructuredOutputParser,
EnhancedToolRegistry,
LoggingMiddleware,
TaskAgent,
} from "hypercontext-node-sdk";
const compressor = new ContextCompressor();
const parser = new StructuredOutputParser();
const registry = new EnhancedToolRegistry();
registry.use(new LoggingMiddleware());
registry.registerTool(
{
name: "echo",
description: "Echo a payload back",
parameters: { type: "object" },
},
async (args) => args,
);
const agent = new TaskAgent({ name: "demo", maxTokens: 1024 });
console.log(agent.forward({ prompt: "hello" }).prediction);
console.log(parser.parseFirst('Result: {"status":"ok"}'));
Use the npm package when:
- your app runtime is Node.js
- you want to call Hypercontext from TypeScript directly
- you are building tooling around the SDK rather than the Python CLI
The npm package is an SDK. It does not replace the Python CLI commands such as
run, tui, mcp, or serve.
3. Claude Desktop¶
Claude Desktop usually wants a local stdio MCP server. Hypercontext now ships one directly, so you do not need a bridge for the standard desktop workflow.
Python Package Installed¶
If Hypercontext is installed from PyPI, use the installed python entry point:
{
"mcpServers": {
"hypercontext": {
"command": "python",
"args": ["-m", "hypercontext", "mcp", "--workdir", "/path/to/project"]
}
}
}
What You Get¶
The stdio daemon exposes the same core tool/resource surface to desktop agents:
compressretrieveevaluatearchive_listarchive_showsandbox_runevolution_startmutation_applybenchmark_run- archive, lineage, config, and evolution resources
If you still need the HTTP path for another UI or integration, use
python -m hypercontext serve --port 8080 --workdir /path/to/project.
4. Codex And Other Terminal Agents¶
Codex-style terminal workflows work best when you call Hypercontext directly from the shell:
python -m hypercontext providers
python -m hypercontext mcp --workdir /path/to/project
python -m hypercontext run --generations 5 --output-dir ./runs/demo --workdir /path/to/project
python -m hypercontext evaluate /path/to/project --domains memory --workdir /path/to/project
python -m hypercontext tui --workdir /path/to/project
Use this mode when you want:
- a local agent to inspect a repo
- to run the evolutionary loop against a project directory
- to keep the working directory explicit instead of
cd-ing manually
5. Practical Examples¶
Example: Claude Desktop With A Local Project¶
- Install Hypercontext.
- Make sure your provider settings are in
.envor exported in the shell. - Register the
python -m hypercontext mcp --workdir /path/to/projectcommand in the Claude Desktop MCP configuration. - Use
compress,retrieve,sandbox_run, andarchive_showfrom Claude Desktop when you need Hypercontext features.
Example: Codex On A Local Repo¶
- Install Hypercontext with Python, or use the Python environment that already has it installed.
- Run
python -m hypercontext mcp --workdir /path/to/projectif your terminal agent expects an MCP daemon. - Use
python -m hypercontext tui --workdir /path/to/projectfor the shell dashboard. - Use
python -m hypercontext run --generations 5 --workdir /path/to/projectwhen you want the full evolutionary loop.
Example: Node.js App Using The SDK¶
- Install
hypercontext-node-sdk. - Import the SDK in your TypeScript app.
- Keep your provider credentials in environment variables.
- Use the SDK for agent logic, and the Python CLI only when you need the MCP daemon or HTTP server.
6. Which Path Should I Pick?¶
- Pick the Python package path if you want the CLI and servers from the installed package.
- Pick the npm package if you are building a Node.js application around the SDK.
- Pick Claude Desktop with
mcpif you want a native stdio MCP daemon. - Pick
serveif you want the HTTP server for the browser UI or a custom web integration. - Pick Codex plus the CLI if you want the fastest terminal-native workflow.