feat(mcp): expose DICE tools for MCP server integration#52
Open
LordKay-sudo wants to merge 1 commit into
Open
Conversation
993700f to
31f9763
Compare
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
DiceMcpToolswith simplifiedcontext_id-scoped parameters for external MCP clients (Claude Desktop, Cursor, etc.).dice-mcp-autoconfigureto export tools via embabel-agentMcpToolExportwhenembabel.dice.mcp.enabled=true.Fixes #5
Motivation
Issue #5 asks to make it easy to expose DICE over MCP. External clients are stateless, so every tool takes an explicit
context_id, same idea as #6's context-scoped chunk history.#49 added
DiscoveryToolsandGraphQueryToolswith manualasTools()registration. This PR closes the remaining gap: auto-wiringMcpToolExport+embabel-agent-starter-mcpserverso a Spring Boot app can expose DICE over MCP without bespoke configuration.Scope
This only exports
DiceMcpTools(recall, list, store, get, plus extract/assert when wired).DiscoveryToolsandGraphQueryToolsfrom #49 are a separate surface. Those bake context in at construction for in-process agents, so I left them out of the MCP autoconfig path. Happy to follow up if discovery/graph tools over MCP are wanted.What changed
com.embabel.dice.mcpDiceMcpTools,DiceMcpProfile,DiceMcpSupportdice-mcp-autoconfigurediceMcpToolExportbeanTest plan
DiceMcpToolsTest- store/get, recall, context isolation, profiles, optional-tool guardsmvn test -pl dice,dice-mcp-autoconfiguremvn test verifyon CI after rebase onto main