feat(mcp): enhance MCP installation with status tracking and custom configs
- Add /mcp-servers/ to .gitignore for MCP server installations - Extend mcp_installations table with status, logs, and validation fields - Refactor MCP install route to support custom configs, enable logs, and async installation - Improve MCPSyncService with promise-based syncing to prevent concurrent operations This update improves MCP management by adding robust installation tracking, custom configuration support, and better error handling for a more reliable user experience.
This commit is contained in:
1 parent
1042f2136b
commit
f19bf10ef3
35 files changed
+4743
-429
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Configurações para instalação e gerenciamento de servidores MCP
|
||||
*/
|
||||
|
||||
import path from "path";
|
||||
|
||||
export const MCP_CONFIG = {
|
||||
// Diretório base onde os servidores MCP serão instalados
|
||||
serversDir:
|
||||
process.env.MCP_SERVERS_DIR || path.join(process.cwd(), "mcp-servers"),
|
||||
|
||||
// Timeout para instalação de pacotes (5 minutos)
|
||||
installTimeout: parseInt(process.env.MCP_INSTALL_TIMEOUT || "300000", 10),
|
||||
|
||||
// Timeout para testes de servidor (10 segundos)
|
||||
testTimeout: parseInt(process.env.MCP_TEST_TIMEOUT || "10000", 10),
|
||||
|
||||
// Habilitar logs detalhados (para debug/testes)
|
||||
enableLogs: process.env.MCP_ENABLE_LOGS === "true",
|
||||
|
||||
// Diretórios por tipo de pacote
|
||||
get npmDir() {
|
||||
return path.join(this.serversDir, "npm");
|
||||
},
|
||||
|
||||
get pythonDir() {
|
||||
return path.join(this.serversDir, "python");
|
||||
},
|
||||
|
||||
get rustDir() {
|
||||
return path.join(this.serversDir, "rust");
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user