开始使用免费开始使用

Initialize an MCP connection in the right order

A client is connecting to an MCP server over the STDIO transport. Before any tool can be called, the two sides must complete the initialization handshake — a fixed sequence of messages that sets up the connection. The four messages below are shuffled. Put them in the order they are sent, from opening the connection through the first tool call.

本练习是课程的一部分

Model Context Protocol: Advanced Topics

查看课程

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习