A powerful debugging tool for Vivgrid tools, allowing you to call tools, view real-time logs, and manage tool execution.
The easiest way to use Vivgrid Tool Debugger is to run it directly with npx:
npx viv-tool-debuggerThis will automatically download and start the debugger, no installation required!
- Connect to MCP (Model Context Protocol) endpoints
- View available tools from the connected endpoint
- Call tools with custom parameters
- View real-time logs for each tool
- Clear logs for individual tools
- Automatic cleanup of idle log connections
- yc CLI installation check
- Responsive design for better usability
Before using this application, ensure you have the following:
- Node.js 20.9.0+ installed (required for Next.js 16)
- yc CLI installed (required for logs functionality)
- Install via:
curl "https://bina.egoist.dev/vivgrid/yc" | sh - For more information: yc CLI Documentation
- Install via:
npx viv-tool-debuggerThis will:
- Automatically download the latest version
- Build the project if needed
- Start the server
- Open your browser to the debugger interface
- Clone the repository
- Install dependencies:
npm install # or yarn install # or pnpm install # or bun installnpm run dev # or yarn dev # or pnpm dev # or bun devOpen http://localhost:3000 with your browser to see the result.
npm run build # or yarn build # or pnpm build # or bun build- Navigate to http://localhost:3000
- Enter your MCP endpoint URL and secret
- Click "Connect" to establish the connection
- After successful connection, you'll see a list of available tools
- Each tool displays its name, description, and required parameters
- Click on a tool from the list to select it
- Fill in the required parameters in the form
- Click "Call Tool" to execute the tool
- The tool's execution result will be displayed below the form
- If the tool call takes longer than 5 seconds, a "Cancel" button will appear
- The tool call will automatically timeout after 30 seconds
- Ensure you have the yc CLI installed
- Select a tool from the list
- Click "Start Tail Logs" to begin streaming logs for that tool
- Logs will appear in the right-hand panel, with the latest logs at the top
- Each log entry is tagged with the tool name
- Click "Clear Logs" to remove all logs for the selected tool
- Log streaming will automatically stop after 5 minutes of inactivity
- Logs are separated by tool, so you only see relevant logs when a tool is selected
- Click "Clear Logs" to remove all logs for the current tool
- Log connections are automatically managed to prevent resource leaks
βββ src/ β βββ app/ β β βββ api/ β β β βββ tools/ β β β βββ route.ts # Tool list endpoint β β β βββ call/route.ts # Tool execution endpoint β β β βββ logs/route.ts # Log streaming endpoint β β βββ tools/ β β β βββ page.tsx # Main tools page β β βββ layout.tsx # Root layout β β βββ page.tsx # Login/connection page β βββ components/ # Reusable components βββ package.json βββ next.config.js βββ README.md - Next.js 16.1.1
- React 18
- TypeScript
- Model Context Protocol (MCP) SDK
- Server-Sent Events (SSE) for real-time logs
- Tailwind CSS for styling
If you see the error "yc command not found", follow these steps:
- Install yc CLI using:
curl "https://bina.egoist.dev/vivgrid/yc" | sh - Verify installation with:
yc --help - Refresh the page and try again
- Ensure your MCP endpoint URL and secret are correct
- Check if the endpoint is accessible from your network
- Verify that the endpoint is running and accepting connections
- Check that yc CLI is installed and accessible
- Verify that the secret provided has permission to access logs
- Ensure the tool name exists on the connected endpoint
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.