UNPKG

taiga-mcp-server

Version:

Full-featured MCP server for Taiga project management with advanced sprint and issue tracking. Based on mcpTAIGA by adriapedralbes, enhanced with substantial modifications. Developed collaboratively with Claude Code (AI-assisted development).

54 lines (44 loc) โ€ข 1.83 kB
#!/usr/bin/env node /** * Quick Test - Simplified test that doesn't use child process */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { registerAllTools } from '../src/tools/index.js'; import { SERVER_INFO } from '../src/constants.js'; async function quickTest() { console.log('๐Ÿงช Quick MCP Server Test\n'); try { // Test 1: Server Creation console.log('๐Ÿ“ Test 1: Creating MCP server...'); const server = new McpServer({ name: SERVER_INFO.name, version: SERVER_INFO.version, }); console.log('โœ… Server created successfully'); // Test 2: Tool Registration console.log('๐Ÿ“ Test 2: Registering tools...'); registerAllTools(server); console.log('โœ… Tools registered successfully'); // Test 3: Check internal state console.log('๐Ÿ“ Test 3: Checking server state...'); console.log(` Server name: ${server._name || 'undefined'}`); console.log(` Expected: ${SERVER_INFO.name}`); console.log(` Server version: ${server._version || 'undefined'}`); console.log(` Expected: ${SERVER_INFO.version}`); console.log('โœ… Server state checked (internal properties may vary by SDK version)'); // Test 4: Environment check console.log('๐Ÿ“ Test 4: Checking environment...'); const hasEnvFile = process.env.TAIGA_API_URL || process.env.TAIGA_USERNAME; if (hasEnvFile) { console.log('โœ… Environment variables detected'); } else { console.log('โš ๏ธ No environment variables found (this is OK for testing)'); } console.log('\n๐ŸŽ‰ All quick tests passed!'); console.log('๐Ÿ’ก For full testing with actual MCP connections, run: npm run test:basic'); } catch (error) { console.error('โŒ Test failed:', error.message); process.exit(1); } } quickTest();