Skip to main content
Glama

Ditto MCP Server

by evtapps
MIT License
  • Linux
  • Apple
logging-and-errors.mdc722 B
--- description: Logging, redaction, and error-handling strategy --- # Logging & Error Handling - Always log via the `logger` in [`src/utils/logger.ts`](mdc:src/utils/logger.ts); it redacts Bearer tokens and common secret patterns. - Keep logs concise; prefer single-line entries with structured JSON only when necessary. - Do not log secrets or raw Ditto responses containing auth headers. - Process handlers must not assume `Error`; convert `unknown` to string safely (`errorToString` in [`src/index.ts`](mdc:src/index.ts)). - Tool handlers return errors instead of throwing for expected cases (policy violations, missing config). - HTTP client converts failures to Ditto-like envelopes to reduce branching in handlers.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/evtapps/ditto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server