I have been extending Sentry’s MCP beyond structured queries: I experimented with natural-language access to spans, logs, and errors, proposed a purpose-built trace tool, and added documentation search and retrieval tools. These experiments connect to my work on designing good mcp tools and agent friendly documentation formats.
I said, “Spent a bunch of time improving a the query agent we expose in Sentry’s MCP last night.”
I described the query-agent work as “fast POC; eventually will be available throughout Sentry’s web UI.”
I described the capability as: “Query spans, logs, and errors in natural language, wherever you are.”
I shared https://t.co/dcXhH7itHj with the query-agent post.
In my follow-up, I said, “There’s still some rough edges.”
I said, “it’s not quite able to map all queries you’d want to express; let alone without some clarity.”
Despite those limitations, I said, “overall it’s pretty impressive.”
I shared an example querying tool usage for our MCP server at https://t.co/DeekWYCCSG.
I proposed: “Let's build a get_trace_details tool in Sentry's MCP service.”
- I listed “a new tool (get_trace_details)” and “mock fixture data (for sentry's production endpoints)” among the requirements for the tool, alongside baseline tests, non-trivial tree rendering, and node selection.
I said, “I asked @madbyk if he could convert MDX into MD on the core docs platform.” The purpose was to “enable indexing of the docs by a RAG.”
I said the conversion “but also gave us copy paste.”
The conversion allowed me to add the tools “search_docs and get_doc” to our coding-agent MCP; search_docs uses Cloudflare's Autorag.
I described search_docs as using Cloudflare’s Autorag.
I said get_doc pulled down “those dirct markdown files.”
I announced that experimental docs search via our MCP is live.
I shared https://t.co/QnIXrJN2ow with the experimental docs-search announcement.
I described it as: “Shipping a natural language search in Sentry's MCP as an experiment.” This was a first pass at improving what people can do inside IDEs with Sentry.
I planned to pull the experimental natural-language search out of the MCP later and move it to one of our server-side agents.
A use case that drove this for me was: “clean up Sentry, lets deal with these [xyz] errors and suppress them using UserInputErrors”.
I said the system could not reliably write the correct tool calls to query those errors, but “Now it (maybe) can.”
I said people could ask a question of the MCP server by following the draft mcp semantics for spans.
I also said people could ask a question of the MCP server using Sentry's probably undocumented MCP auto instrumentation.
I have explored using MCP with Sentry for error discovery, saved queries, and access to documentation. These experiments connect practical Sentry workflows to the MCP draft spec and to the possibility of exposing indexed documentation through MCP.
I had a killer use case for our MCP, but it failed. I wanted to find similar errors to identify other patterns, and the failure left me with a mission.
I said Sentry’s toolchain was getting really powerful and shared saved queries working against the MCP draft spec.
I described building these queries as easy: detect the attribute name, put it into the column, and go from there.
I updated the Sentry implementation to use the draft spec over the weekend; so we're missing historicals now, but it's looking good.
I wondered whether Cloudflare’s AutoRAG was good and considered trying it on Sentry’s docs; I need to index them so i can easily expose everything to our MCP.