story-kit: create 347_story_mcp_tool_for_shell_command_execution

This commit is contained in:
Dave
2026-03-20 09:18:27 +00:00
parent fb23e2218b
commit 6aa932b349

View File

@@ -0,0 +1,22 @@
---
name: "MCP tool for shell command execution"
---
# Story 347: MCP tool for shell command execution
## User Story
As a non-Claude agent connected via MCP, I want a shell command tool so that I can run cargo build, npm test, and other commands in my worktree.
## Acceptance Criteria
- [ ] run_command tool — executes a bash command and returns stdout/stderr/exit_code
- [ ] Command runs in the agent's worktree directory
- [ ] Supports timeout parameter (default 120s, max 600s)
- [ ] Sandboxed to worktree — cannot cd outside or access host paths
- [ ] Returns streaming output for long-running commands
- [ ] Dangerous commands blocked (rm -rf /, etc.)
## Out of Scope
- TBD