-
Notifications
You must be signed in to change notification settings - Fork 1
Add Mastra Cloud MCP deployment with Gemini support #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0370172
Add Mastra Cloud deployment and Gemini Chat Completions support
venikman 0fd46f6
Remove .mastra-project.json from tracking and gitignore it
venikman 9c32ffa
Remove package-lock.json in favor of bun.lock
venikman 283c54d
fix: normalize chat completions endpoints and tests
Codex cfe983f
Gitignore package-lock.json (deploy-only shim for mastra build)
venikman 475eff4
Split MCP tools into public and expert surfaces
venikman 2775841
Update docs to reflect public/expert tool surface split
venikman e5f4d03
Address PR review: restrict Gemini key fallback, simplify output extr…
venikman 228a1a6
Default to full MCP surface, use FPF_MCP_SURFACE=public for deploy
venikman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,6 @@ doc_build | |
| output.txt | ||
| *.db | ||
| *.db-* | ||
| .mastra-project.json | ||
| package-lock.json | ||
| .DS_Store | ||
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,29 @@ | ||
| { | ||
| "name": "fpf_memory", | ||
| "version": "1.0.0", | ||
| "description": "Local vectorless FPF-spec runtime with MCP tools for answers, docs, evidence, status, and refresh.", | ||
| "tools": [ | ||
| "refresh_fpf_index", | ||
| "get_fpf_index_status", | ||
| "query_fpf_spec", | ||
| "ask_fpf", | ||
| "trace_fpf_path", | ||
| "inspect_fpf_node", | ||
| "read_fpf_doc", | ||
| "inspect_fpf_anchor", | ||
| "expand_fpf_citations" | ||
| ], | ||
| "transport": "stdio", | ||
| "description": "Local vectorless FPF-spec runtime with MCP tools for answers, structured queries, and status.", | ||
| "tools": { | ||
| "public": [ | ||
| "ask_fpf", | ||
| "query_fpf_spec", | ||
| "get_fpf_index_status" | ||
| ], | ||
| "expert": [ | ||
| "refresh_fpf_index", | ||
| "trace_fpf_path", | ||
| "inspect_fpf_node", | ||
| "read_fpf_doc", | ||
| "inspect_fpf_anchor", | ||
| "expand_fpf_citations" | ||
| ] | ||
| }, | ||
| "transport": ["stdio", "http"], | ||
| "runtime": { | ||
| "bun": "bun src/mcp-stdio.ts", | ||
| "node": "node --import tsx src/mcp-stdio.ts" | ||
| }, | ||
| "http": { | ||
| "path": "/api/mcp/fpf_memory/mcp", | ||
| "sse_path": "/api/mcp/fpf_memory/sse" | ||
| } | ||
| } |
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating
mastraat module load (createMastraRuntime()) eagerly initializes the logger and observability stack even when callers only importcreateHonoMastraRuntime. In this codebase those initializers callresolveLogPath, which performsmkdirSync/openSync; in read-only build/deploy environments this can throw during import before the server starts, and it also bypasses any env object a caller intended to pass later. Keeping this export lazy (or isolating it to a deploy-only entrypoint) avoids import-time side effects and environment drift.Useful? React with 👍 / 👎.