I run two MCP servers: worklore (Python on AWS Lambda) and AimYear (TypeScript on Google Cloud Run). Both already write a log line for every tool call. So when problems.dev offered a paid story, I started with the question every server author asks: why add a service if I can log everything myself?
After a week of sending every tool call to problems.dev, my answer is the UI and the storage. To find out what failed this week from my own logs, I write a query every time. In problems.dev it is one page: calls, errors, error rate, and the errors grouped by tool and message, each with a count and the time it was last seen. I don't run a table, choose how long to keep data, or build a dashboard. My agent reads the same problems through their read-only MCP server, so I can ask "what broke this week?" in the terminal.

The data matched my logs exactly: 99 of 99 calls on AimYear, and 37 of 37 events on worklore when I compared them one by one. The errors surprised me: none came from other people using the servers. My deploy tests fail on purpose, and they arrived as real errors, so at first I stopped reporting my own test clients. SDK 0.0.6 came out a week later with a better answer: those calls are still sent, marked as tests, and problems.dev keeps them out of the errors. After I switched, the next deploy's failing-on-purpose checks reached problems.dev and the error list stayed empty. The rest were directory bots calling tools with empty arguments. On worklore, people who signed in had no failed calls at all.
The SDK readme gives one catch a single line, and on serverless it matters. The Node SDK keeps events in memory and sends them every two seconds, and a serverless instance can freeze before that happens. So both servers hand each event to something that keeps it. worklore passes the batch to a second Lambda function, the only one that holds the key. AimYear writes each event to a Firestore outbox, and a job sends it every minute. There was no Python SDK, so I ported it and published the port as open source.
It can't see everything. Calls refused before sign-in never reach it (62 on AimYear this week), and neither do sessions where an agent lists the tools and never calls one. One unidentified client made 1,366 calls to a single worklore tool, and the console counted them as usage with no way to tell who it was. Since SDK 0.0.6, each event carries the MCP client's name and version when the client gives one, a first step toward telling bots from people.
Reproduce this
Prerequisites: an MCP server you host yourself, its source code, and a way to deploy it. For now one problems.dev account covers one MCP server; a second server needs a second account.
Your agent will need from you: a problems.dev account and its public key (starts with pb_pub_), and whether the server runs as a long-running process or serverless (AWS Lambda, Cloud Run with CPU only during requests, or similar).
Steps:
- Get the key. Run
npx @problemsdev/sdk init(it prints a browser approval URL) or copy the key from the setup page at https://problems.dev. Store it as a secret namedPROBLEMS_PUBLIC_KEY, not in the code. - Add the reporter.
- Node: install
@problemsdev/sdk(https://www.npmjs.com/package/@problemsdev/sdk). Create it withcreateProblems({ publicKey: process.env.PROBLEMS_PUBLIC_KEY }). Before you register tools, callproblems.enableFeedback(server, { z, product: "<your product>" }): it wraps the server and adds thesend_feedbacktool. Without feedback, callproblems.wrapMcpServer(server)instead. - Python: install the unofficial port
problemsdev-reportwithpip install git+https://github.com/worklore/problems-python(MIT, same wire format and the samesend_feedbacktool). CreateReporter(tools=<set of your tool names>, product="<your product>"), decorate each tool with@reporter.track("<tool name>"), and addsend_feedbackas shown in its README.
- Serverless only: don't rely on the in-memory buffer.
- AWS Lambda: pass
send=to the PythonReporter, a function that invokes a second "reporter" Lambda withInvocationType="Event"and returns True on status 202. The reporter Lambda callsdeliver(event, key=os.environ["PROBLEMS_PUBLIC_KEY"]); it is the only function that holds the key. Set its async retry count (worklore uses 2) and give the API function permission to invoke it. The README has the full example. - Cloud Run or similar: before the answer leaves, write each event to a durable outbox (AimYear uses a Firestore collection), with a short timeout (500 ms) so a slow write never holds a tool call. A scheduled job (every minute) sends up to 50 events to
POST https://api.problems.dev/v1/eventswith the headerx-problems-key, body{"version": 1, "sdkVersion": "0.0.6", "events": [...]}. Keep the batch for the next run on a network error, 429 or 5xx (at most 3 attempts), and drop it on any other 4xx. - A long-running process can keep the SDK's own timer; call
flush()before it exits.
- Decide what error text leaves your server. The SDK masks common secret patterns, but error text can still quote user data. If your errors can contain user content, send a fixed error class instead:
beforeSendin Node,before_sendin the Python port, orPROBLEMS_ERROR_DETAIL=off(Python port only). Tool arguments and results are never sent. - Mark your own test traffic as tests instead of dropping it (SDK 0.0.6 or later, https://problems.dev/docs/configuration#test-calls).
PROBLEMS_TEST=1marks every call a process records; a test client can add_meta: {"problems.dev/test": true}to its call; or anisTestrule marks calls by client name or User-Agent (worklore marks clients whose User-Agent starts withworklore-). In the Python port the rule isis_test, and you pass the request's_metaand User-Agent torecord_result. If you send events yourself, add"test": trueto the event. Marked calls stay out of problems and errors: after my deploy, 40 test calls (11 of them failing on purpose) showed up nowhere in the console. Every other client is reported unmarked. - Add problems.dev to your privacy page: what is sent (tool name, success or error, masked error text, and the MCP client's name and version when known) and what is not (arguments, results, who called).
- Optional: connect your agent to the problems.dev MCP server, https://problems.dev/mcp (OAuth, read-only tools
list_problemsandlist_feedback, one project per connection).
Verify: call one of your tools with a required argument missing, from a client that is not marked as a test. After the next send (2 seconds with the SDK timer, or the next scheduled run), the console's Errors tab shows that tool with an error, and SDK calls has grown by one. Make the same call marked as a test: no new error appears for it. Then pick a window that starts after the reporter went live and count the tool calls in your own server log for it: the number equals SDK calls in the console for the same window, minus the calls marked as tests and the send_feedback calls, which are not counted as usage.