mirror of
https://github.com/hanzoai/mcp.git
synced 2026-10-15 12:30:12 +00:00
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
publish / publish (push) Successful in 57s
Hanzo CI/CD / test-amd64 (push) Successful in 10m22s
Hanzo CI/CD / cicd (push) Successful in 1m40s
CI/CD / cicd (push) Successful in 12m7s
A desktop app starts hanzo-mcp with no environment of its own, and `hanzo login` never writes an apiKey into ~/.hanzo/config.json, so on a fresh machine every Kai and Enso call answered NO_API_KEY. With no key set, hanzo-mcp now asks the hanzo CLI beside it (or at hanzo.sh's install path) for the login's token, `hanzo auth token`, and keeps it for five minutes. Never a hanzo found on PATH: the Hanzo IDE package installs /usr/bin/hanzo, which opens its window on any arguments. Claude-Session: https://claude.ai/code/session_01M8RoubcPN71KgJuZ8LdBUL
111 lines
3.1 KiB
TOML
111 lines
3.1 KiB
TOML
[workspace]
|
|
members = ["trigram", "actions", "shell"]
|
|
|
|
[package]
|
|
name = "hanzo-mcp"
|
|
version = "1.1.33"
|
|
repository = "https://github.com/hanzoai/mcp"
|
|
homepage = "https://hanzo.ai"
|
|
keywords = ["mcp", "ai", "tools", "hanzo", "llm"]
|
|
categories = ["development-tools", "command-line-utilities"]
|
|
edition = "2021"
|
|
authors = ["Hanzo AI"]
|
|
description = "Native MCP server for Hanzo AI Cloud and local development tools"
|
|
license = "MIT"
|
|
exclude = ["target/", "tests/", "benches/"]
|
|
|
|
[dependencies]
|
|
# Core
|
|
tokio = { version = "1", features = ["full"] }
|
|
async-trait = "0.1"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.9"
|
|
toml = "0.8"
|
|
sha2 = "0.10"
|
|
blake3 = "1.5"
|
|
|
|
# MCP Protocol
|
|
jsonrpc-core = "18.0"
|
|
jsonrpc-derive = "18.0"
|
|
jsonrpc-http-server = "18.0"
|
|
|
|
# Logging
|
|
log = "0.4"
|
|
env_logger = "0.10"
|
|
|
|
# Utils
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
dirs = "5.0"
|
|
clap = { version = "4.4", features = ["derive"] }
|
|
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls"] }
|
|
walkdir = "2.4"
|
|
glob = "0.3"
|
|
regex = "1.10"
|
|
rayon = "1.8"
|
|
once_cell = "1.19"
|
|
base64 = "0.21"
|
|
shellexpand = "3.1"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
tempfile = "3.10"
|
|
which = "6.0"
|
|
shell-escape = "0.1"
|
|
# The ZAP router every Hanzo process embeds (one per login, elected by lock),
|
|
# and this process's seat on it; from 1.1.7 on Unix and Windows alike.
|
|
zapd = "1.1.9"
|
|
|
|
# Search and AST
|
|
# The in-process text, symbol and document search over tgrep-core; light enough for
|
|
# Dev to link on its own, re-exported here as `hanzo_mcp::trigram`.
|
|
hanzo-trigram = { path = "trigram", version = "0.1.0" }
|
|
# Kai Actions, likewise its own crate; `hanzo_mcp::actions` is this.
|
|
hanzo-actions = { path = "actions", version = "0.1.0" }
|
|
# The shell command classifier behind exec's allow / ask / deny: pure Rust, also built for wasm.
|
|
hanzo-shell = { path = "shell", version = "0.1.0" }
|
|
tree-sitter = "0.20"
|
|
tree-sitter-rust = "0.20"
|
|
tree-sitter-javascript = "0.20"
|
|
tree-sitter-typescript = "0.20"
|
|
tree-sitter-python = "0.20"
|
|
tree-sitter-go = "0.20"
|
|
tree-sitter-java = "0.20"
|
|
tree-sitter-cpp = "0.20"
|
|
tree-sitter-c = "0.20"
|
|
|
|
# Vector store (optional)
|
|
# lance = "0.10" # Temporarily disabled due to arrow version conflict
|
|
# arrow = "50.0" # Temporarily disabled due to build issues
|
|
# vectordb = { version = "0.1", optional = true }
|
|
|
|
[dev-dependencies]
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
nix = { version = "0.29", features = ["signal", "process"] }
|
|
|
|
# Platform specific
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
cocoa = "0.25"
|
|
objc = "0.2"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = { version = "0.3", features = ["winuser", "wingdi", "windef", "minwindef"] }
|
|
# The router pipe's server pid, checked against the router lock holder.
|
|
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_System_Pipes"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
x11 = "2.21"
|
|
|
|
[features]
|
|
default = []
|
|
# all-tools = ["computer-control", "blockchain", "vector-store", "file-system", "web-search", "code-execution"]
|
|
|
|
[[bin]]
|
|
name = "hanzo-mcp"
|
|
path = "src/main.rs"
|
|
|
|
[lib]
|
|
name = "hanzo_mcp"
|
|
path = "src/lib.rs"
|
|
crate-type = ["lib", "cdylib", "staticlib"]
|