DeepSeek Capability Hub
Capability Hub is one lazy MCP/skill broker that lets an agent discover, inspect, start, call, and stop child MCP tools and skills on demand.
search — query the compact capability catalog by intent or type.
inspect — review one capability’s metadata, permissions, config, and environment status.
status — check runtime state of capabilities.
configure — set allowlisted, non-secret values via
payloadJson.enable / disable — start or stop a trusted MCP process.
tools — list a capability’s tools; optionally filter by query and include full schemas only when needed.
call — proxy a single child MCP tool call with arguments.
skill.load — load one approved local skill body by name.
propose / proposals — submit and list third-party capability proposals for human approval.
catalog.reload — reload the approved catalog state.
Provides integration with the official Unity CLI transport, exposing tools for interacting with Unity while a Unity Editor with Unity Pipeline is connected.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DeepSeek Capability HubSearch the capability catalog for web research tools."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Capability Hub is a lazy MCP and skill broker for DeepSeek Harness and other MCP clients. The host sees one compact tool, capability_hub, instead of paying the context cost of every tool schema from every configured server.
The agent searches a lightweight catalog, inspects permissions, wakes one trusted server, calls it through the hub, and can shut it down again. Skill bodies are loaded only after selection.
Measured context savings
Numbers below are produced by bench/measure.mjs, not estimated.
It starts each real, published MCP server over stdio, asks for tools/list, and
counts the tokens (o200k_base) of the exact JSON a host injects per tool
(name + description + inputSchema). The hub is measured the same way, by
starting it and reading its own tools/list.
pnpm benchServer | Purpose | Tools | Context tokens |
| MCP reference server | 13 | 1,075 |
| Knowledge-graph memory | 9 | 891 |
| Structured reasoning | 1 | 851 |
| Browser automation | 24 | 3,383 |
Total — classic MCP | four servers, always resident | 47 | 6,200 |
Total — Capability Hub | one broker tool | 1 | 422 |
The permanent cost drops 93.2%, or 14.7x. That is the part of the prompt you pay for on every single turn, whether or not the task touches a tool.
The saving grows with your catalog
The hub publishes one schema no matter how many servers you configure, so the classic side grows linearly while the hub side grows only by a line of catalog prose per entry — and stops growing once the list degrades to names only. Each hub figure below is measured by starting the real server against a catalog of that size, not projected:
Servers configured | Classic tokens | Hub resident | Saved |
4 | 6,200 | 430 | 93.1% |
10 | 15,500 | 584 | 96.2% |
20 | 31,000 | 826 | 97.3% |
30 | 46,500 | 468 | 99.0% |
60 | 93,000 | 595 | 99.4% |
The drop at 30 is the degradation firing: full descriptions no longer fit the budget, the list falls back to names, and the resident cost roughly halves.
The honest other half
The hub is not free: what the classic setup pays once up front, the hub pays at runtime when the agent actually opens a capability. There is no single "per task" number — an earlier version of this README published one, and it was the most expensive possible path presented as typical. Three scenarios:
Scenario | Path | Hub tokens | vs 6,200 |
idle — task needs no capability | resident schema only | 422 | 93.2% saved |
direct — task opens one capability |
| 554 | 91.1% saved |
cautious — also reviews permissions, reads the full list |
| 1,195 | 80.7% saved |
The direct row still charges a search, which the inlined catalog list often makes
unnecessary — a conservative choice, since the bias should run against our own number.
The direct path is cheap for two reasons that were already in the code while the
benchmark was ignoring them: tools starts the server itself, so enable is not
on the critical path, and tools accepts a query, costing 60 tokens instead of 558
when the agent already knows what it wants:
{"action":"tools","name":"playwright","query":"click"}Break-even is about 47 direct discoveries in one session, or 8 if the agent takes the cautious path every time. Below that the hub wins; above it a static configuration is cheaper. The hub is therefore the right trade when you have many servers and each task touches few of them, and the wrong one when every task uses every tool you have.
Three design decisions came directly out of these measurements:
enableused to return the full tool list, and the documented next step istools— so the workflow paid for the same list twice, 1,567 tokens instead of 780.enablenow returns a count and a pointer to the next action.Model-facing JSON is serialized compactly. Indentation is not information, and pretty-printing measured 31% more tokens on the same payload.
The capability list ships inside the tool description rather than behind a
searchcall — see the accuracy table below for what that bought.
Related MCP server: skilljit
Measured tool-selection accuracy
Saving context is worthless if the model then picks the wrong tool. So that is measured too, against Qwen3.8-27B running locally at temperature 0 — 28 tasks with known answers, of which 6 need no tool at all and calling one is scored as a failure.
pnpm bench:accuracyCondition | Resident | Overall | No-tool tasks | False calls | Avg turns | Avg prompt |
classic — 47 schemas resident | 6,200 | 96.4% | 83.3% | 1 | 1 | 7,269 |
hub, vague catalog | 422 | 82.1% | 83.3% | 1 | 3.00 | 2,818 |
hub, list not inlined | 328 | 85.7% | 100% | 0 | 3.54 | 3,047 |
hub, as shipped | 533 | 96.4% | 100% | 0 | 1.96 | 1,873 |
Same accuracy on a twelfth of the resident context — and fewer total tokens. 1,873 prompt tokens per task against 7,269, summed across every turn of the multi-turn protocol. The penalty a broker is supposed to pay for extra round trips did not appear.
The classic setup's single failure is worth naming: asked "Is 97 a prime number?", the
model with 47 tools resident reached for sequentialthinking. Every hub condition with a
usable catalog scored 100% on the no-tool tasks.
The vague-catalog row is the same code and the same servers — only the descriptions differ. Write your catalog so it can be found; it is worth ~14 points.
The hub rows are multi-turn against live child processes, so borderline tasks move a few points between runs. Across three runs the classic condition reproduced at exactly 96.4% every time and the shipped hub scored 96.4–100%; the two ablation rows always landed below both, never above.
Head to head against Tool Search
Everything above compares this broker to a static configuration, which cannot support a
claim of being better than the other lazy approaches. So they were measured too — same
28 tasks, same model, and a tool_search condition built the way Anthropic's Tool Search
Tool and Claude Code's MCP Tool Search work, with real semantic retrieval.
pnpm bench:head-to-head98 tools | Resident | Overall | No-tool | False calls | Avg prompt |
classic | 12,422 | 92.9% | 83.3% | 1 | 14,701 |
toolSearch | 75 | 92.9% | 100% | 0 | 1,384 |
hub | 709 | 92.9% | 100% | 0 | 2,125 |
Read this honestly: it is a tie on accuracy, and Tool Search is the more compact design. 75 resident tokens against 709, and it does not grow with the catalog, because its resident surface is one query string. This project's surface carries an action enum, a payload field and an inlined capability list.
What both lazy approaches do beat is a static list: about a fifth of the prompt tokens, and 100% on the six tasks where the correct answer is to call nothing, against classic's 83.3%.
Where this broker still earns its place is the axis none of these numbers cover — it keeps capabilities stopped, not merely hidden, and it carries permissions, configuration and human approval that a search tool has no opinion about. The comparison is also unfair in our favour in one way that is spelled out in the write-up: the Tool Search index assumes every server has already been enumerated, and its embedding model is not charged for.
Full tables for both scales, the failure analysis and the prior-art section are in docs/context-economy.md.
Raw per-tool measurements are committed under bench/snapshots/, the
token report in bench/results.json, the accuracy report in
bench/accuracy.json and the comparison in
bench/head-to-head.json, so every table can be re-derived
without network access.
Proof that it is actually dynamic
The table above shows what the model does not have to carry. This shows the other
half — that a capability nobody loaded at startup can be found by intent, opened, used
for a real tool call, and shut down again. Nothing in it is mocked: the child is the
published @playwright/mcp package.
pnpm proofhost-visible tools capability_hub
search (by intent) 72 tokens playwright found, enabled=false
inspect (permissions) 121 tokens permissions listed, still stopped
enable (starts process) 22 tokens real child process, 24 tools live
tools (schemas withheld) 558 tokens names + descriptions, schemasIncluded=false
tools (narrowed by query) 60 tokens matched 1 of 24
tools (one schema, opt-in) 144 tokens schema returned only when asked
call (real child tool) 107 tokens browser_navigate executed
disable (stops process) 11 tokens wasEnabled=true
search (after disable) 72 tokens enabled=false againEach step is asserted, not just printed: the run fails if more than one tool is exposed
to the host, if a capability reports itself running before enable, if a child schema
appears in the default tools listing, if includeSchema is ignored, if the query does
not narrow the list, or if the capability is still marked running after disable. The
receipt is written to bench/dynamic-proof.json.
The contrast with a static configuration is the point: those same 24 Playwright tools cost 3,383 resident tokens in every prompt of every turn, whether or not the task ever touches a browser. Here they cost nothing until the model asks, and 24 tools' worth of names costs 558 tokens once — or 60 if it already knows what it wants.
Why it exists
Large static MCP configurations waste context and make tool choice noisier. Capability Hub keeps the model-facing surface stable:
search → inspect → enable → tools → call → disableOne fixed schema stays in the Harness prompt.
Child tool schemas remain outside the model context until requested.
toolsreturns names and descriptions by default; full schemas are opt-in.MCP processes start lazily and live only for the hub process lifetime.
Skills are discovered by metadata and loaded one at a time.
Third-party additions enter a human approval queue; the model cannot self-approve executable code.
Quick start
Requirements: Node.js 22.19+ and pnpm.
git clone https://github.com/NeoXider/neoxider-mcp-hub.git
cd neoxider-mcp-hub
pnpm install --frozen-lockfile
pnpm test
pnpm client -- --json '{"action":"search","query":"demo"}'The default catalog contains only a bundled echo MCP and an example ML skill. Tests do not download or execute third-party packages.
DeepSeek Harness setup
Install the published bundle — no paths to edit, no build on your machine:
dsh plugin --profile web add https://github.com/NeoXider/neoxider-mcp-hub/releases/download/v0.7.0/neoxider-mcp-hub-0.7.0.tgzRestart Harness. The hub runs inside the host process as one native model-facing tool:
capability_hubThe catalog and state default to the installed package's data/ directory. To keep
them elsewhere, set the row's catalogPath / stateDir Config in your profile's
cordis.patch.yml.
The manual alternative is a stdio child through the in-box MCP client: build the hub,
then merge examples/dsh/cordis.patch.yml into the
active Harness Web profile and adjust the absolute repository path. Restart Harness.
pnpm buildHarness will expose one model-facing tool:
mcp__capability_hub__capability_hubStart with:
{"action":"search","query":"web research"}Model-facing contract
The public schema is intentionally flat so constrained-decoding engines such as LM Studio can compile it reliably. Call arguments travel as a structured arguments object; the remaining payloads (configuration, proposals) travel as JSON strings.
Discover and call a tool:
{"action":"tools","name":"web-search-neo"}{
"action": "call",
"name": "web-search-neo",
"tool": "web_info",
"arguments": {"topic": "search_status"}
}Available actions:
Action | Purpose |
| Search compact capability metadata |
| Review one capability, permissions, config and environment status |
| Set allowlisted non-secret values through |
| Start or stop one trusted MCP |
| List child tools; schemas remain optional |
| Proxy one child tool call through the |
| Load one approved local skill body |
| Store an untrusted proposal from |
| List pending proposals |
| Reload approved catalog state |
Real integration examples
Ready-to-review proposals are included for:
Web Search Neo — dynamic web research and browser tooling.
Unity CLI MCP — the official Unity CLI transport. Its tool list is populated only while a Unity Editor with Unity Pipeline is connected.
These files are examples, not silently trusted defaults. Review paths, versions and permissions before approval.
Human-gated installation
Model-created proposals are stored under data/state/pending and cannot execute. Approve from a separate human-operated command:
node dist/src/admin.js approve <proposal-id> --catalog .\data\catalog.json --state .\data\state --yesThen call catalog.reload and enable. Prefer pinned package versions or immutable Git revisions; avoid floating latest installers in approved entries.
Catalogs, secrets and skills
MCP transports:
stdioandstreamable-http.Templates:
${catalogDir},${packageDir}and explicitly allowlisted${config:key}values.Secrets: environment-variable references only. Secret-like model configuration keys are rejected.
Skills: approved local Markdown files, loaded on demand, limited to 256 KiB. Resolved paths must remain under the catalog/package directory; an external directory requires an explicitly reviewed
skill.allowedRootsentry.State: runtime config and proposals are ignored by Git.
Strict Harness model smoke
The reusable smoke creates an isolated temporary DSH_HOME, forces the read-only permission preset, and starts a new headless session. Its isolated hub state contains approved metadata only for the Web Search Neo and Unity CLI examples; neither capability is started. The smoke validates exactly seven calls through the single outer hub tool — search, inspect, tools, call (add with 2 + 3), skill.load, status, disable — followed by the exact assistant token CAPABILITY_HUB_SMOKE_OK. Retries, other tools, missing results, tool errors, or extra final text fail validation.
The compact JSON receipt under data/state/smoke-receipts records the final assistant text, catalog visibility, selected Harness provider/model, permission preset, action sequence, and model lifecycle. Before loading LM Studio, the smoke checks the process list: an already-loaded matching model is reused and never unloaded by the smoke; a model loaded by the smoke is released after the Harness evidence receipt has been persisted (with TTL as a fallback).
pnpm smoke:harnessFor a stricter source-checkout-only proof, the optional external smoke uses the pinned
local @playwright/mcp@0.0.79 dev dependency. Qwen must discover it, inspect it,
explicitly enable it, list the narrowed navigation tools, call browser_navigate on an
inert data: page, load the bundled skill, observe the child running, disable it, and
finally observe an empty enabled list. The receipt rejects retries, any second outer
tool, tool errors, a different model, an unverified page title, or a child that remains
enabled. The browser is headless and isolated, writes only below the temporary smoke
home, and the command never downloads a package:
pnpm smoke:harness:externalThe ordinary pnpm smoke:harness remains the fast bundled/offline-contract smoke and
does not require Playwright.
With no model overrides, the default lmstudio smoke reads lms ls --json and deterministically selects the smallest already-installed trainedForToolUse LLM (size first, then modelKey). Its modelKey is also used as the Harness API model identifier. The smoke never downloads a model. Context is 32K and the idle TTL fallback is one hour. Explicit overrides keep the requested model and disable auto-selection:
$env:CAPABILITY_HUB_SMOKE_MODEL = "another-api-identifier"
$env:CAPABILITY_HUB_SMOKE_MODEL_KEY = "installed-lm-studio-model-key"
$env:CAPABILITY_HUB_SMOKE_RECEIPT = "C:\receipts\capability-hub.json"
pnpm smoke:harnessSet CAPABILITY_HUB_SMOKE_DSH_ENTRY when Harness is installed outside C:\AI\work\deepseek-harness-runtime. For non-LM-Studio providers, set CAPABILITY_HUB_SMOKE_PROVIDER and, when needed, CAPABILITY_HUB_SMOKE_PROVIDER_CONFIG_JSON; the script does not install providers or models.
See SECURITY.md for the trust boundary.
Current scope
Tool calls are proxied; child MCP resources and prompts are not bridged yet.
Reconnect is explicit:
disable, thenenable.Remote skill download, signature verification and sandboxed installers are future work.
A model with unrestricted host shell access can bypass plugin-local policy; use Harness permissions as the outer boundary.
Companion project
Want a compact animated desktop view of agents, context, models, reasoning and chat? See NeoXider Agent Deck.
Contributing
Issues and focused pull requests are welcome. New integrations should include a pinned example, a narrow permission description and an end-to-end test.
MIT © NeoXider
Available Tools
1 toolcapability_hubLazy MCP and skill capability hubA
Search and inspect a compact catalog, enable a trusted MCP only when needed, list its tools, proxy a tool call, or load one skill body. Action "tools" starts a stopped capability by itself, so "enable" is only for starting one deliberately. Avoid includeSchema unless you need the argument shape. Third-party proposals require human approval outside this MCP. Available capabilities — demo-echo (mcp): Bundled local MCP used to verify dynamic discovery, enable, tool listing, calls, and disable. | ml-experiment-review (skill): Review an ML experiment as a falsifiable, reproducible evidence package.
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Optional capability type filter. | |
| name | No | Exact capability name. | |
| tool | No | Raw child MCP tool name for call. | |
| query | No | Search text. With action search it filters the catalog; with action tools it filters that server's tool names and descriptions. | |
| action | Yes | Operation to perform. | |
| arguments | No | Call arguments as an object (e.g. {"url":"https://example.com"}). Prefer this over payloadJson for action call; the two must not be combined. | |
| payloadJson | No | JSON object for the action: arguments for call (e.g. {"url":"https://example.com"}), non-secret whitelisted configuration for configure and enable, or a capability proposal for propose. | |
| includeSchema | No | Include full child tool schemas. Leave false unless arguments cannot be inferred. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations only indicate non-readonly and open-world behavior, so the description adds useful context: lazy starting via 'tools', deliberate-only enabling, includeSchema cost, and out-of-band human approval for third-party proposals. It does not overpromise around mutation, and there is no contradiction with the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact, front-loads the core actions, and every sentence carries operational value. The capability list at the end is a terse but useful reference rather than padding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a multi-action hub with 8 parameters and no output schema, the description covers the key call patterns: search, enable, tools, call, skill.load, and propose. It leaves minor ambiguity around inspect vs status and the exact shape of configure/proposal payloads, but the schema names and payloadJson guidance cover most invocation needs.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage the baseline is 3, but the description adds value beyond the schema: it disambiguates arguments vs payloadJson and forbids combining them, clarifies action-dependent query semantics, documents the payloadJson overload for call/configure/enable/propose, and warns about includeSchema overhead. It still leaves some payload details implicit.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a verb list tied to a concrete resource ('compact catalog') and names the two available capabilities with their types. It is specific enough that an agent knows what surface this tool controls; there are no sibling tools to confuse it.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No sibling tools exist, but the description gives operational guardrails: 'tools' self-starts a stopped capability so 'enable' should only be used deliberately, includeSchema should be avoided unless the argument shape is needed, and third-party proposals require human approval. This is clear context, though it does not provide alternative-tool routing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v0.8.0- Changed
capability_hub1 field changed- added
Input schema / properties / argumentsAdded value: +{ + "additionalProperties": {}, + "description": "Call arguments as an object (e.g. {\"url\":\"https://example.com\"}). Prefer this over payloadJson for action call; the two must not be combined.", + "propertyNames": { + "type": "string" + }, + "type": "object" +}
1 tool update
v0.3.1- Changed
capability_hub5 fields changed- removed
Input schema / properties / argumentsJsonRemoved value: -{ - "description": "JSON object forwarded to the selected child MCP tool, for example {\"query\":\"MCP\"}.", - "maxLength": 100000, - "type": "string" -} - removed
Input schema / properties / configJsonRemoved value: -{ - "description": "JSON object with non-secret configuration. Only catalog-whitelisted keys are accepted.", - "maxLength": 100000, - "type": "string" -} - removed
Input schema / properties / entryJsonRemoved value: -{ - "description": "JSON capability proposal. It remains untrusted until a human approves it outside this MCP.", - "maxLength": 200000, - "type": "string" -} - added
Input schema / properties / payloadJsonAdded value: +{ + "description": "JSON object for the action: arguments for call (e.g. {\"url\":\"https://example.com\"}), non-secret whitelisted configuration for configure and enable, or a capability proposal for propose.", + "maxLength": 200000, + "type": "string" +} - changed
Input schema / properties / query / descriptionPrevious value: -"Search text for names, descriptions, and tags."New value: +"Search text. With action search it filters the catalog; with action tools it filters that server's tool names and descriptions."
1 tool update
v0.1.0- First observed
capability_hub
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools. The tool's sub-actions (search, enable, list, proxy, load skill) are clearly described within the single capability.
The single tool name 'capability_hub' is clear and uses snake_case. Since there is only one name, there are no inconsistencies or mixed conventions to evaluate.
A single tool for a capability hub is minimal but not trivial—it acts as a meta-interface to multiple sub-capabilities. The scope is narrow but the tool is comprehensive enough to justify its presence.
The hub covers the full lifecycle of capabilities: searching the catalog, enabling MCPs, listing tools, proxying calls, loading skills, and disabling (as referenced in the demo-echo example). No obvious gaps exist for the stated purpose.
Maintenance
Related MCP Connectors
The governed runtime for agent skills. Search the catalog and inspect a skill before running it.
Search, vet & assemble MCP servers from your agent: verified tools, risk labels, and trust scores.
Agent-native catalogue of Baseframe Labs dev tools and MCP servers.
Agent-native launch platform and tool directory: search, alternatives, trending, launch via MCP.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables searching and retrieving details of 41,000+ agent skills, MCP servers, Claude Code plugins, and agentic loops from any MCP-capable agent.MIT
- AlicenseNot gradedqualityBmaintenanceEnables on-demand discovery and loading of skills and MCP tools through a fixed set of routing tools, minimizing token overhead.5MIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-capable agents to search, inspect, lint, and safely install Agent Skills from the skillmd registry mid-conversation.01MIT
- FlicenseNot gradedqualityCmaintenanceEnables agents to securely discover and invoke a centrally governed catalog of tools from distributed internal and external providers, with policy enforcement, quotas, inspection, and audit controls.-