Commit Graph
9 Commits
Author SHA1 Message Date
rootandClaude 5202761e2a Fix: Defer NATS subscription until after connection
- Remove setupSubscription() call from constructor
- Call setupSubscription() on first handle() invocation
- Prevents 'NATS not connected' error during initialization
- Subscription happens after NATS client is connected

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 07:26:10 +02:00
rootandClaude 3d08b825a6 Fix: Use optional() instead of default() for limit parameter
- Fixes TypeScript type incompatibility with ZodDefault
- limit is now optional number instead of defaulted
- Handle default value in code instead of schema

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 07:24:28 +02:00
rootandClaude ed0788f1b6 Fix: Properly extend ToolHandler abstract class
- Use super() constructor with options and schema
- Implement protected handle() method instead of execute()
- Define proper TypeScript types with z.infer
- Fixes compilation errors with ToolHandler interface

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 07:23:43 +02:00
rootandClaude 53dd8f03c4 Fix: Use Zod schemas for messaging tools
- Replace plain object inputSchema with Zod schemas
- Fixes TypeScript compilation error
- Use z.enum() for role validation
- Use z.record(z.any()) for optional data object

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 07:22:40 +02:00
rootandClaude bbee066570 Add real-time developer messaging via NATS
- Add SendMessageTool for sending messages to other devs
- Add ReceiveMessagesTool for receiving messages
- Auto-detect sender role from workspace path (admin-dev/api-dev/web-dev)
- Messages published to NATS channels: dev.messages.{role}
- Enable real-time communication between Claude instances

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 07:19:56 +02:00
rootandClaude 37f512a404 Add 'silent' log level to config schema
- Support MCP_LOG_LEVEL=silent for stdio mode
- Fixes ZodError: Invalid enum value
- Allows complete logging suppression for MCP protocol

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 07:01:06 +02:00
rootandClaude f4e2319f30 Fix: Remove stderr redirect and explicitly set MCP_TRANSPORT
- Remove 2>/dev/null to see actual errors
- Explicitly export MCP_TRANSPORT=stdio
- Helps debug connection issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 06:57:33 +02:00
rootandClaude 4908b422b4 Fix: Disable logging in stdio mode to prevent MCP protocol errors
- Detect stdio mode and set logger to 'silent' level
- stdout must be reserved exclusively for JSON-RPC MCP messages
- Prevents 'Unexpected token' JSON parsing errors in Claude Code
- Only log when using HTTP transport mode

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 06:55:19 +02:00
rootandClaude 2d6a5cda8f Add MCP stdio wrapper script with logging disabled
- Create start-mcp.sh wrapper for Claude Code MCP integration
- Load NVM environment for proper Node.js access
- Disable logging (MCP_LOG_LEVEL=silent) to fix stdio protocol
- Suppress stderr to prevent JSON parsing errors in MCP client
- Update package-lock.json from npm install

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 06:52:50 +02:00