Was this page helpful?
npx -y zephex setup --kiro writes stdio to ~/.kiro/settings/mcp.json (writeKiroConfig in setup.ts). type http is optional.
Official Kiro CLI MCP documentation: Kiro CLI MCP docs
HTTP and stdio setups both need a key from your Zephex dashboard. OAuth-only flows (ChatGPT, Claude.ai web) sign you in in the browser instead — skip this section for those.
Kiro hot-reloads stdio config — matches working Kiro setups in the wild.
Runs the same code as mcp-proxy/src/commands/setup.ts — OAuth in browser, creates a CLI key, writes your editor config, verifies tools.
npx -y zephex setup --kiroSkip browser OAuth — paste a key from zephex.dev/dashboard/keys. Must start with mcp_prod_, mcp_dev_, or mcp_sk_.
npx -y zephex setup --kiro --api-key mcp_prod_your-key-heremcpServers command/args/env: Transport: stdio (see ~/.kiro/settings/mcp.json or <project>/.kiro/settings/mcp.json).
{ "mcpServers": { "zephex": { "command": "npx", "args": ["-y", "zephex"], "env": { "ZEPHEX_API_KEY": "mcp_sk_your_key_here" } } }}After CLI install, fully restart the app if tools do not appear. Manual JSON/TOML blocks below are equivalent — use them when CLI commands are unavailable.
Full comparison: HTTP vs stdio · npx zephex reference
kiro-cli mcp add with --type http or edit ~/.kiro/settings/mcp.json — then run /mcp inside a session to confirm zephex loaded.
Replace mcp_sk_your_key_here with your key from Dashboard → API Keys. Copy the full key once at creation — paste into Authorization: Bearer … for HTTP configs, or into ZEPHEX_API_KEY for stdio/npx configs.
command/args/env — recommended.
{ "mcpServers": { "zephex": { "command": "npx", "args": ["-y", "zephex"], "env": { "ZEPHEX_API_KEY": "mcp_sk_your_key_here" } } }}Hosted URL only if you use github: paths for repo tools.
{ "mcpServers": { "zephex": { "type": "http", "url": "https://zephex.dev/mcp", "headers": { "Authorization": "Bearer mcp_sk_your_key_here" }, "disabled": false } }}Tip
Project .kiro/settings/mcp.json wins over ~/.kiro when both define zephex.
Note
Kiro IDE uses the same ~/.kiro/settings/mcp.json path — different app, same file shape.
After saving your config, confirm Zephex is connected before you rely on it in real work.
You do not call tools yourself — ask your agent in plain language. Try these once Zephex is connected:
“kiro-cli chat: get_project_context on ~/.kiro/settings/mcp.json project or global cwd.”
HTTP mcp.json loads zephex for /mcp slash command visibility.
“read_code the main agent loop in our CLI package.”
Symbol read for CLI maintainers.
“check_package on uv/typer-related deps before kiro-cli mcp add workflow.”
Python CLI ecosystem safety.
“scope_task: add --json output flag to three subcommands.”
Scoped cmd/ tree changes.
“find_code error types returned from MCP client wrapper.”
Debug connection issues faster.
“Zephex_dev_info for MCP OAuth vs API keys — which fits our CLI?”
Integration design without guessing MCP spec details.
Run /mcp in an interactive kiro-cli session to confirm zephex loaded. Project .kiro/settings/mcp.json overrides user ~/.kiro/settings/mcp.json.
These situations usually mean the setup cannot work until you fix the underlying issue:
Server not loaded
Valid ~/.kiro/settings/mcp.json JSON.
0 tools
type http + url + headers.
mcp add error
Match kiro-cli version flags from kiro.dev docs.
OAuth prompt
Zephex uses Bearer only — not OAuth.
Tools excluded
See Kiro validation rules for tool name length.
kiro-cli mcp.json type http — ten tools; verify with /mcp:
get_project_context
Reads your project structure, dependencies, scripts, env vars, and framework markers in one call. Replaces manually opening package.json, tsconfig, and multiple config files at the start of every session.
read_code
AST-based code extraction: pass a symbol name and get the implementation without reading entire files. Supports symbol lookup, batched file reads, and structural outlines for large files.
find_code
Ranked search across the repo for definitions, usages, and patterns. Faster than blind grep when the agent does not know where a symbol lives.
check_package
Live registry lookup for npm, PyPI, Cargo, and Go modules. Surfaces typosquat risk, maintainer changes, and suspicious version jumps before you run install.
audit_package
Deep package intelligence: CVEs with severity, breaking changes between versions, migration notes, and peer-dependency conflicts.
explain_architecture
Generates Mermaid diagrams for auth flows, service boundaries, and module dependencies so the agent reasons about structure instead of guessing.
scope_task
Turns a task description into the smallest file set to read or edit, with risk ratings and caller impact notes.
audit_headers
Grades a deployed URL for CSP, HSTS, TLS, cookies, and redirects. Returns fix snippets for common hosts (Vercel, Cloudflare, Nginx).
keep_thinking
Structured multi-step debugging: tracks hypotheses and conclusions so long investigations do not loop.
Zephex_dev_info
Expert patterns for authentication, databases, frontend frameworks, deployment, and mobile stacks when the agent needs vetted guidance.