Repository navigation
fix: the stdio MCP server asks the open window before changing anything - #17
Merged
Merged
Conversation
The stdio MCP server now asks the running formfabric window for approval before any tool that changes the garment, through the same prompt agents over HTTP get. With no window open, or when the person declines, the change is refused with a sentence that says why; read-only tools still answer. The service writes a small link file in its data folder at start (port and a key made at each start, mode 0600) and removes it at shutdown. The stdio process asks POST /api/mcp/permit with that key, and the service signs its verdict so only the running service can approve.
…r asks The stdio server now sends a signature of a fresh nonce instead of the link key itself, so a program answering on a port the service left behind never learns the key and cannot approve a change. The permit route also refuses a body nonce other than the signed one. Also adds the missing space between two sentences of the MCP instructions, and says in the agents page that the stdio server keeps its own garment.
…not follow the clock ZipFile.writestr stamps each entry with the current time at two-second steps, so the outside garment written at the start of a test and the bytes rebuilt for the check could differ when the test crossed a step. The file itself was never touched by forget.
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.
Summary
Tests
How to ship