mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-04-19 03:51:31 +00:00
Remove legacy backend routes that no longer have frontend or internal callers, including the old Claude/Codex MCP APIs, unused Cursor and Codex helper endpoints, stale TaskMaster detection/next/initialize routes, and unused command/project helpers. This reduces duplicated MCP behavior now handled by the provider-based MCP API, shrinks the exposed backend surface, and removes probe/service code that only existed for deleted endpoints. Add an MCP settings API audit document to capture the route-usage analysis and explain why the legacy MCP endpoints were considered safe to remove.
32 lines
848 B
JavaScript
32 lines
848 B
JavaScript
/**
|
|
* MCP UTILITIES API ROUTES
|
|
* ========================
|
|
*
|
|
* API endpoints for MCP server detection and configuration utilities.
|
|
* These endpoints expose centralized MCP detection functionality.
|
|
*/
|
|
|
|
import express from 'express';
|
|
import { detectTaskMasterMCPServer } from '../utils/mcp-detector.js';
|
|
|
|
const router = express.Router();
|
|
|
|
/**
|
|
* GET /api/mcp-utils/taskmaster-server
|
|
* Check if TaskMaster MCP server is configured
|
|
*/
|
|
router.get('/taskmaster-server', async (req, res) => {
|
|
try {
|
|
const result = await detectTaskMasterMCPServer();
|
|
res.json(result);
|
|
} catch (error) {
|
|
console.error('TaskMaster MCP detection error:', error);
|
|
res.status(500).json({
|
|
error: 'Failed to detect TaskMaster MCP server',
|
|
message: error.message
|
|
});
|
|
}
|
|
});
|
|
|
|
export default router;
|