Agenteca MCP
Officialby Agenteca
README.md
# @agenteca/mcp
Local MCP server of Agenteca. It gives any MCP-compatible tool (Claude Code, Codex, Copilot, Cursor…) seven tools to search, read, install, update and remove agent packages.
It contains no installation logic: each tool calls the `ahub --json` CLI and relays its answer. The `agenteca-claude-code`, `agenteca-codex` and `agenteca-copilot` plugins only declare this server.
> Status: 0.1.0, not yet published on npm. The `npx` command below will only work once it is published.
## Configuration
stdio transport. Example for a `.mcp.json` file:
```json
{
"mcpServers": {
"agenteca": { "command": "npx", "args": ["-y", "@agenteca/mcp@0.1.0"] }
}
}
```
| Variable | Purpose |
|---|---|
| `AHUB_BIN` | Path of an `ahub` binary to use. By default, the CLI installed as a dependency of this package. |
| `AHUB_PROJECT_DIR` | Project folder. By default, the folder the server is started in. |
| `AHUB_LANG` | Language of the messages relayed from `ahub` (`en`, `fr`, `es`, `zh`, `hi`); otherwise `LC_ALL`, `LC_MESSAGES`, `LANG`, then English. |
Tool titles, descriptions and instructions are in English: they are read by models, which answer the user in the user's own language.
## Tools
| Tool | Purpose | Writes to disk |
|---|---|---|
| `catalog_search` | Searches the configured registries | No |
| `package_info` | Shows the content of a package and the result of the scan | No |
| `list_installed` | Installed packages | No |
| `list_outdated` | Available updates | No |
| `package_install` | Installs | In two steps |
| `package_update` | Updates | In two steps |
| `package_remove` | Removes | In two steps |
## Two steps, because a model is at the controls
An agent package is text executed by a model; here, on top of that, a model asks for the installation. The three tools that write therefore work in two calls:
1. **Without `planHash`**: nothing is written. The answer describes the files, hooks, MCP servers and the result of the scan, and gives a `planHash`.
2. **With that `planHash`**: the CLI applies that exact plan. If the repository changed in between, it refuses (`PLAN_CHANGED`).
Safeguards:
- **The scan cannot be overridden from here.** The CLI's `--allow-unsafe` option is not exposed: a package with critical content can only be installed by the user, from the command line.
- **Files edited by hand**: refused by default; the `overwrite` parameter names, one by one, those the user agrees to lose.
- **Registries are not configured through MCP** (`ahub registry add` stays an action of the user).
A limit to know: nothing technically forces the model to show the plan before calling the tool again with the `planHash`. The server's instructions ask it to, and the calling tool usually asks for the user's approval on every call, but it is that approval, on the client side, that counts.
## SDK and protocol
Built with `@modelcontextprotocol/sdk` 1.x. SDK 2.x (stateless specification of 28 July 2026) was not chosen: its compatibility with the clients of the four tools has not been checked. The 1.x branch is only maintained until early 2027: the migration has to be planned.
Checked by the tests: an SDK MCP client, in memory and through the binary over stdio. Not checked: actual use inside Claude Code, Codex, Copilot and Cursor.
`server.json` prepares publication on the official MCP registry; nothing is published there.
## Development
```bash
npm test
```
## License
Apache-2.0.