0004_mcp_servers.sql 995 B

123456789101112131415161718192021222324
  1. CREATE TABLE `mcp_servers` (
  2. `id` text PRIMARY KEY NOT NULL,
  3. `name` text NOT NULL,
  4. `title` text NOT NULL,
  5. `description` text DEFAULT '' NOT NULL,
  6. `transport` text NOT NULL,
  7. `enabled` integer DEFAULT true NOT NULL,
  8. `url` text DEFAULT '' NOT NULL,
  9. `headers` text DEFAULT '{}' NOT NULL,
  10. `command` text DEFAULT '' NOT NULL,
  11. `args` text DEFAULT '[]' NOT NULL,
  12. `env` text DEFAULT '{}' NOT NULL,
  13. `allow_network` integer DEFAULT false NOT NULL,
  14. `read_paths` text DEFAULT '[]' NOT NULL,
  15. `write_paths` text DEFAULT '[]' NOT NULL,
  16. `tool_policies` text DEFAULT '{}' NOT NULL,
  17. `tools_cache` text DEFAULT '[]' NOT NULL,
  18. `tools_updated_at` text,
  19. `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')) NOT NULL,
  20. `updated_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')) NOT NULL
  21. );
  22. --> statement-breakpoint
  23. CREATE UNIQUE INDEX `mcp_servers_name_unique` ON `mcp_servers` (`name`);--> statement-breakpoint
  24. ALTER TABLE `profiles` ADD `mcp_server_ids` text DEFAULT '[]' NOT NULL;