Accept story 40: MCP Server Obeys STORYKIT_PORT
Agent worktrees now get a .mcp.json written with the correct port from the running server. AgentPool receives the port at construction and passes it through to create_worktree, which writes .mcp.json on both new creation and reuse. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
---
|
||||
name: MCP Server Obeys STORYKIT_PORT
|
||||
test_plan: approved
|
||||
---
|
||||
|
||||
## User Story
|
||||
|
||||
As a developer running the server on a non-default port, I want agent worktrees to automatically discover the correct MCP server URL, so that spawned agents can use MCP tools without manual .mcp.json edits.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [x] Agent worktrees inherit the correct port from the running server (via STORYKIT_PORT env var or default 3001)
|
||||
- [x] The .mcp.json in agent worktrees points to the actual server port, not a hardcoded value
|
||||
- [x] Existing behaviour (default port 3001) continues to work when STORYKIT_PORT is not set
|
||||
Reference in New Issue
Block a user