-
Notifications
You must be signed in to change notification settings - Fork 24
(WIP/PoC) Initial MCP PoC #2256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| </dependency> | ||
| <dependency> | ||
| <groupId>io.quarkiverse.mcp</groupId> | ||
| <artifactId>quarkus-mcp-server-sse</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite name, provides both SSE (deprecated) and Streamable HTTP
| import java.util.Map; | ||
|
|
||
| public class PoCTools { | ||
| @Inject private ToolManager toolManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the entity handling tools like name suggests: injected to allow adding tools dynamically.
| Map<String, String> sysinfo() { | ||
| return Map.of( | ||
| "requestId", | ||
| requestContext.getRequestId(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently fails to inject RequestContext so fails here when attempting to call.
| enabled: true | ||
| text-limit: 500 | ||
| sse: | ||
| root-path: /v1/mcp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under same root as main Data API endpoint, on purpose.
What this PR does:
Trivial Poc/plaything for static-ish MCP prototype
Which issue(s) this PR fixes:
N/A
Checklist