We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1df6f8b + 5e01994 commit 4cee64bCopy full SHA for 4cee64b
docs/first-server/typescript.mdx
@@ -192,7 +192,10 @@ This guide uses the OpenWeatherMap API. You'll need a free API key from [OpenWea
192
async run(): Promise<void> {
193
const transport = new StdioServerTransport();
194
await this.server.connect(transport);
195
- console.log("Weather MCP server running on stdio");
+
196
+ // Although this is just an informative message, we must log to stderr,
197
+ // to avoid interfering with MCP communication that happens on stdout
198
+ console.error("Weather MCP server running on stdio");
199
}
200
201
0 commit comments