AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { MigrationInterface, QueryRunner } from 'typeorm'
export class AddEnabledToolsToMcpServer1772027509096 implements MigrationInterface {
name = 'AddEnabledToolsToMcpServer1772027509096'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "mcp_server"
ADD "enabledTools" jsonb
`)
// Existing rows will have enabledTools = null.
// The runtime treats null as "all tools enabled" for backward compatibility
// (see mcp-service.ts: mcp.enabledTools ?? ALL_CONTROLLABLE_TOOL_NAMES).
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "mcp_server" DROP COLUMN "enabledTools"
`)
}
}