@tech-sumit/ai-inspector-types
v0.2.0
Published
Shared TypeScript types and protocol schemas for the AI Inspector ecosystem
Maintainers
Readme
@tech-sumit/ai-inspector-types
Shared TypeScript types and protocol schemas for the AI Inspector ecosystem.
Packages that depend on this
@tech-sumit/webmcp-cdp— CDP client libraryai-inspector-extension— Chrome DevTools extension@tech-sumit/ai-inspector-server— MCP server + CLI
Installation
pnpm add @tech-sumit/ai-inspector-typesExports
Tool types
WebMCPTool— Tool definition as registered vianavigator.modelContext.registerTool()DiscoveredTool— Tool as returned bymodelContextTesting.listTools()(inputSchema is DOMString)ToolAnnotations— Metadata hints (readOnlyHint, etc.)
ToolSource interface
ToolSource— Abstraction for CDP and extension tool sourcesToolSourceConfig— Connection configuration
Events
InspectorEvent— Discriminated union of all intercepted events (tool registrations, prompt sessions, streaming, etc.)
Protocol messages
ExtToServerMessage/ServerToExtMessage— Extension <-> server WebSocket messagesContentToBackgroundMessage— Content script -> background SWBackgroundToPanelMessage/PanelToBackgroundMessage— Background <-> DevTools panel
JSON Schema
JSONSchema/JSONSchemaProperty— JSON Schema types for tool input schemas
Development
pnpm install
pnpm typecheck # tsc --noEmit
pnpm lint # eslint
pnpm build # tsup -> dist/