Skip to content

Commit c88481f

Browse files
author
Lasim
committed
feat: Implement MCP Installation Service and related components
- Added `mcpInstallationService.ts` to handle API interactions for MCP installations. - Created types for MCP installations in `mcp-installations.ts`. - Developed the add installation view with a wizard component in `add.vue`. - Implemented the main MCP server installations index view in `index.vue`. - Added view details for individual MCP servers in `view/[id].vue`. - Introduced event bus for managing installation updates across components. - Enhanced UI with loading states, error handling, and success notifications. - Re-exported relevant types in `types.ts` for better type management.
1 parent 4770298 commit c88481f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+7579
-642
lines changed

services/backend/api-spec.json

Lines changed: 665 additions & 0 deletions
Large diffs are not rendered by default.

services/backend/api-spec.yaml

Lines changed: 454 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
CREATE TABLE `mcpServerInstallations` (
2+
`id` text PRIMARY KEY NOT NULL,
3+
`team_id` text NOT NULL,
4+
`server_id` text NOT NULL,
5+
`user_id` text NOT NULL,
6+
`installation_name` text NOT NULL,
7+
`installation_type` text DEFAULT 'local' NOT NULL,
8+
`user_environment_variables` text,
9+
`created_at` integer NOT NULL,
10+
`updated_at` integer NOT NULL,
11+
`last_used_at` integer,
12+
FOREIGN KEY (`team_id`) REFERENCES `teams`(`id`) ON UPDATE no action ON DELETE cascade,
13+
FOREIGN KEY (`server_id`) REFERENCES `mcpServers`(`id`) ON UPDATE no action ON DELETE cascade,
14+
FOREIGN KEY (`user_id`) REFERENCES `authUser`(`id`) ON UPDATE no action ON DELETE no action
15+
);
16+
--> statement-breakpoint
17+
CREATE INDEX `mcp_installations_team_name_idx` ON `mcpServerInstallations` (`team_id`,`installation_name`);--> statement-breakpoint
18+
CREATE INDEX `mcp_installations_team_server_idx` ON `mcpServerInstallations` (`team_id`,`server_id`);--> statement-breakpoint
19+
CREATE INDEX `mcp_installations_user_idx` ON `mcpServerInstallations` (`user_id`);

0 commit comments

Comments
 (0)