You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
-44Lines changed: 0 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -293,50 +293,6 @@ import { createMCPServer } from '../shared/dist/index.js'; // Direct dist path
293
293
294
294
This setup was established in commits #89, #91, #92 to resolve TypeScript build and npm publish issues. Modifying these import paths will break the publishing workflow.
295
295
296
-
## Logging Best Practices
297
-
298
-
**CRITICAL**: All MCP servers must use proper logging to maintain protocol compliance.
299
-
300
-
### The Problem
301
-
302
-
The MCP protocol requires that stdout contains only JSON messages. Any `console.log()` statements in server code will break the protocol and cause errors like:
303
-
304
-
```
305
-
Error from MCP server: SyntaxError: Unexpected token 'C', "Configured"... is not valid JSON
306
-
```
307
-
308
-
### The Solution
309
-
310
-
All servers should implement a centralized logging module (`shared/src/logging.ts`) that outputs to stderr:
0 commit comments