Skip to content

feat: add stateless stdio mcp bridge - #229

Open
builtbyhuy wants to merge 1 commit into
FraiseHQ:mainfrom
builtbyhuy:feat/mcp-stdio-bridge
Open

feat: add stateless stdio mcp bridge#229
builtbyhuy wants to merge 1 commit into
FraiseHQ:mainfrom
builtbyhuy:feat/mcp-stdio-bridge

Conversation

@builtbyhuy

Copy link
Copy Markdown

Problem

Fraise has framework-specific memory tools, but MCP hosts do not yet have the stateless stdio bridge required by the v0.1.0 install story.

Changes

  • add fraise mcp --url http://localhost:9876 --graph 0 while preserving the existing server command behavior
  • expose remember_fact and recall_memory through the official MCP Go SDK
  • bind one bridge process to one graph and forward calls to the existing /api/v1/q endpoint
  • preflight daemon health before reading stdio and name both service recovery commands on failure
  • mark recall read-only and remember non-destructive in MCP tool annotations
  • pin query rendering, required input fields, HTTP forwarding, daemon failures, CLI flags, and a real subprocess stdio round trip

Verification

  • go test ./...
  • make lint-go
  • built binary rejects an out-of-range graph and reports the expected daemon recovery commands
  • subprocess MCP client connects over stdio and calls recall_memory successfully

Closes #209

@github-actions

Copy link
Copy Markdown

Thanks for the contribution! Before it can be merged, please read the CLA and comment exactly:


I have read the CLA and I hereby agree to its terms


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@RonsenbergVI

Copy link
Copy Markdown
Collaborator

@builtbyhuy thanks for opening a PR, you got here before I did! I overrode this one because we're days from the v0.1.0 release and I didn't want a review round in the way. That was a timing call, not a comment on the PR.

I should have had the issue assigned to me; the repo went public faster than my habits did. They are now, so it won't happen again.

Have a look at first good issues there are plenty of interesting contribution to make. Hope to see your PR soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: fraise mcp stdio subcommand — thin bridge to the daemon

2 participants