mirror of
https://github.com/hanzoai/extension.git
synced 2026-10-31 19:52:25 +00:00
server.js was mcp's dist/cli.js, which leaves the MCP SDK, commander, glob and zod to node_modules; the .dxt and the npm package ship none, and the CLI also read its version from a ../package.json that sits beside neither. dxt's build now bundles mcp's src/cli.ts with every dependency inlined, as CommonJS because a .dxt has no package.json to declare ESM, and the version is imported so the bundler inlines it. The native optionals stay external: @lancedb/lancedb and @xenova/transformers back the legacy vector tools and jsautogui backs --enable-autogui, none of them on the default surface, and each tool answers an error naming the missing package. getSystemPrompt imported tools/index.js dynamically though cli.ts already imports it. That made esbuild wrap the module graph, zod included, in lazy init, and the SDK read zod before it ran: the bundle died at load with "Class2 is not a constructor". It is a static import. The build writes dist/: server.js, the manifest stamped with package.json's version, the icon, and hanzo-ai.dxt zipped with yazl, since the runners have no zip. The manifest failed the schema Claude Desktop installs by (mcpb validate, and the older dxt validate): `compatibility.runtime` is `runtimes`, and `user_config` has no `env` key. The server reads none of those variables anyway, and nothing implements anonymous mode, allowed paths or a write switch, so those settings go; disabledTools reaches the --disable-tools flag the server has. The tool list names `ui`, which it serves, not `computer`, which it does not. Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
61 lines
3.5 KiB
JSON
61 lines
3.5 KiB
JSON
{
|
|
"dxt_version": "0.1",
|
|
"name": "hanzo-ai",
|
|
"display_name": "Hanzo AI",
|
|
"version": "1.8.2",
|
|
"description": "HIP-0300 unified tool surface for Claude — 13 action-routed tools covering filesystem, execution, code semantics, git, networking, and Hanzo platform.",
|
|
"long_description": "# Hanzo AI Extension\n\nHIP-0300 unified tool surface for Claude, built on the Model Context Protocol (MCP).\n\n## 13 Unified Tools\n\n### Core (7)\n- **fs** — read, write, edit, stat, list, mkdir, rm, mv, apply_patch, search_text\n- **exec** — run, background, ps, kill, logs\n- **code** — parse, search, transform, summarize (AST + LSP)\n- **git** — status, diff, log, commit, branch, stash\n- **fetch** — get, post, put, delete, download\n- **workspace** — info, config, env, dependencies\n- **ui** — browse, search and install UI components\n\n### Optional (6)\n- **think** — structured reasoning\n- **memory** — persistent knowledge storage\n- **hanzo** — iam, kms, paas, commerce, storage, auth, api\n- **plan** — task planning with step tracking\n- **tasks** — task management\n- **mode** — development modes\n\n## Authentication\n\nHanzo IAM (hanzo.id) for cloud features. Anonymous mode available for local-only tools.",
|
|
"author": {
|
|
"name": "Hanzo Industries Inc",
|
|
"email": "[email protected]",
|
|
"url": "https://hanzo.ai"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/hanzoai/extension.git"
|
|
},
|
|
"homepage": "https://github.com/hanzoai/extension",
|
|
"documentation": "https://github.com/hanzoai/extension/blob/main/packages/mcp/README.md",
|
|
"support": "https://github.com/hanzoai/extension/issues",
|
|
"icon": "icon.png",
|
|
"keywords": ["mcp", "development", "tools", "ai", "hanzo", "hip-0300"],
|
|
"server": {
|
|
"type": "node",
|
|
"entry_point": "server.js",
|
|
"mcp_config": {
|
|
"command": "node",
|
|
"args": ["${__dirname}/server.js", "--disable-tools", "${user_config.disabledTools}"]
|
|
}
|
|
},
|
|
"user_config": {
|
|
"disabledTools": {
|
|
"title": "Disabled Tools",
|
|
"description": "Comma-separated list of tools to disable",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": false
|
|
}
|
|
},
|
|
"tools": [
|
|
{ "name": "fs", "description": "Unified filesystem: read, write, edit, stat, list, mkdir, rm, mv, apply_patch, search_text" },
|
|
{ "name": "exec", "description": "Process execution: run, background, ps, kill, logs" },
|
|
{ "name": "code", "description": "Code semantics: parse, search, transform, summarize (AST + LSP)" },
|
|
{ "name": "git", "description": "Version control: status, diff, log, commit, branch, stash" },
|
|
{ "name": "fetch", "description": "HTTP/API operations: get, post, put, delete, download" },
|
|
{ "name": "workspace", "description": "Project context: info, config, env, dependencies" },
|
|
{ "name": "ui", "description": "UI components: browse, search and install from Hanzo and other registries" },
|
|
{ "name": "think", "description": "Structured reasoning and planning" },
|
|
{ "name": "memory", "description": "Persistent knowledge storage and retrieval" },
|
|
{ "name": "hanzo", "description": "Hanzo platform: iam, kms, paas, commerce, storage, auth, api" },
|
|
{ "name": "plan", "description": "Task planning with step tracking" },
|
|
{ "name": "tasks", "description": "Task management and progress tracking" },
|
|
{ "name": "mode", "description": "Development modes and programmer personalities" }
|
|
],
|
|
"compatibility": {
|
|
"runtimes": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
}
|
|
}
|