Skip to main content
Glama

mcp-server-browserbase

Official
by browserbase
Apache 2.0
2,054
2,714
tool.ts895 B
import type { ImageContent, TextContent, } from "@modelcontextprotocol/sdk/types.js"; import type { z } from "zod"; import type { Context } from "../context.js"; export type ToolSchema<Input extends InputType> = { name: string; description: string; inputSchema: Input; }; // Export InputType export type InputType = z.Schema; export type ToolActionResult = | { content?: (ImageContent | TextContent)[] } | undefined | void; export type ToolResult = { action?: () => Promise<ToolActionResult>; waitForNetwork: boolean; }; export type Tool<Input extends InputType = InputType> = { capability: string; schema: ToolSchema<Input>; handle: (context: Context, params: z.output<Input>) => Promise<ToolResult>; }; export function defineTool<Input extends InputType>( tool: Tool<Input>, ): Tool<Input> { return tool; } export {}; // Ensure this is treated as a module

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/browserbase/mcp-server-browserbase'

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