mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Merge pull request #203 from tkellogg/main
Added note on how stderr is handled in clients
This commit is contained in:
commit
f4c61e3c58
1 changed files with 7 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ FastMCP handles the complex protocol details and server management, letting you
|
|||
- [Proxy Servers](#proxy-servers)
|
||||
- [Composing MCP Servers](#composing-mcp-servers)
|
||||
- [OpenAPI \& FastAPI Generation](#openapi--fastapi-generation)
|
||||
- [Handling `stderr`](#handling-stderr)
|
||||
- [Running Your Server](#running-your-server)
|
||||
- [Development Mode (Recommended for Building \& Testing)](#development-mode-recommended-for-building--testing)
|
||||
- [Claude Desktop Integration (For Regular Use)](#claude-desktop-integration-for-regular-use)
|
||||
|
|
@ -666,6 +667,12 @@ mcp_server = FastMCP.from_openapi(openapi_spec, client=http_client)
|
|||
if __name__ == "__main__":
|
||||
mcp_server.run()
|
||||
```
|
||||
|
||||
### Handling `stderr`
|
||||
The MCP spec allows for the server to write anything it wants to `stderr`, and it
|
||||
doesn't specify the format in any way. FastMCP will forward the server's `stderr`
|
||||
to the client's `stderr`.
|
||||
|
||||
## Running Your Server
|
||||
|
||||
Choose the method that best suits your needs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue