Labsco
getreturn0 logo

return0

โ˜… 1

from getreturn0

Debug your remote Node.js and Next.js applications directly from your AI IDE like Cursor.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

@return-0/mcp-server

MCP (Model Context Protocol) server for return0 - a tool for debugging production applications in real-time.

About return0

return0 enables developers to debug production Node.js applications in real-time. It allows you to monitor and troubleshoot your applications by connecting to live variables, observing execution flow, and understanding runtime behavior directly within the Cursor IDE. This is especially powerful for debugging production applications built with Next.js and deployed on platforms like Vercel, where traditional debugging methods can be challenging.

Chat Demo

Tools

This MCP server provides a variable_extractor tool that can be used by MCP-compatible clients.

Tool: variable_extractor

Extracts the runtime value, type, and timestamp of variables from production code.

Input Schema:

{
  files: Array<{
    fileName: string;        // Full absolute path to the file
    variables: Array<{
      name: string;          // Variable name to extract
      lineNumber: number;    // Line number where variable is defined
    }>
  }>
}

Example:

{
  "files": [
    {
      "fileName": "C:\\Users\\username\\project\\src\\app\\api\\route.ts",
      "variables": [
        {
          "name": "userData",
          "lineNumber": 42
        }
      ]
    }
  ]
}

How It Works

  1. The MCP server receives requests to extract runtime variable values from production code
  2. It reads the source files from the local filesystem
  3. Uses TypeScript AST analysis to correct line numbers for accurate variable location
  4. Connects to the running production application to retrieve live variable values
  5. Returns the corrected variable extraction data with real-time runtime values, types, and timestamps

Author

return0