feat(#208): link MCP views to Artifacts hub for YAML editing (release 5)#236
feat(#208): link MCP views to Artifacts hub for YAML editing (release 5)#236gozen59 wants to merge 1 commit into
Conversation
… (release 5) Signed-off-by: Thierry MATHIAS <thierry.mathias@gmail.com>
|
I think we need to further discuss this as I'm not sure what we'd like to keep in the future... I tend to think that we don't need "MCP Custom Tools" or "MCP Prompts" thumbnails as is ... as everything now should be managed via the "Artifacts" tab. However, I think there are useful features here like the one that extracts "tools" or "prompts" from the YAML artifacts. I like the idea of thinking of "prompts", "resources", "custom tools", and the things we attach via artifacts as additional capabilities that come to enrich the default service definition. Maybe we should add a Capabilities section in the "Overview" tab of a Service... I would say then that 4 tabs are enough => Overview (with capabilities), Artiacts, Configuration Plan, and Exposition. What do you think? |
|
Agree — separate MCP tabs are redundant now that Artifacts is the edit surface. The resolution views (effective prompts/tools) are still useful and fit better under Capabilities on Overview. This PR only wires navigation + artifactId in resolvers; that stays relevant wherever we show the resolved view. I’d merge incrementally and do tab consolidation in a follow-up — unless you’d rather hold this until Overview/Capabilities is designed. |
Summary
mcpPrompts.ts,mcpCustomTools.ts) so resolved views know which source artifact to edit./services/{id}/mcp-prompts,/services/{id}/mcp-custom-tools) pointing to/services/{id}/artifacts/{artifactId}./artifactswith the service Artifacts hub./mcp-prompts,/mcp-custom-tools) whenserviceId/artifactIdare resolved.No Monaco, schema, worker, or backend changes — MCP routes stay read-only; editing remains in the Artifacts hub (lots 1–4).
Test plan
RESHAPR_PROMPTSartifact → MCP prompts tab shows YAML inScrollableCode(read-only) and Edit in Artifacts opens the correct artifact in Monaco.RESHAPR_CUSTOM_TOOLSartifact → MCP custom tools tab shows Edit in Artifacts on the YAML collapsible./services/{id}/artifacts/new?kind=Prompts./services/{id}/artifacts(not/artifacts)./mcp-promptsand/mcp-custom-tools: resolve an MCP URL → Edit in Artifacts appears when artifact source exists.npm run checkpasses (already verified locally).