fix(mcp): resolve stacks per instance type and expose an instance's specification#7908
Open
andypalmi wants to merge 3 commits into
Open
fix(mcp): resolve stacks per instance type and expose an instance's specification#7908andypalmi wants to merge 3 commits into
andypalmi wants to merge 3 commits into
Conversation
added 3 commits
July 22, 2026 00:21
platform_list_stacks returned every stack across every instance type with no way to tell which one was current, so "use the latest" was ambiguous and a superseded Node-RED version could be selected. Scope the tool to a chosen instance type, using the same projectType filter as the real stacks endpoint, and surface that type's defaultStack as the recommended latest version, both in the tool description and in platform_create_hosted_instance's guidance.
The application-instances list carries no instance type, stack, or template, and no tool description said so, so a request to read or match an existing instance's specification had no reliable source and could be answered with a guess reported as fact. Note on the list tool that it omits the specification, and point both it and the create-instance guidance at platform_get_hosted_instance, which already returns the full specification.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7908 +/- ##
=======================================
Coverage ? 75.65%
=======================================
Files ? 432
Lines ? 23087
Branches ? 6126
=======================================
Hits ? 17466
Misses ? 5621
Partials ? 0
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:
|
2 tasks
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
platform_list_stacksto a given instance type, and surface adefaultStack(the latest recommended stack) on bothplatform_list_hosted_instance_typesandplatform_list_stacks, so the agent has a way to resolve "the latest available stack" instead of picking from an undifferentiated, cross-type list.platform_get_hosted_instance/platform_get_application_hosted_instances' descriptions at reading an instance's specification (instance type, stack, template) before creating another instance matching it, instead of guessing.Test plan
platform_get_hosted_instancefirst, read the realprojectType/stack/templateids, and reused them exactly rather than guessingCloses FlowFuse/engineering#163
Closes FlowFuse/engineering#194
Closes FlowFuse/engineering#180