molecule-mcp-server/package.json
molecule-ai[bot] e73b53e464
feat(mcp): add structured pino logging with AsyncLocalStorage context (KI-001) (#6)
Replace all console.log/error with structured JSON logging via pino.
Every log entry automatically carries toolName, requestId, and workspaceId
from the current AsyncLocalStorage scope — no need to thread context.

Changes:
- package.json: add pino@^9.6.0, pino-pretty@^13.0.0
- src/utils/context.ts: new — AsyncLocalStorage context + getContext/withContext/runWithContext
- src/utils/logger.ts: new — info/warn/error/debug helpers, JSON output in prod, pretty in dev
- src/api.ts: both console.error → logError(...)
- src/index.ts: all console.error → logInfo/logWarn/logError(...)
- known-issues.md: mark KI-001 resolved

Co-authored-by: Molecule AI SDK-Dev <sdk-dev@agents.moleculesai.app>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 18:37:40 +00:00

35 lines
822 B
JSON

{
"name": "@molecule-ai/mcp-server",
"version": "1.0.0",
"description": "MCP server for Molecule AI Agent Team \u2014 manage workspaces, agents, and skills from any AI coding tool",
"type": "module",
"bin": {
"molecule-mcp": "./dist/index.js"
},
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"test": "jest"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.0",
"pino": "^9.6.0",
"pino-pretty": "^13.0.0",
"zod": "^3.23.0"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^20.0.0",
"jest": "^30.3.0",
"ts-jest": "^29.4.9",
"typescript": "^5.5.0"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/Molecule-AI/molecule-mcp-server.git"
}
}