Spaces:
Running
Running
Merge pull request #203 from tkellogg/main
Browse filesAdded note on how stderr is handled in clients
README.md
CHANGED
|
@@ -66,6 +66,7 @@ FastMCP handles the complex protocol details and server management, letting you
|
|
| 66 |
- [Proxy Servers](#proxy-servers)
|
| 67 |
- [Composing MCP Servers](#composing-mcp-servers)
|
| 68 |
- [OpenAPI \& FastAPI Generation](#openapi--fastapi-generation)
|
|
|
|
| 69 |
- [Running Your Server](#running-your-server)
|
| 70 |
- [Development Mode (Recommended for Building \& Testing)](#development-mode-recommended-for-building--testing)
|
| 71 |
- [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)
|
|
| 666 |
if __name__ == "__main__":
|
| 667 |
mcp_server.run()
|
| 668 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 669 |
## Running Your Server
|
| 670 |
|
| 671 |
Choose the method that best suits your needs:
|
|
|
|
| 66 |
- [Proxy Servers](#proxy-servers)
|
| 67 |
- [Composing MCP Servers](#composing-mcp-servers)
|
| 68 |
- [OpenAPI \& FastAPI Generation](#openapi--fastapi-generation)
|
| 69 |
+
- [Handling `stderr`](#handling-stderr)
|
| 70 |
- [Running Your Server](#running-your-server)
|
| 71 |
- [Development Mode (Recommended for Building \& Testing)](#development-mode-recommended-for-building--testing)
|
| 72 |
- [Claude Desktop Integration (For Regular Use)](#claude-desktop-integration-for-regular-use)
|
|
|
|
| 667 |
if __name__ == "__main__":
|
| 668 |
mcp_server.run()
|
| 669 |
```
|
| 670 |
+
|
| 671 |
+
### Handling `stderr`
|
| 672 |
+
The MCP spec allows for the server to write anything it wants to `stderr`, and it
|
| 673 |
+
doesn't specify the format in any way. FastMCP will forward the server's `stderr`
|
| 674 |
+
to the client's `stderr`.
|
| 675 |
+
|
| 676 |
## Running Your Server
|
| 677 |
|
| 678 |
Choose the method that best suits your needs:
|