JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 66
  • Score
    100M100P100Q77226F
  • License MIT

MCP bridge for exposing askable web context packets to agents

Package Exports

  • @askable-ui/mcp

Readme

@askable-ui/mcp

MCP bridge for exposing structured web context packets to AI agents.

Host applications provide a context provider. The package registers MCP tools that return the current packet, the packet schema, and a prompt-ready text rendering.

import { createAskableMcpServer } from '@askable-ui/mcp';

const server = createAskableMcpServer({
  provider: {
    getContext: () => ctx.toContextPacket({ history: 3, includeViewport: true }),
  },
});

Transports are intentionally left to the host app so the same server factory can be used with stdio, Streamable HTTP, or an embedded web runtime.