Govern how agents reach KI tools and access: the portable MCP inventory in XDG `mcp-servers.yaml`, its schema, client targeting and mcporter drift, and credential access through the 1Password cached reader and Cloudflare's `cf-token`. Use runtime binding skills for Claude or Codex surfaces and `ki-env-binding-chezmoi` for chezmoi rendering.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Ki Env Binding?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/knowledgeislands-ki-env-binding)
---
name: ki-env-binding
ki-document-type: skill@2026-11-17T00:55:00Z
ki-kind: governance
ki-applicability: declaration-only
ki-guild: environment
ki-depends-on: []
ki-shared-modules: [binding]
ki-shared-dependencies: [ki-skills:rubric]
description: >
Govern how agents reach KI tools and access: the portable MCP inventory in XDG `mcp-servers.yaml`, its
schema, client targeting and mcporter drift, and credential access through the 1Password cached reader and
Cloudflare's `cf-token`. Use runtime binding skills for Claude or Codex surfaces and `ki-env-binding-chezmoi`
for chezmoi rendering.
argument-hint: 'audit [project] | conform [project] | help | educate [project] | refresh'
---
# Knowledge Islands tool and access binding
`ki-env-binding` owns the portable canonical MCP declaration, not any vendor's configuration files. The one source resolves explicit `$KI_MCP_SOURCE` first, then `$XDG_CONFIG_HOME/ki/mcp-servers.yaml` (default `~/.config/ki/mcp-servers.yaml`). Each `mcpServers` entry has a unique `name`, non-empty `clients:`, and one closed stdio or URL definition. URL entries may declare `auth: oauth` for mcporter and typed literal or 1Password-reference headers, every URL entry declares one supported transport for each targeted client, and either definition may select the bounded `ephemeral` or `keep-alive` lifecycle.
The source has client tokens because it serves several clients, but a client adapter owns that client's native configuration and safe writer. This root itself audits only the vendor-neutral mcporter projection. Host-bound runtimes reach these servers through their own host's mcporter bridge, while claude.ai connectors belong to cloud sessions; the standard's [host surface selection](references/standard-cross-surface-binding.md#44-host-surface-selection) owns that rule. Read [the standard](references/standard-cross-surface-binding.md), [generated rubric](references/rubric.md), and [sources](references/sources.md) for the contract.
It also owns **credential access**: once a task has separately authorised a credential read, a 1Password read goes only through the managed cached reader, `~/bin/chezmoi/op-cache`, and a Cloudflare read only through `~/bin/cf-token`, minting a short-lived least-privilege token. [The credential access standard](references/standard-credential-access.md) holds both rules; whether a run may read at all stays with `ki-delegation`'s authority tiers. No rubric criterion checks it yet.
## Operating modes
### Mode AUDIT
Run `ki repo audit --skill ki-env-binding --repo <project>`. It checks source validity (`BIND-2`) and, only when `MCPORTER_CONFIG` selects a readable target, compares full non-secret mcporter definitions (`BIND-1`). Missing target evidence is unavailable, never a clean or health result. Judge whether each target set is intentional (`BIND-J1`).
### Mode CONFORM
Run AUDIT first. Edit the canonical source, then use the renderer or client adapter that owns the target. This root never hand-edits a rendered target and proposes no writes.
### Mode EDUCATE
Explain the canonical source and target separation with `ki repo educate --skill ki-env-binding --repo <project>`; it scaffolds no duplicate source.
### Mode REFRESH
Refresh this root only in `ki-agent-backpack` when the portable source/schema or mcporter contract changes. From an installed copy, stop and redirect to the canonical backpack. Runtime-specific configuration changes are refreshed by their adapter.
### Mode HELP
Explain this portable boundary and stop without changing anything.
## Runtime bindings and renderer composition
- `ki-env-binding-claude` owns Claude Code, Desktop, and the web convention.
- `ki-env-binding-chatgpt` owns Codex TOML comparison and the merge-safe native renderer.
- `ki-env-binding-chezmoi` composes this root with `ki-repo-dotfiles-chezmoi` for a renderer-specific source-repository path.