debug_test
Verify the MCP server connection and functionality to ensure proper integration with FluentBoards project management system.
Instructions
Test if MCP server is working
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/debug.ts:8-29 (handler)The inline async handler function that implements the core logic of the "debug_test" tool. It attempts an API call to verify connectivity, constructs a status result, and returns a formatted response.server.tool("debug_test", "Test if MCP server is working", {}, async () => { try { // Try to make a simple API call to test connectivity const response = await api.get("/projects/list-of-boards"); const result = { status: "success", message: "MCP server is working correctly", api_status: "connected", timestamp: new Date().toISOString(), boards_count: response.data.boards ? response.data.boards.length : 0, }; return formatResponse(result); } catch (error: any) { const result = { status: "error", message: "MCP server test failed", error: error.message, timestamp: new Date().toISOString(), }; return formatResponse(result); } });
- src/tools/debug.ts:6-30 (registration)The registerDebugTools function that registers the "debug_test" tool on the provided MCP server instance, including its schema (empty) and handler.export function registerDebugTools(server: McpServer) { // Test if MCP server is working server.tool("debug_test", "Test if MCP server is working", {}, async () => { try { // Try to make a simple API call to test connectivity const response = await api.get("/projects/list-of-boards"); const result = { status: "success", message: "MCP server is working correctly", api_status: "connected", timestamp: new Date().toISOString(), boards_count: response.data.boards ? response.data.boards.length : 0, }; return formatResponse(result); } catch (error: any) { const result = { status: "error", message: "MCP server test failed", error: error.message, timestamp: new Date().toISOString(), }; return formatResponse(result); } }); }
- src/index.ts:21-21 (registration)The call to registerDebugTools on the main MCP server instance, which triggers the registration of the "debug_test" tool.registerDebugTools(server);