UNPKG

pagespace-mcp

Version:

Model Context Protocol (MCP) server for PageSpace with complete workspace management, powerful search, batch operations, and AI agent capabilities. Provides external access to all core PageSpace functionality.

29 lines (24 loc) 590 B
#!/usr/bin/env node import { PageSpaceMCPServer } from './src/server.js' async function main() { try { console.error('[MCP] Initializing PageSpace MCP server...') const server = new PageSpaceMCPServer() await server.run() } catch (error) { console.error('[MCP] Fatal startup error:', error) process.exit(1) } } // Handle process termination process.on('SIGINT', async () => { process.exit(0) }) process.on('SIGTERM', async () => { process.exit(0) }) // Start the server main().catch((error) => { console.error('Fatal error:', error) process.exit(1) })