Skip to content

hk agent mcp

  • Usage: hk agent mcp <--target <TARGET>>
  • Effect: read-only

Print an MCP server configuration

Flags

  • --target <TARGET> — MCP host to generate the server configuration for

    Choices: codex, claude-desktop, claude-code, vscode

  • -h --help — Print help

Examples

Print an MCP configuration for your host, then review its project path.

sh
hk agent mcp --target codex
hk agent mcp --target claude-desktop

Learn more

Coding agents · Troubleshooting · All commands

MIT LicenseCopyright © 2026jdx.dev