Skip to main content
Glama
DEPLOYMENT-READY.md4.02 kB
# MCP Server - Deployment Ready Status ## ✅ What's Been Fixed 1. **Build Configuration** - Simplified `tsup.config.ts` - removed problematic DTS generation - Added proper external dependencies configuration - Build now completes successfully without TypeScript errors 2. **Package.json Updates** - Added `start` script: `node dist/index.js` (production) - Added `start:dev` script: `tsx src/index.ts` (development) - Updated `dev` script: `tsx watch src/index.ts` (hot reload) - Added `tsx` as dev dependency 3. **Import Path Fix** - Fixed incorrect import path in `src/index.ts` - Changed from `/src/` to `/dist/` for build compatibility 4. **Documentation** - Created comprehensive `DEPLOYMENT.md` with: - Production and development deployment instructions - Claude Desktop configuration examples - Environment variable documentation - Troubleshooting guide - Performance expectations ## ⚠️ Remaining Steps Before Deployment ### 1. Build Workspace Dependencies The MCP server depends on several workspace packages that need to be built first: ```bash # From repository root pnpm build --filter @snapback/contracts pnpm build --filter @snapback/events pnpm build --filter @snapback/core pnpm build --filter @snapback/sdk pnpm build --filter @snapback/mcp-server ``` **Current Issue:** Some workspace packages have build errors: - `@snapback/infrastructure` - has TypeScript errors related to events - `@snapback/contracts` - OpenAPI generation error with `SaveAttemptEvent` ### 2. Fix Workspace Package Build Issues **Option A (Quick Fix):** Skip building infrastructure if not needed by MCP server **Option B (Complete Fix):** Fix the TypeScript/OpenAPI errors in dependencies ### 3. Test Startup Once dependencies are built, test the server: ```bash # Production mode cd apps/mcp-server pnpm start # Should output: "SnapBack MCP Server started" to stderr ``` ## 🚀 Quick Deployment (Once Dependencies Built) ### For Claude Desktop (Production) 1. Build the server: ```bash pnpm --filter @snapback/mcp-server build ``` 2. Add to `claude_desktop_config.json`: ```json { "mcpServers": { "snapback": { "command": "node", "args": [ "/ABSOLUTE_PATH/SnapBack-Site/apps/mcp-server/dist/index.js" ], "env": { "SNAPBACK_API_KEY": "your-key-here" } } } } ``` 3. Restart Claude Desktop ### For Cursor/Other MCP Clients The server uses stdio transport and follows MCP specification, so it should work with any MCP-compatible client. ## 📋 Deployment Checklist - [x] Simplify build configuration - [x] Fix TypeScript build errors in MCP server - [x] Add deployment scripts to package.json - [x] Create deployment documentation - [x] Test build process (succeeds) - [ ] Build all workspace dependencies - [ ] Test server startup - [ ] Test with Claude Desktop - [ ] Verify all MCP tools are working ## 🔧 Alternative: Development Mode Deployment If you want to deploy quickly without fixing build issues, you can use development mode: ```json { "mcpServers": { "snapback": { "command": "npx", "args": [ "-y", "tsx", "/ABSOLUTE_PATH/SnapBack-Site/apps/mcp-server/src/index.ts" ], "env": { "SNAPBACK_API_KEY": "your-key-here" } } } } ``` This runs the TypeScript source directly (requires tsx installed). ## 📊 Current Status **Build Status:** ✅ MCP server builds successfully **Dependencies:** ⚠️ Workspace packages need building **Runtime Test:** ⏳ Pending dependency builds **Documentation:** ✅ Complete **Ready for Deployment:** 🟡 Almost (need to build dependencies) ## Next Steps 1. Fix or skip infrastructure package build 2. Build workspace dependencies successfully 3. Test MCP server startup 4. Deploy to Claude Desktop 5. Verify tools work end-to-end --- The MCP server code itself is deployment-ready. The only blocker is building the workspace dependencies it relies on.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/snapback-dev/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server