Files
poem/examples/mcpserver/prompts-streamable-http/README.md
Yiyu Lin d2c6f986fa feat(mcp): support prompts (#1155)
* feat(mcp): support prompts

* fmt

* fix

* Revert "fix"

This reverts commit d370e9be86.

* fix get

* not allow array

* add test case

* fix clippy

* fix connect with rmcp client

* fix
2026-01-21 10:14:00 +08:00

858 B

prompts-streamable-http

This example runs a streamable HTTP MCP server with tools and prompts, plus a small rmcp client that connects to it.

Run the server

  1. From the repo root, in one terminal: cargo run --manifest-path ./examples/mcpserver/prompts-streamable-http/Cargo.toml

    Or from the example directory: cargo run

The server listens on http://127.0.0.1:8000/.

Run the client (rmcp)

  1. From the repo root, in another terminal: cargo run --manifest-path ./examples/mcpserver/prompts-streamable-http/Cargo.toml --bin prompts-streamable-http-client

    Or from the example directory: cargo run --bin prompts-streamable-http-client

The client lists tools and invokes the get_review_count tool.

Tip

Because this example is not a workspace member, run commands from this directory or use --manifest-path from the repo root.