-
Notifications
You must be signed in to change notification settings - Fork 7
McpService #7329
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: develop
Are you sure you want to change the base?
McpService #7329
Conversation
migration to spring-ai for chat client
test-chat.view (AbstractAgentAction)
register resources with mcpserver
| import org.springframework.ai.chat.model.ToolContext; | ||
| import java.util.Map; | ||
|
|
||
| public class McpContext implements ContainerUser |
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.
A sentence or two of docs would be helpful here too.
| // Build URL with same base as current document, endpoint /query-queryagent.api and prompt parameter | ||
| var url = new URL('./query-queryagent.api', window.location.href); | ||
| url.searchParams.set('prompt', prompt); | ||
| var req = new XMLHttpRequest(); |
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.
Worth using LABKEY.Ajax instead?
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 code is really trash. I hope it is not long lived.
|
|
||
|
|
||
| @Override | ||
| public ToolCallback @NonNull [] getToolCallbacks() |
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.
Returning arrays always feels clunky. Consider a Collection of some sort.
Rationale
McpService for registering MCP tools, etc.
Basic chat page for testing (test-chat.view)
Related Pull Requests
Changes