Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Support workspace-scoped Powers (enable/disable powers per workspace)

Open aferrari94 opened this issue 7 months ago • 5 comments

Kiro Product

IDE

Feature Description

Powers are currently registered exclusively at the user level (~/.kiro/settings/mcp.json). There is no way to enable or disable a power for a specific workspace — it's all or nothing globally.

The powers.mcpServers section in the workspace-level config (mcp.json) should support the same override/merge behavior that already works for mcpServers. This would allow users to keep a power disabled: true at user level and override it to disabled: false only in workspaces that actually need it.

Use Case

For example, actually I'mI using the Terraform power (hashicorp/terraform-mcp-server), which spawns a Docker container. Since it's globally enabled, every open IDE window spawns its own container — even windows where Terraform is completely irrelevant.

I typically works with more IDE windows open simultaneously, but only 1 of them works with Terraform. The result is multiple active Docker containers consuming CPU, memory, and battery for no reason.

With workspace-scoped powers I would disable Terraform globally and enable it only in my IaC workspace.

Additional Context

  • The official docs confirm powers are always registered in ~/.kiro/settings/mcp.json upon installation.
  • Placing the power config in mcp.json at workspace level under the powers key has no effect — the IDE ignores it.
  • This is especially impactful for powers backed by heavyweight processes (Docker containers, long-running servers) where unnecessary spawning directly impacts system resources.

aferrari94 avatar Apr 29 '26 10:04 aferrari94

Thanks for opening this issue and for the detailed write-up! The use case for enabling or disabling powers on a per-workspace basis makes a lot of sense, especially for resource-heavy tools like Docker-backed MCP servers that don't need to run everywhere. A maintainer will take a look at this soon — we really appreciate you taking the time to outline the problem and the expected behavior so clearly! 🙌

github-actions[bot] avatar Apr 29 '26 10:04 github-actions[bot]

Extending scope: workspace-level env overrides (not just enable/disable)

Same problem here with the GitHub MCP Power. I use different GitHub PATs per workspace (work vs personal account — must never cross). Plain mcpServers at workspace level works fine with hardcoded tokens. But wrapping the same server in a Power makes it global-only — I lose the ability to set per-workspace credentials.

The ask: beyond enable/disable, allow workspaces to override specific env values while inheriting everything else from the power:

// workspace .kiro/settings/mcp.json
{
  "powers": {
    "mcpServers": {
      "power-kiro-power-github-github": {
        "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "gho_workspace_token" }
      }
    }
  }
}

Power upgrades update command, args, image refs, steering — workspace env override stays untouched.

Even better: if Kiro could resolve ${ENV_VAR} from the workspace's environment context (e.g., .env, mise.toml, or .kiro/settings/ env declarations) rather than only from the Kiro process environment, powers wouldn't need hardcoded tokens at all. The workspace already knows its credentials — the power's MCP server just can't access them because it runs in the user-level context with no visibility into the workspace.

Without this, any Power requiring authentication (GitHub, GitLab, Supabase, Stripe, databases) can't support multi-workspace setups. Users must either hardcode one token globally or abandon Powers entirely and use plain mcpServers — losing steering, skills, and hooks.

jounirajala avatar Jun 07 '26 18:06 jounirajala

Thanks for the well-described request. Workspace-scoped Powers (with the same override/merge pattern that mcpServers already supports) is a natural extension of the current system.

The use case from @jounirajala (different GitHub PATs per workspace) is a common enterprise need — work vs personal accounts requiring different credentials for the same Power.

We've noted this for the Powers roadmap. Leaving open to track interest.

AnilMaktala avatar Jul 02 '26 18:07 AnilMaktala

Thanks for your feedback @AnilMaktala, I want to add a tip: could be a great improvement enable powers in CLI also. What do you think? It is something could be developed in the next future?

aferrari94 avatar Jul 21 '26 15:07 aferrari94

This feature would be incredibly useful... workspace-level configuration is absolutely key for sharing agent capabilities across teams

jroru avatar Aug 15 '26 05:08 jroru