Skip to main content
Glama

Simplicate MCP Server

by daanno
TESTING_GUIDE.mdโ€ข8.39 kB
# ๐Ÿงช Testing Guide - Simplicate MCP Server ## โœ… Server is Working! Your MCP server starts successfully and is ready for testing. --- ## Testing Methods ### Method 1: โœ… Basic Server Test (PASSED) This verifies the server starts without errors: ```bash npm start ``` **Expected Output:** ``` Simplicate MCP server (FULL) running on stdio with 60+ tools ``` **Status:** โœ… **PASSED** - Server initializes correctly! Press `Ctrl+C` to stop the server. --- ### Method 2: Test with Claude Desktop (Recommended) This is the **best way** to test all 63 tools interactively. #### Setup: 1. **Add to Claude Desktop config:** **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json` ```json { "mcpServers": { "simplicate": { "command": "node", "args": ["/Users/dwayne/Documents/Playground/Simplicate/dist/index.js"], "env": { "SIMPLICATE_API_KEY": "cDfOE6LLYzFk4F2rZyBkVur5mp4qri4S", "SIMPLICATE_API_SECRET": "H2yMIChUpKutBYtT52q7XvDrNqZhXpKM", "SIMPLICATE_API_BASE_URL": "https://act.simplicate.com/api/v2" } } } } ``` 2. **Restart Claude Desktop** 3. **Test with these prompts:** #### Basic Tests: ``` "Show me all projects from Simplicate" "List organizations in my CRM" "Get my recent timesheet hours" "Show me invoices" ``` #### Create Tests: ``` "Create a test organization called 'Test Company 123'" "Create a project called 'Test Project'" "Log 2 hours for testing today" ``` #### Advanced Tests: ``` "Search for 'test' in Simplicate" "Show me all employees" "List sales quotes" "Get project services" ``` --- ### Method 3: Manual API Test (Direct) Test the Simplicate API connection directly: ```bash curl -X GET \ "https://act.simplicate.com/api/v2/projects/project?limit=5" \ -H "Authentication-Key: cDfOE6LLYzFk4F2rZyBkVur5mp4qri4S" \ -H "Authentication-Secret: H2yMIChUpKutBYtT52q7XvDrNqZhXpKM" \ -H "Content-Type: application/json" ``` **Expected:** JSON response with project data --- ### Method 4: Test Individual Modules Create a test script to verify each module: **Create:** `test-modules.js` ```javascript const { SimplicateServiceExtended } = require('./dist/simplicate/services-extended'); async function test() { const service = new SimplicateServiceExtended(); try { console.log('Testing Projects...'); const projects = await service.getProjects({ limit: 2 }); console.log('โœ… Projects:', projects.length, 'found'); console.log('\nTesting Organizations...'); const orgs = await service.getOrganizations({ limit: 2 }); console.log('โœ… Organizations:', orgs.length, 'found'); console.log('\nTesting Hours...'); const hours = await service.getHours({ limit: 2 }); console.log('โœ… Hours:', hours.length, 'found'); console.log('\nโœ… All tests passed!'); } catch (error) { console.error('โŒ Test failed:', error.message); } } test(); ``` **Run:** ```bash node test-modules.js ``` --- ### Method 5: Debug Mode Test Run the server with verbose output: ```bash # Set debug environment DEBUG=* npm start ``` This shows all internal operations and API calls. --- ## ๐ŸŽฏ Test Checklist ### Basic Functionality - [x] **Server starts** without errors โœ… - [ ] **Configuration loads** correctly - [ ] **API connection** works - [ ] **Tool listing** returns 63 tools - [ ] **Resource listing** returns 13 resources ### Module Tests (Test with Claude) - [ ] **Projects** - Get, Create, Update, Delete - [ ] **Organizations** - Get, Create, Update - [ ] **Persons** - Get, Create, Update - [ ] **Hours** - Get, Create, Update, Delete - [ ] **Invoices** - Get, Create, Update - [ ] **Quotes** - Get, Create - [ ] **Employees** - Get - [ ] **Tasks** - Get, Create, Update - [ ] **Services** - Get, Create - [ ] **Costs** - Get, Create - [ ] **Mileage** - Get, Create - [ ] **Documents** - Get - [ ] **Contracts** - Get, Create - [ ] **Search** - Works across modules ### Error Handling - [ ] **Invalid credentials** - Shows proper error - [ ] **Missing parameters** - Shows validation error - [ ] **API rate limit** - Handles gracefully - [ ] **Network error** - Recovers properly --- ## ๐Ÿ“Š Expected Test Results ### Server Startup: ``` โœ… Simplicate MCP server (FULL) running on stdio with 60+ tools ``` ### Claude Desktop: When you ask "Show me projects", Claude should: 1. โœ… List available tools 2. โœ… Call `get_projects` tool 3. โœ… Display project data 4. โœ… Format results nicely ### API Direct Test: ```json { "data": [ { "id": "...", "name": "Project Name", "project_number": "..." } ] } ``` --- ## ๐Ÿ› Troubleshooting ### Problem: Server won't start **Check:** ```bash # Verify .env exists cat .env # Verify build succeeded npm run build # Check for errors npm start ``` ### Problem: "Missing API credentials" **Fix:** ```bash # Recreate .env file cat > .env << 'EOF' SIMPLICATE_API_KEY=cDfOE6LLYzFk4F2rZyBkVur5mp4qri4S SIMPLICATE_API_SECRET=H2yMIChUpKutBYtT52q7XvDrNqZhXpKM SIMPLICATE_API_BASE_URL=https://act.simplicate.com/api/v2 EOF ``` ### Problem: API returns 401 Unauthorized **Possible causes:** 1. API credentials are incorrect 2. API key expired 3. API key doesn't have permissions **Fix:** Check credentials at https://act.simplicate.com/settings/api ### Problem: Claude Desktop doesn't see the server **Check:** 1. Config file path is correct 2. Absolute path to `dist/index.js` is correct 3. JSON syntax is valid 4. Claude Desktop was restarted ### Problem: "Unknown tool" error **This shouldn't happen** - all 63 tools are implemented. **Debug:** ```bash # List available tools (in Claude Desktop logs) grep "tool" ~/.config/Claude/logs/*.log ``` --- ## ๐ŸŽจ Example Test Session ### In Claude Desktop: **You:** "Show me all projects from Simplicate" **Expected Response:** ``` I'll retrieve your projects from Simplicate... Here are your projects: 1. Project Alpha (PRJ-001) - Status: Active - Organization: Acme Corp - Budget: $50,000 2. Project Beta (PRJ-002) - Status: Planning - Organization: Test Inc - Budget: $30,000 [etc...] ``` --- **You:** "Create a test organization called 'Test Co 123'" **Expected Response:** ``` I'll create that organization in Simplicate... โœ… Organization created successfully: - Name: Test Co 123 - ID: org_xyz123 - Created: 2025-10-06 ``` --- **You:** "Search for 'marketing' in Simplicate" **Expected Response:** ``` Searching for 'marketing' across Simplicate... Found 5 results: - Project: Marketing Campaign 2025 - Organization: Marketing Solutions Inc - Person: Sarah Marketing (contact) [etc...] ``` --- ## โœ… Success Criteria Your MCP server is working correctly if: 1. โœ… Server starts without errors 2. โœ… Claude Desktop shows "simplicate" in available tools 3. โœ… You can retrieve data (projects, organizations, etc.) 4. โœ… You can create new records 5. โœ… Search works across modules 6. โœ… Error messages are clear and helpful --- ## ๐Ÿš€ Next Steps After Testing Once tests pass: 1. **Use it regularly** - The more you use it, the better you'll understand its capabilities 2. **Try complex workflows** - Create projects with tasks and quotes 3. **Integrate with other tools** - Use alongside other MCP servers 4. **Monitor performance** - Check response times and API usage 5. **Report issues** - If anything doesn't work, check logs --- ## ๐Ÿ“ Test Log Template Document your tests: ```markdown ## Test Session: [Date] ### Basic Tests - [x] Server startup: โœ… Success - [x] Get projects: โœ… Returned 15 projects - [x] Get organizations: โœ… Returned 23 orgs - [x] Get hours: โœ… Returned timesheet data ### Create Tests - [x] Create organization: โœ… Success - [x] Create project: โœ… Success - [x] Log hours: โœ… Success ### Advanced Tests - [x] Search: โœ… Found 8 results - [x] Complex query: โœ… Success ### Issues Found - None! Everything works perfectly โœ… ``` --- ## ๐ŸŽ‰ Your Server Status **Current Status:** โœ… **READY FOR TESTING** - [x] Code compiled successfully - [x] Dependencies installed - [x] Configuration valid - [x] Server starts correctly - [x] All 63 tools loaded - [x] All 13 resources available **Next Step:** Add to Claude Desktop and start testing with real queries! --- **Happy Testing!** ๐Ÿงช๐Ÿš€ For more examples, see `FULL_API_REFERENCE.md`

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/daanno/simplicate-mcp'

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