-
Notifications
You must be signed in to change notification settings - Fork 51
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
feat: implement current developer system as a separate mcp server #514
Conversation
* origin/v1.0: Adds 'instructions' field to InitializeResult (#511)
this is very cool - and does make me think - do we want a way to run in-process systems for things are are pretty much always bundled? (but still be a system which could be used out of process) |
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.
LGTM
crates/developer/src/errors.rs
Outdated
@@ -0,0 +1,69 @@ | |||
use mcp_core::handler::{ResourceError, ToolError}; |
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.
seems like file this should maybe be part of more central library? but i guess reasonable to wait until we have another (although @michaelneale has a new system that would need these i think)
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.
Actually after reading, maybe we remove this entirely and only use ToolError from mcp_core
crates/developer/src/main.rs
Outdated
self.map_agent_result_to_value(result) | ||
} | ||
|
||
// Convert AgentResult<Vec<Content>> to Result<Value, ToolError> |
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.
nit: i haven't thought about it too hard, but might be better to just rework the old code a bit to create ToolError?
this is still not complete. the tools are working. resource is not working because i think its currently implemented as a static resource but we might need a resource template (dynamic) - not sure yet
tested with MCP inspector:
✅ tools
✅ resources