- Prefer private Unix sockets with TCP fallback for local MCP clients - Unify HTTP and WebSocket lifecycle, authentication, and cleanup - Discover transport details from an owner-only runtime file
35 lines
716 B
TypeScript
35 lines
716 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: './src/index.ts',
|
|
server: './src/server.ts',
|
|
stdio: './src/stdio.ts',
|
|
transport: './src/transport/paths.ts',
|
|
discovery: './src/transport/discovery.ts'
|
|
},
|
|
platform: 'node',
|
|
format: ['esm'],
|
|
dts: true,
|
|
sourcemap: true,
|
|
clean: true,
|
|
outDir: './dist',
|
|
treeshake: false,
|
|
deps: {
|
|
neverBundle: [
|
|
'@hono/node-server',
|
|
'@modelcontextprotocol/sdk',
|
|
'@open-pencil/core',
|
|
/^@open-pencil\/core\//,
|
|
'hono',
|
|
/^hono\//,
|
|
'package-manager-detector',
|
|
/^package-manager-detector\//,
|
|
'ws',
|
|
'zod',
|
|
/^node:/
|
|
],
|
|
onlyBundle: false
|
|
}
|
|
})
|