exe-browser-shared
v1.2.1
Published
Shared TypeScript schemas and utilities for the exe-browser MCP stack
Maintainers
Readme
exe-browser-shared
Shared TypeScript schemas and utility types used by the exe-browser MCP server and browser extensions. Install this package if you want to build custom MCP tooling, write tests, or extend the protocol.
- Command payload/result maps for every exe-browser tool (
browser_snapshot,browser_click, etc.). - Convenience helpers for tool names and response types.
- Published as ES modules with type definitions.
Installation
npm install exe-browser-sharedUsage
import {
TOOL_NAMES,
CommandPayloadMap,
CommandResultMap,
} from "exe-browser-shared";
// Example: strongly-typed payload for browser_click
const payload: CommandPayloadMap["click"] = {
selector: "button.submit",
description: "Submit order",
};
console.log(TOOL_NAMES.CLICK); // "browser_click"Exports
CommandPayloadMap/CommandResultMap– payload and result shapes for each exe-browser tool.CommandName/CommandPayload<K>/CommandResult<K>– generics for building typed helpers.TOOL_NAMES– constant list of tool identifiers exposed by the server.ToolResponse– standard response wrapper used by the CLI.
See the monorepo documentation for the full list of tools and usage examples.
