Add MCP platform tool definitions#7599
Open
cstns wants to merge 2 commits into
Open
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 7429_mcp-endpoint-handler #7599 +/- ##
=============================================================
- Coverage 77.03% 76.70% -0.33%
=============================================================
Files 415 421 +6
Lines 21163 21270 +107
Branches 5148 5160 +12
=============================================================
+ Hits 16303 16316 +13
- Misses 4860 4954 +94
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
# Conflicts: # forge/ee/lib/mcp/tools/applications.js # forge/ee/lib/mcp/tools/catalog.js # forge/ee/lib/mcp/tools/devices.js # forge/ee/lib/mcp/tools/instances.js # forge/ee/lib/mcp/tools/navigation.js # forge/ee/lib/mcp/tools/snapshots.js
n-lark
approved these changes
Jun 30, 2026
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.
Description
Adds the full set of platform tool definitions for the MCP server. 22 tools across 7 domain files, all prefixed with platform. and using the app.inject() pattern to call existing HTTP routes.
All read tools have readOnlyHint: true annotations. Write tools (create-application, create-instance, create-snapshot, create-device-snapshot) have readOnlyHint: false. No destructive tools in this first pass, those will come later alongside human-in-the-loop confirmation.
Also fixes CORS for the hijacked POST response by setting headers manually on reply.raw before handing off to the MCP transport.
Builds on #7429. Intentionally excludes manage-instance, update-device, and all destructive/delete operations for now.
Related Issue(s)
closes #7430
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel