Host recipe (add a coding host)

KYA OSS should have many integrations, not be an island. Each host recipe teaches one editor/CLI how to call serve-mcp (or hosted /mcp) so tool calls hit evaluate/wrap.

Three tiers

Pick the highest tier the host supports:

  1. kya connect <host>: the CLI writes the host config itself (merge, never clobber). Add the host to the registry in src/commands/connect.ts plus an integration test in test/connect-mcp.test.ts. Requires a verified config path + format.
  2. Config recipe: the user copies an example file. Ship <host>/ with the example + README, and a full page in docs/hosts/<host>.md. Use when the path or schema is known but not safe to write programmatically (IDE globalStorage, unverified schema).
  3. Wrap recipe: kya wrap --offline -- <agent command>. For hosts with no MCP support. Still a full page in docs/hosts/<host>.md; say plainly that only wrapped commands are gated.

Checklist

  1. Folder under the package root, e.g. opencode/, warp/.
  2. Config example the user can copy (stdio and/or hosted HTTP).
  3. Env vars documented: KYA_HOST, KYA_OFFLINE, KYA_BASE_URL, KYA_API_KEY as needed.
  4. Smoke: after wire, kya wrap --offline --tool-id Write --irreversible --args '{"path":"x.ts","content":"hi"}' leaves a row in the record (trail).
  5. README blurb (10 lines max) with restart instructions for that host.
  6. Doc page at docs/hosts/<host>.md: setup, what kya reports, files written, verify step, uninstall, troubleshooting, wrap fallback.
  7. PR using .github/PULL_REQUEST_TEMPLATE/host-recipe.md.

Stdio template

{
  "mcpServers": {
    "shield-kya": {
      "command": "kya",
      "args": ["serve-mcp", "--stdio"],
      "env": {
        "KYA_HOST": "ide",
        "KYA_OFFLINE": "1"
      }
    }
  }
}

Prefer kya on PATH (after npm i -g @shield-agent/kya) over npx -y in checked-in configs.

Hosted template

# example - adapt to the host’s config dialect
url = "https://shield-agent.com/mcp"
bearer_token_env_var = "KYA_API_KEY"

Listing rule

Merged recipes are linked from https://shield-agent.com/integrations and the homepage host strip. Roadmap hosts stay labeled “soon” until a recipe merges.

Honesty

KYA only sees tools that go through wrap/MCP. Do not claim the host is “fully covered” if the agent can bypass MCP.