preview-reader-mcp-tools
v1.0.0
Published
Shared MCP tool registry for sielay: one definition of every tool, mounted by the stdio server (preview-reader-mcp) and by the remote /mcp endpoint
Maintainers
Readme
preview-reader-mcp-tools
The shared MCP tool registry for sielay: every tool is defined once here and mounted by both the stdio server (preview-reader-mcp) and the portal's remote /mcp endpoint.
import { McpServer } from '@modelcontextprotocol/server'
import { registerAllTools, SERVER_INSTRUCTIONS, TOOL_NAMES } from 'preview-reader-mcp-tools'
const server = new McpServer({ name: 'preview-reader', version: '2.0.0' }, { instructions: SERVER_INSTRUCTIONS })
registerAllTools(server, api) // api = { get, post, put, patch, del, upload } → see src/api-adapter-interface.js15 tools: 12 file/project tools (preview_*) and 3 COMMS mailbox tools (comms_post, comms_pending, comms_read). The legacy 12 keep their v1 wire contract (test/fixtures/tools-list.v1.json). MIT.
