agent-hub
by gburrodrive
README.md
# Agent Hub
[๐ฎ๐น Italiano](README.it.md) ยท **๐ฌ๐ง English**
**One shared container** for skills and MCP servers, used by every AI harness on your PC.
Install a skill or an MCP server in any harness (Claude Code, for example), and within seconds:
1. it is **copied into the container** (`%USERPROFILE%\AgentHub`);
2. it becomes available **in every other harness**: Codex, Antigravity, OpenCode, LM Studio, Claude Desktop, Cursor, and even local models with no MCP support (Ollama, llama.cpp, colibri).
You never install anything twice.
> **Status:** v0.1, first release. It has been verified in a simulated environment with all supported harnesses. If you hit a problem on Windows, please open an [Issue](../../issues).
---
## In plain words
Picture a **shared pantry** in a house with several cooks: Claude, Codex, Antigravity, LM Studio and the others. Today each cook has a private cupboard, and whatever you put in one, the others can't see.
Agent Hub does three things:
1. **Collects.** Every 5 seconds it walks past every cupboard. When it finds a new skill or MCP server, it puts a copy in the central pantry.
2. **Shares skills** (the "recipes"). Harnesses that understand skills get a shortcut in their own cupboard that points to the pantry. Harnesses that don't get three simple tools instead: "list the recipes", "open this recipe", "read this attachment".
3. **Acts as a switchboard for MCP servers** (the "tools"). It starts each server once and adds a single `agent-hub` entry to every harness. When a model asks for a tool, the switchboard forwards the call. A new MCP server shows up in every harness without touching their configuration.
---
## How it works
```
Claude Code โโ โโโบ Claude Code
Codex โโโโโโโโค (1) import skills + MCP โโโบ Codex
Antigravity โโค โโโโโโโโโโโโโโโโโโบ CONTAINER โโโบ Antigravity
OpenCode โโโโโค skills/ โโโบ OpenCode
LM Studio โโโโ mcp/servers โโโบ LM Studio
โ โโโบ Claude Desktop (stdio bridge)
โผ โโโบ Ollama / llama.cpp / colibri
(2) single MCP HUB (agenthub chat)
http://127.0.0.1:8765/mcp
```
- **Automatic import.** A background process (started at every Windows sign-in) checks the harnesses' folders and config files every 5 seconds. Anything new is copied into the container.
- **One MCP server for everyone.** Each harness has a single `agent-hub` entry. The hub starts the catalog's MCP servers **once** and exposes their tools with a prefix, for example `github__create_issue`. A newly installed MCP server appears in the hub without changing any harness configuration.
- **No duplicates.** A harness doesn't receive, through the hub, the servers it already has installed. For example, Codex won't see its own `notes` server twice.
- **Skills, two ways:**
- **native**: in harnesses that support skills (Claude Code, Codex, Antigravity, OpenCode, Cursor) the skill is *linked* into their skills folder (a junction on Windows), so they use it like one of their own.
- **via MCP**: every harness, including those without skill support (LM Studio, Claude Desktop, local models), gets the `skills_list`, `skill_load` and `skill_read_file` tools, plus a `skill-<name>` prompt for each skill.
## Supported harnesses
| Harness | Reads/writes | Skills | MCP |
|---|---|---|---|
| Claude Code | `~/.claude.json`, `~/.claude/skills`, plugin skills | native | HTTP entry (`claude mcp add`) |
| Claude Desktop | `%APPDATA%\Claude\claude_desktop_config.json` | via MCP | stdio bridge (`agenthub bridge`) |
| Codex (CLI, IDE, app) | `~/.codex/config.toml`, `~/.agents/skills` | native | `[mcp_servers.agent-hub]` |
| Antigravity (app, IDE, CLI) | `~/.gemini/config/mcp_config.json`, `~/.gemini/config/skills` | native | `serverUrl` |
| OpenCode | `~/.config/opencode/opencode.json(c)`, `.../skills` | native | `type: remote` |
| LM Studio | `~/.lmstudio/mcp.json` | via MCP | `url` (*compact* mode) |
| Cursor, Gemini CLI | their own config | native / via MCP | `url` / `httpUrl` |
| Ollama, llama.cpp, colibri | โ | via `agenthub chat` | via `agenthub chat` |
Harnesses that aren't installed are simply skipped.
---
## Installation (Windows)
Requirements: Windows 10/11, PowerShell 5.1 or later, an internet connection for the first install. You don't need Python: the script installs it through `uv`.
1. Get the project:
```powershell
git clone https://github.com/gburrodrive/agent-hub.git
cd agent-hub
```
Or use **Code โ Download ZIP** and extract it.
2. From the project folder run:
```powershell
powershell -ExecutionPolicy Bypass -File .\install.ps1
```
3. **Restart once** any harness that is open, so it picks up the new `agent-hub` entry.
The script:
- installs `uv`, which manages Python;
- creates `%USERPROFILE%\AgentHub`;
- runs the first import;
- registers the hub in every harness;
- creates the **AgentHub** scheduled task, which starts at every sign-in, in the background, with no windows.
Before changing any harness configuration, the hub saves a copy in `AgentHub\state\backups`.
**Linux and macOS:** the program runs there too (`pip install .`, then `agenthub serve`), but the autostart script is Windows-only.
## Local models
**LM Studio** is set up in *compact* mode. Instead of dozens of tools it sees only `hub_find_tools` and `hub_call_tool`, plus the skill tools. Small models get confused by long tool lists, so this mode suits them better.
**Ollama, llama.cpp, colibri** and any server with an OpenAI-compatible API don't speak MCP on their own. Use the built-in chat for them:
```powershell
# Ollama
agenthub chat --base-url http://localhost:11434/v1 --model qwen3:8b
# llama.cpp (llama-server)
agenthub chat --base-url http://localhost:8080/v1 --model local
# colibri: use the address of its OpenAI-compatible API
agenthub chat --base-url http://localhost:PORT/v1 --model model-name
```
If you use a UI that supports MCP over HTTP (Open WebUI, for example), paste in the URL this prints:
```powershell
agenthub url --client openwebui --mode compact
```
## Useful commands
| Command | What it does |
|---|---|
| `agenthub status` | hub status, number of skills and servers, latest events |
| `agenthub list` | lists skills and MCP servers (and which harness they came from) |
| `agenthub sync` | manual import + distribution (usually not needed) |
| `agenthub url --client X` | URL to paste into an MCP client that isn't listed |
| `agenthub remove skill NAME` | removes a skill from the container (it won't be re-imported) |
| `agenthub remove server NAME` | disables a server (it stays in the catalog) |
| `agenthub restore skill/server NAME` | undoes `remove` |
| `agenthub export pack.zip` | creates the **portable pack** (no secrets; add `--secrets` to include them) |
| `agenthub import pack.zip` | imports a pack (on another PC or another install) |
| `agenthub unregister` | removes `agent-hub` and the linked skills from every harness |
## The container
```
AgentHub\
skills\<name>\SKILL.md ... <- every skill (you can edit them here)
mcp\servers.json <- MCP server catalog (no secrets)
mcp\secrets.json <- API keys and tokens (excluded from git)
config.json <- settings
state\logs\hub.log <- hub log; one .log file per MCP server
state\backups\ <- copies of harness configs taken before changes
```
The folder is also a **git** repository (if git is installed). You can commit and push your skills to a private repository of your own: `secrets.json` and `config.json` stay excluded.
## Settings (`config.json`)
- `port`: hub port (default 8765).
- `watch_interval_seconds`: how often the harnesses are checked.
- `native_skills`: `false` to share skills only via MCP.
- `link_mode`: `"link"` (default) or `"copy"`.
- `exclude_own_servers`: `false` if a harness should also see its own servers through the hub.
- `harnesses`: per-harness settings. Examples: `{"lmstudio": {"mode": "compact"}}`, `{"cursor": {"enabled": false}}`, `{"codex": {"native_skills": false}}`.
- `custom_harnesses`: adds a harness that isn't in the list. Example:
```json
{"id": "my-client", "mcp_file": "~/.my-client/mcp.json", "format": "mcpServers",
"entry": "url", "skills_read": ["~/.my-client/skills"], "skills_write": "~/.my-client/skills"}
```
After editing `config.json`, restart the task: `Stop-ScheduledTask AgentHub; Start-ScheduledTask AgentHub`.
## Security
- The hub listens only on `127.0.0.1`, so other computers on your network can't reach it.
- Every request must carry a random token, generated at install time and stored in `config.json`.
- API keys and tokens for MCP servers stay in `mcp\secrets.json`, which goes neither into git nor into exported packs (unless you pass `--secrets`).
## Known limitations
- **Remote MCP servers that use OAuth sign-in** (the ones that open a browser to authorize) can't go through the hub, because the hub can't sign in on your behalf. Keep those installed in the individual harness. Servers that use an API key or token work fine.
- MCP servers are started from the `AgentHub` folder. If a server uses paths *relative* to the open project, configure it with absolute paths.
- If two harnesses have different versions of a skill or server with the same name, the most recent skill wins; for servers, the one already in the catalog is kept. Conflicts are shown in `agenthub status`.
- A skill that relies on tools specific to one harness (Claude Code commands, for example) works best in that harness.
- OpenCode: if the config is a `.jsonc` file, its comments are removed when the hub adds its entry. A backup stays in `state\backups`.
## Uninstall
```powershell
powershell -ExecutionPolicy Bypass -File .\uninstall.ps1
```
This removes the autostart task, the `agent-hub` entry and the linked skills. The container with your skills stays where it is.
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues