feat(mcp-agentic): Add MCP Agentic power with agent delegation framework#108
Open
morozow wants to merge 1 commit intokirodotdev:mainfrom
Open
feat(mcp-agentic): Add MCP Agentic power with agent delegation framework#108morozow wants to merge 1 commit intokirodotdev:mainfrom
morozow wants to merge 1 commit intokirodotdev:mainfrom
Conversation
- Add POWER.md with comprehensive power documentation and runtime model - Add mcp.json configuration for MCP server setup - Add steering/activation-and-scope.md guidance on power usage - Add steering/configuration.md for configuration options and best practices - Add steering/delegation-and-session-lifecycle.md for session management patterns - Add steering/discovery-and-routing.md for agent discovery and routing rules - Add steering/failure-handling.md for error handling strategies - Introduces agent discovery, session management, and multi-agent delegation capabilities - Provides both in-process and external worker execution backends via StdioBus
|
Hi @morozow, thank you for your contribution! Please note that if you haven't already, you would also need to submit your power officially at kiro.dev/powers/submit so it can be reviewed for listing in the Kiro powers registry. |
Author
Done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
mcp-agenticpower — External Agent Delegation for KiroWhat this enables
This PR adds the MCP Agentic power to the Kiro powers registry. With it, Kiro gains a standard bridge for discovering and delegating work to external ACP-compatible agents through MCP.
In practice: a Kiro user can find what specialist agents are available, send them tasks, carry on multi-turn conversations with them, and manage the full session lifecycle — without leaving the IDE. The agents themselves can be written in any language and run as separate processes, as long as they speak ACP over stdio.
The power is built on
@stdiobus/mcp-agentic(Apache-2.0) from the stdio Bus ecosystem.What Kiro users can do
Why this belongs in the Kiro powers registry
Example workflows
Discover and delegate (one-shot):
A user asks Kiro to analyze a codebase for security issues. Kiro activates the power, discovers a
code-analysisagent, and delegates the task in a single call:Multi-turn session with context:
A user needs iterative work — first analyze, then fix. Kiro opens a session and continues the conversation:
Health check and capability-filtered discovery:
Before delegating, Kiro verifies the bridge is up and finds agents with a specific capability:
What's included
Files
MCP tools (8)
bridge_healthagents_discoversessions_statussessions_createsessions_promptsessions_closesessions_canceltasks_delegateRead-only tools (
bridge_health,agents_discover,sessions_status) are auto-approved. All mutating tools require user approval.Steering coverage
activation-and-scope.mdconfiguration.mddelegation-and-session-lifecycle.mddiscovery-and-routing.mdfailure-handling.mdImportant: the shipped
mcp.jsonis a reference serverThe
mcp.jsonin this power runsnpx -y @stdiobus/mcp-agentic, which starts a reference/diagnostics server with no agents registered. This is by design:bridge_healthresponds (reports readiness state)agents_discoverreturns an empty listtasks_delegateandsessions_createwill fail (no agents to handle requests)This is useful for verifying MCP connectivity and inspecting the tool schema. For actual agent delegation, users create a custom entry point that calls
server.register()beforeserver.startStdio()— documented in POWER.md andsteering/configuration.md.Technical notes
@stdiobus/mcp-agenticv1.x, Apache-2.0register()run in-memory; sessions have TTL and idle expiryregisterWorker()run as external processes via StdioBus; worker sessions persist until explicitly closed or server shutdown (no automatic expiry)BridgeErrorwith 4 active categories (CONFIG, UPSTREAM, TRANSPORT, INTERNAL); mapped to MCP JSON-RPC error codesReviewer focus
When reviewing this PR, the key things to validate:
mcp.jsonis for diagnostics, not production delegation?Scope and limits
Checklist
POWER.mdwith frontmatter (name, displayName, description, 14 keywords, author, license)mcp.jsonwith MCP server configurationsteering/directory with 5 workflow-specific guidance filesLinks
Changelog
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.