Skip to content

hk mcp

  • Usage: hk mcp [--root <PATH>]

Run an MCP server for coding agents over standard input/output

Flags

  • --root <PATH> — Restrict hk tools to this project root (defaults to the current directory)
  • -h --help — Print help

Examples

Start the STDIO MCP server with a fixed project root. Configure your host to launch this command.

sh
hk mcp --root /absolute/path/to/project

Learn more

Coding agents · Troubleshooting · All commands

MIT LicenseCopyright © 2026jdx.dev