import { MCP } from "./dist/mcp.js";
async function main() {
console.log("Testing MCP connection...");
try {
const mcp = new MCP();
console.log("MCP initialized.");
// Try to get available tools first
console.log("Fetching tools...");
const tools = await mcp.getAvailableTools();
console.log("Tools:", JSON.stringify(tools, null, 2));
// We can't easily test getTasks without a valid list ID.
// But if tools works, auth is likely fine.
} catch (error) {
console.error("Error:", error);
if (error.response) {
console.error("Response data:", error.response.data);
}
}
}
main();