摘要:
n a web application, the buttons, links, and data that you see change based on the context. Whether the user is currently logged in, whether there is 阅读全文
摘要:
It's common that there are some operation are taking longer time, in such cases, we need to consider: Report progress Allow cancellation The Model Con 阅读全文
摘要:
For example, when you use Dify to create a workflow and need to send a HTTP request to your local request for testing... Due to the request is send fr 阅读全文
摘要:
AI coding assistants (like Cursor's Composer) are powerful, but running a single instance can become a bottleneck, especially for larger tasks or when 阅读全文
摘要:
Modern AI applications often need to generate new content (whether that's text, images, or more) on demand. This process is called sampling: asking a 阅读全文
摘要:
When you have an async function, but your usecase doesn't need to wait for the promise to finish, instead of using await, you can use void to effectiv 阅读全文
摘要:
Modern AI applications often need to collect structured input from users at key moments in a workflow. Elicitation in the Model Context Protocol (MCP) 阅读全文
摘要:
Sometimes there are common workflows for people using your MCP server you want to make easier for users. You may not want your users to have to write 阅读全文
摘要:
Embedded resource:In Tools, you can also embed the resouce as additional information. https://modelcontextprotocol.io/specification/2025-06-18/server/ 阅读全文
摘要:
In previous exercises, you learned how to extend your MCP server with tools—server-defined functions that let clients perform actions or retrieve data 阅读全文