Class McpConfigMgmt

java.lang.Object
com.ssgllc.fish.config.mcp.McpConfigMgmt

@Configuration public class McpConfigMgmt extends Object
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 branches
  • get-config-status — repository status + conflict state
  • get-config-commits — commits on the current feature branch not yet on stable
  • merge-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:
  • ConfigMgmtResource
  • Constructor Details

    • McpConfigMgmt

      public McpConfigMgmt()