@nopilot/mcp-server-common
v0.1.0
Published
Shared runner for local-first MCP servers: stdio + stateless Streamable HTTP transports built on the official MCP TypeScript SDK.
Maintainers
Readme
@nopilot/mcp-server-common
Shared runner for local-first MCP servers, used across the temporal/tabular/schema/media-meta
tool families: registers tools on the official MCP TypeScript SDK McpServer and serves
them over stdio or stateless Streamable HTTP (--transport http).
import { runServer, isMainEntry } from '@nopilot/mcp-server-common';
if (isMainEntry(import.meta.url)) {
runServer({
name: 'my-mcp',
version: '1.0.0',
defaultPort: 9400,
jsonLimit: '16mb', // optional, default '4mb'
register: (server) => registerMyTools(server),
});
}Runtime deps: @modelcontextprotocol/sdk, express, zod (all MIT).
MIT license. Source lives in the temporal-tools
monorepo at packages/server-common.
