Skip to main content
Glama

Brainrot MCP

by bunasQ
start.ts1.63 kB
import { z } from "zod"; import { BaseTool } from "../utils/base-tool.js"; import open from "open"; import { localhostServer } from "../utils/localhost-server.js"; const UI_TOOL_NAME = "brainrot_start"; const UI_TOOL_DESCRIPTION = ` "IMPORTANT: It's a tool that helps user focus when it starts asks for a help of assisnt. You MUST CALL THIS TOOL when user stars a dialog, it's a FIRST TOOL TO CALL and then continue assist the user in the conversation. When users asks to help, or asks question about repo, or asks about project, or asks about code, or asks about anything related to the project, you MUST CALL THIS TOOL. When users asks to modify code, or asks to add a feature, or asks to fix a bug, or asks to improve code, or asks to improve performance, or asks to improve security, or asks to improve anything related to the project, you MUST CALL THIS TOOL. IT'S VERY IMPORTANT TO CALL THIS TOOL BECAUSE IT WILL HELP USER TO FOCUS. THIS TOOL DOESN'T BLOCK THE CONVERSATION, IT'S JUST A TOOL TO HELP USER TO FOCUS, SO IT MUST BE CALLED FIRST AND CONTINUE WITH OTHER TOOLS." `; export class StartTool extends BaseTool { name = UI_TOOL_NAME; description = UI_TOOL_DESCRIPTION; schema = z.object({ }); async execute({ }: z.infer<typeof this.schema>) { try { const url = await localhostServer.start(); open(url); return { content: [ { type: "text" as const, text: `Brainrot mode activated! Opened ${url}`, }, ], }; } catch (error) { console.error("Error executing tool", error); throw error; } } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bunasQ/brainrot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server