rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
English | 中文
One on-demand gateway for opted-in third-party skills and MCP tools in DeepSeek Harness.
Large tool catalogs compete for prompt space. This plugin serves selected skills and MCP tools through a single capability tool. Search by intent, read the schema or instructions, and invoke the capability on demand. Catalog trimming depends on the host version and tool mode.
It is a DeepSeek Harness host + client plugin. It does not proxy remote traffic, does not add a server, and does not send anything anywhere.
capability.0.2.1-rc.5 supports trimming tool declarations and DSH 0.2.2-rc.1 retains them.run_code and the capability SDK binding. Where the host supports SDK trimming, the gateway omits managed MCP declarations. Search or inspect tools on demand and call them through tools.capability. Status and inventory show when the host retains the original SDK.capability) searches, inspects, and invokes managed capabilities.Starting with 0.6.1, the gateway accepts DSH 0.2 releases and prereleases from 0.2.1-rc.5 onward. Upgrades within that range require no plugin update to pass the compatibility check. DSH 0.3 prereleases and releases require separate validation. The gateway selects the host API at runtime. Automated regression covers 0.2.1-rc.5 and 0.2.2-rc.1.
# from your DSH profile directory
pnpm add link:/path/to/dsh-capability-gateway
# Or install a local package: pnpm add /path/to/dsh-capability-gateway-0.6.1.tgz
# For npm, choose a published version that supports your DSH version.
Register the bundle in ~/.dsh/profiles/<profile>/package.json so the plugin layer is applied:
{
"dependencies": { "dsh-capability-gateway": "link:/path/to/dsh-capability-gateway" },
"dsh": { "profile": { "bundles": [
"@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-capability-gateway"
] } }
}
After installation, open Settings → Built-in plugins → Capability gateway → 配置. Select MCP services and skill directories, review additions/removals, then save. The host persists and reloads the config; refresh to confirm the effective scope. Hosts without a configuration editor retain existing behavior and can use native configuration management.
Alternatively, configure the scope manually:
# ~/.dsh/profiles/<profile>/cordis.patch.yml
- id: capability-gateway
config:
skillRoots:
- '~/.agents/skills'
mcpServers:
- my-mcp-server
The package default manages nothing on purpose: what to wrap is install data, not package data. An id patch replaces the whole config object, so repeat every key you need.
Reload the plugin (or restart DSH). The settings page is at Settings → Built-in plugins → Capability gateway.
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
false makes the plugin inert and restores native exposure. |
skillRoots |
[] |
Directories whose skills are served by the gateway. |
mcpServers |
[] |
MCP server names whose mcp__<server>__* tools are managed. |
wrapSkills / wrapMcp |
true |
Turn either half on or off. |
mcpKeywords |
{} |
{ "server": ["alias", ...] } for MCP entries. |
skillKeywords |
{} |
{ "skill": ["alias", ...] }. |
keywordPacks |
[] |
JSON files merged in order; aliases are additive. |
promptHint |
true |
Add the "capabilities are behind capability" pointer. |
promptIndex |
true |
Add the bounded capability name index. |
promptIndexChars |
2000 |
Cap for the index (200–6000). |
maxResults |
5 |
Search candidates returned (1–10). |
logDir |
$DSH_HOME/data/capability-gateway |
Journal directory. |
A Chinese question rarely shares a token with an English skill description, and no lexical search can guess a vocabulary it has never seen. Aliases are how that gap gets closed, and they are always data:
skillKeywords:
release-notes: [发布说明, 变更记录]
or a shareable pack, referenced from keywordPacks:
{ "release-notes": ["发布说明", "变更记录"] }
Missing or broken packs do not block startup; valid packs and entries remain usable. Status, inventory and the prompt mark alias coverage as incomplete. Settings identify each affected pack by its configuration index and list invalid entry positions. Correct the file and reload the plugin. Explicit skillKeywords must map names to arrays of up to 50 nonempty strings, each at most 80 Unicode characters; invalid values raise invalid_config before normalization. A skill can also declare its own aliases in SKILL.md with keywords:, which travels with the skill.
The panel separates inventory, configuration, usage statistics and runtime records. Configure scope and try searches in Configuration, export reports from Usage statistics, and inspect individual events in Runtime records.
skillRoots and mcpServers, preserving all other configuration and the existing wrapping switches.Concurrent configuration edits are rejected. Refresh and reload the selection before editing again. If saving disconnects or fails, confirm the effective scope before retrying. Page-based scope saving requires the host's configuration editor for this plugin entry.
capability tool| Action | Purpose |
|---|---|
search |
Find candidates by goal, short keywords or a name. |
load |
Return a skill's instructions and base directory. |
describe |
Return one MCP tool's exact JSON Schema. |
call |
Invoke an MCP tool; arguments are validated against that schema first. |
status |
Whether the gateway is active and how much it manages. |
inventory |
Compact counts, roots, coverage and bounded anomalies. |
history / stats |
This session's recent routing metadata and window statistics. |
report |
Export a weekly summary as Markdown. |
Search is deliberately conservative. Unmatched queries return not_found with a pointer to the native path rather than a fake match, and the gateway never calls an upstream tool on its own.
Unreleased reports follow the settings page's all-session or selected-session record scope and label it explicitly. An expired selection fails instead of widening the report. Model action=report uses the calling session. Exact-name search remains scoped; partial Skill/MCP discovery is marked in text and structured metadata rather than counted as a miss.
Recorded per event: action, target name, route, outcome, error code, duration, candidate names and ranks, plugin version. Not recorded: query text, tool arguments, results, error bodies, credentials, file paths.
Everything is local. Nothing is uploaded. A report is produced only when you export it, and it contains counts and names only. Alias packs and the local retrieval snapshot are per-install data and are not part of the published package.
tests/retrieval.test.js); it is not a guarantee for every phrasing.npm run check # syntax
npm test # unit, component, client-boot and retrieval tests
npm pack --dry-run
Design notes and the behaviour contract live in docs/DESIGN.md.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek。