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
JavaScript
/**
* 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();