3 ms·
After recently learning about MCP from HN, I started working on some demos. I jotted down my thoughts about my developer experience and potential room for impro
by outlore 2y ago
After recently learning about MCP from HN, I started working on some demos. I jotted down my thoughts about my developer experience and potential room for improvement.
- verdverm 2y ago> letting servers notify clients that a resource (like a database) was updated Do you have a link to the spec where they cover this use case? Why is callback in OpenAPI not sufficient for this? https://swagger.io/docs/specification/v3_0/callbacks/ https://swagger.io/docs/specification/v3_0/callbacks/
- outlore 2y agoSure that would be here https://modelcontextprotocol.io/docs/concepts/resources#content-changes https://modelcontextprotocol.io/docs/concepts/resources#cont... I think OpenAPI callback would certainly work but the client application must support this. For e.g. I don’t think ChatGPT supports callbacks (I might be wrong). Broadly speaking I am agreed with you that OpenAPI can replicate much of the functionality of MCP, but what’s missing is the opinionated contract between client and server (similar to LSPs)
- verdverm 2y ago> opinionated contract between client and server That makes it more of a DSL on a protocol (json-rpc) than a protocol itself If you want to implement notifications without callbacks, you either (1) use an always connected session and pass messages or (2) have the client poll an endpoint
- cadamsau 2y ago> jotted down As an MCP fan, am curious! Care to share. Link maybe? Or even just a comment would be great!
- outlore 2y agoOops sorry, I am OP and was referring to the submission link :)