MCP server: connect, authenticate and read the Project #188
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio#188
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#157
What to build
The first slice of the MCP server. A harness can connect to the running app, authenticate and read the open Project. Everything later slices need is in place.
ApiImplthe windows use, so it shares the session, the Render worker, the undo log and the change hooks (ADR-0003).rmcpis pinned to an exact version.127.0.0.1only. Requests without the bearer token are refused, and so are requests whoseOriginis not a loopback origin.ApiImplcommand reads and changes them, and a change restarts the listener. The UI comes in a later ticket.CommandErrorbecomes a tool error (isError) with the app's message and kind, never a protocol error. Invalid enum inputs list the valid values.get_project(title, path, aspect ratio, spoken language, image model, Generation profile),undo,redoandundo_state. With no Project open, each Project tool fails with a clear "no Project open" error.ApiImplwith a temp config dir andfake-comfy, and connects a realrmcpclient. Later slices reuse it.Acceptance criteria
Originget_projectfails with "no Project open" when none is open, and returns the Project when one isApiImpl, then undone through MCP, reverts and emits aChangedDtoevent;undo_statereports it_Removed/, deleting Source sheets, window commands, Board editing) are absent fromtools/listBlocked by