Package com.ssgllc.fish.config.mcp
Class McpConfigMgmt
java.lang.Object
com.ssgllc.fish.config.mcp.McpConfigMgmt
MCP tool configuration for git-backed configuration management.
Exposes the config-branch lifecycle that already exists on
/api/admin/configs/* (ConfigMgmtResource) as MCP tools,
so config changes staged on a feature branch (via the featureBranch param on the entity
and BPM write tools — see ConfigBranchContext) can be inspected and merged to stable
without leaving the MCP session:
list-config-branches— list config feature branchesget-config-status— repository status + conflict stateget-config-commits— commits on the current feature branch not yet on stablemerge-config-branch-to-stable— squash-merge a feature branch into stable (ROLE_SUPER)delete-config-branch— delete a feature branch (ROLE_SUPER)resolve-config-conflict— clear the conflicted flag after an out-of-band resolution (ROLE_SUPER)
The mutating tools queue an async git action and return immediately; poll
get-config-status for completion or conflicts.
ConfigMgmtService is itself conditional on application.git.url; when config-git
is not configured the bean is absent and every tool returns a clear "not enabled" error.
Active only when spring.ai.mcp.server.enabled=true.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTool implementations for config-branch management. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
McpConfigMgmt
public McpConfigMgmt()
-