Use an agent to debug your LLM applications and fix the issues for you
command
npx -y @langwatch/mcp-server --apiKey=sk-lw-...
--apiKey
: Your LangWatch API key. This is mandatory and must be provided.--endpoint
: Optional The endpoint for the LangWatch API. Defaults to https://app.langwatch.ai
if not specified.LANGWATCH_API_KEY
and LANGWATCH_ENDPOINT
to check if they have values as well as looking at arguments passed into the server on start.get_latest_traces
pageOffset
(optional): The page offset for pagination.daysBackToSearch
(optional): The number of days back to search for traces. Defaults to 1.get_trace_by_id
id
: The ID of the trace to retrieve.Cmd + I
Run tool
in the chat view for it to be called.“I just ran into an issue while debugging, can you check the latest traces and fix it?”