@axiom-lattice/pg-stores 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +9 -0
- package/dist/index.d.mts +101 -3
- package/dist/index.d.ts +101 -3
- package/dist/index.js +370 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +368 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +7 -0
- package/src/migrations/mcp_server_config_migrations.ts +55 -0
- package/src/stores/PostgreSQLMcpServerConfigStore.ts +480 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/pg-stores@1.0.
|
|
2
|
+
> @axiom-lattice/pg-stores@1.0.20 build /home/runner/work/agentic/agentic/packages/pg-stores
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2020
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
12
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
15
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m104.07 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m197.62 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 240ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m106.73 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m201.23 KB[39m
|
|
16
16
|
[32mCJS[39m ⚡️ Build success in 264ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 12365ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m29.57 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m29.57 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PoolConfig, PoolClient, Pool } from 'pg';
|
|
2
|
-
import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, SkillStore, Skill, CreateSkillRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, Project, CreateProjectRequest, UpdateProjectRequest, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest } from '@axiom-lattice/protocols';
|
|
3
|
-
export { Assistant, AssistantStore, CreateAssistantRequest, CreateDatabaseConfigRequest, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateDatabaseConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
|
|
2
|
+
import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, SkillStore, Skill, CreateSkillRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, McpServerConfigStore, McpServerConfigEntry, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, Project, CreateProjectRequest, UpdateProjectRequest, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest } from '@axiom-lattice/protocols';
|
|
3
|
+
export { Assistant, AssistantStore, CreateAssistantRequest, CreateDatabaseConfigRequest, CreateMcpServerConfigRequest, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, McpServerConfigEntry, McpServerConfigStore, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateDatabaseConfigRequest, UpdateMcpServerConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* PostgreSQL implementation of ThreadStore
|
|
@@ -525,6 +525,95 @@ declare class PostgreSQLMetricsServerConfigStore implements MetricsServerConfigS
|
|
|
525
525
|
private encryptSecretsInConfig;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
+
/**
|
|
529
|
+
* PostgreSQL implementation of McpServerConfigStore
|
|
530
|
+
*/
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* PostgreSQL McpServerConfigStore options
|
|
534
|
+
*/
|
|
535
|
+
interface PostgreSQLMcpServerConfigStoreOptions {
|
|
536
|
+
/**
|
|
537
|
+
* PostgreSQL connection pool configuration
|
|
538
|
+
* Can be a connection string or PoolConfig object
|
|
539
|
+
*/
|
|
540
|
+
poolConfig: string | PoolConfig;
|
|
541
|
+
/**
|
|
542
|
+
* Whether to run migrations automatically on initialization
|
|
543
|
+
* @default true
|
|
544
|
+
*/
|
|
545
|
+
autoMigrate?: boolean;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* PostgreSQL implementation of McpServerConfigStore
|
|
549
|
+
*
|
|
550
|
+
* Features:
|
|
551
|
+
* - Multi-tenant isolation via tenant_id
|
|
552
|
+
* - Automatic env encryption/decryption
|
|
553
|
+
* - Unique constraint on (tenant_id, key)
|
|
554
|
+
*/
|
|
555
|
+
declare class PostgreSQLMcpServerConfigStore implements McpServerConfigStore {
|
|
556
|
+
private pool;
|
|
557
|
+
private migrationManager;
|
|
558
|
+
private initialized;
|
|
559
|
+
private initPromise;
|
|
560
|
+
constructor(options: PostgreSQLMcpServerConfigStoreOptions);
|
|
561
|
+
/**
|
|
562
|
+
* Initialize the store and run migrations
|
|
563
|
+
* Uses a promise-based lock to prevent concurrent initialization
|
|
564
|
+
*/
|
|
565
|
+
initialize(): Promise<void>;
|
|
566
|
+
/**
|
|
567
|
+
* Get all MCP server configurations for a tenant
|
|
568
|
+
*/
|
|
569
|
+
getAllConfigs(tenantId: string): Promise<McpServerConfigEntry[]>;
|
|
570
|
+
/**
|
|
571
|
+
* Get all MCP server configurations across all tenants
|
|
572
|
+
*/
|
|
573
|
+
getAllConfigsWithoutTenant(): Promise<McpServerConfigEntry[]>;
|
|
574
|
+
/**
|
|
575
|
+
* Get MCP server configuration by ID
|
|
576
|
+
*/
|
|
577
|
+
getConfigById(tenantId: string, id: string): Promise<McpServerConfigEntry | null>;
|
|
578
|
+
/**
|
|
579
|
+
* Get MCP server configuration by business key
|
|
580
|
+
*/
|
|
581
|
+
getConfigByKey(tenantId: string, key: string): Promise<McpServerConfigEntry | null>;
|
|
582
|
+
/**
|
|
583
|
+
* Create a new MCP server configuration
|
|
584
|
+
*/
|
|
585
|
+
createConfig(tenantId: string, id: string, data: CreateMcpServerConfigRequest): Promise<McpServerConfigEntry>;
|
|
586
|
+
/**
|
|
587
|
+
* Update an existing MCP server configuration
|
|
588
|
+
*/
|
|
589
|
+
updateConfig(tenantId: string, id: string, updates: Partial<UpdateMcpServerConfigRequest>): Promise<McpServerConfigEntry | null>;
|
|
590
|
+
/**
|
|
591
|
+
* Delete a MCP server configuration by ID
|
|
592
|
+
*/
|
|
593
|
+
deleteConfig(tenantId: string, id: string): Promise<boolean>;
|
|
594
|
+
/**
|
|
595
|
+
* Check if configuration exists
|
|
596
|
+
*/
|
|
597
|
+
hasConfig(tenantId: string, id: string): Promise<boolean>;
|
|
598
|
+
/**
|
|
599
|
+
* Dispose resources and close the connection pool
|
|
600
|
+
*/
|
|
601
|
+
dispose(): Promise<void>;
|
|
602
|
+
/**
|
|
603
|
+
* Ensure store is initialized
|
|
604
|
+
*/
|
|
605
|
+
private ensureInitialized;
|
|
606
|
+
/**
|
|
607
|
+
* Map database row to McpServerConfigEntry object
|
|
608
|
+
* Automatically decrypts env values if present
|
|
609
|
+
*/
|
|
610
|
+
private mapRowToEntry;
|
|
611
|
+
/**
|
|
612
|
+
* Encrypt env values in config before storing
|
|
613
|
+
*/
|
|
614
|
+
private encryptEnvInConfig;
|
|
615
|
+
}
|
|
616
|
+
|
|
528
617
|
/**
|
|
529
618
|
* PostgreSQL implementation of WorkspaceStore
|
|
530
619
|
*/
|
|
@@ -871,6 +960,15 @@ declare const createDatabaseConfigsTable: Migration;
|
|
|
871
960
|
*/
|
|
872
961
|
declare const createMetricsConfigsTable: Migration;
|
|
873
962
|
|
|
963
|
+
/**
|
|
964
|
+
* MCP Server configuration table migrations
|
|
965
|
+
*/
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Migration: Create MCP server configs table
|
|
969
|
+
*/
|
|
970
|
+
declare const createMcpServerConfigsTable: Migration;
|
|
971
|
+
|
|
874
972
|
/**
|
|
875
973
|
* Workspace table migrations
|
|
876
974
|
*/
|
|
@@ -908,4 +1006,4 @@ declare const createUsersTable: Migration;
|
|
|
908
1006
|
*/
|
|
909
1007
|
declare const createTenantsTable: Migration;
|
|
910
1008
|
|
|
911
|
-
export { type Migration, MigrationManager, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, createAssistantsTable, createDatabaseConfigsTable, createMetricsConfigsTable, createProjectsTable, createScheduledTasksTable, createSkillsTable, createTenantsTable, createThreadsTable, createUsersTable, createWorkspacesTable };
|
|
1009
|
+
export { type Migration, MigrationManager, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLMcpServerConfigStore, type PostgreSQLMcpServerConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, createAssistantsTable, createDatabaseConfigsTable, createMcpServerConfigsTable, createMetricsConfigsTable, createProjectsTable, createScheduledTasksTable, createSkillsTable, createTenantsTable, createThreadsTable, createUsersTable, createWorkspacesTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PoolConfig, PoolClient, Pool } from 'pg';
|
|
2
|
-
import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, SkillStore, Skill, CreateSkillRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, Project, CreateProjectRequest, UpdateProjectRequest, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest } from '@axiom-lattice/protocols';
|
|
3
|
-
export { Assistant, AssistantStore, CreateAssistantRequest, CreateDatabaseConfigRequest, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateDatabaseConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
|
|
2
|
+
import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, SkillStore, Skill, CreateSkillRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, McpServerConfigStore, McpServerConfigEntry, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, Project, CreateProjectRequest, UpdateProjectRequest, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest } from '@axiom-lattice/protocols';
|
|
3
|
+
export { Assistant, AssistantStore, CreateAssistantRequest, CreateDatabaseConfigRequest, CreateMcpServerConfigRequest, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, McpServerConfigEntry, McpServerConfigStore, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateDatabaseConfigRequest, UpdateMcpServerConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* PostgreSQL implementation of ThreadStore
|
|
@@ -525,6 +525,95 @@ declare class PostgreSQLMetricsServerConfigStore implements MetricsServerConfigS
|
|
|
525
525
|
private encryptSecretsInConfig;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
+
/**
|
|
529
|
+
* PostgreSQL implementation of McpServerConfigStore
|
|
530
|
+
*/
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* PostgreSQL McpServerConfigStore options
|
|
534
|
+
*/
|
|
535
|
+
interface PostgreSQLMcpServerConfigStoreOptions {
|
|
536
|
+
/**
|
|
537
|
+
* PostgreSQL connection pool configuration
|
|
538
|
+
* Can be a connection string or PoolConfig object
|
|
539
|
+
*/
|
|
540
|
+
poolConfig: string | PoolConfig;
|
|
541
|
+
/**
|
|
542
|
+
* Whether to run migrations automatically on initialization
|
|
543
|
+
* @default true
|
|
544
|
+
*/
|
|
545
|
+
autoMigrate?: boolean;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* PostgreSQL implementation of McpServerConfigStore
|
|
549
|
+
*
|
|
550
|
+
* Features:
|
|
551
|
+
* - Multi-tenant isolation via tenant_id
|
|
552
|
+
* - Automatic env encryption/decryption
|
|
553
|
+
* - Unique constraint on (tenant_id, key)
|
|
554
|
+
*/
|
|
555
|
+
declare class PostgreSQLMcpServerConfigStore implements McpServerConfigStore {
|
|
556
|
+
private pool;
|
|
557
|
+
private migrationManager;
|
|
558
|
+
private initialized;
|
|
559
|
+
private initPromise;
|
|
560
|
+
constructor(options: PostgreSQLMcpServerConfigStoreOptions);
|
|
561
|
+
/**
|
|
562
|
+
* Initialize the store and run migrations
|
|
563
|
+
* Uses a promise-based lock to prevent concurrent initialization
|
|
564
|
+
*/
|
|
565
|
+
initialize(): Promise<void>;
|
|
566
|
+
/**
|
|
567
|
+
* Get all MCP server configurations for a tenant
|
|
568
|
+
*/
|
|
569
|
+
getAllConfigs(tenantId: string): Promise<McpServerConfigEntry[]>;
|
|
570
|
+
/**
|
|
571
|
+
* Get all MCP server configurations across all tenants
|
|
572
|
+
*/
|
|
573
|
+
getAllConfigsWithoutTenant(): Promise<McpServerConfigEntry[]>;
|
|
574
|
+
/**
|
|
575
|
+
* Get MCP server configuration by ID
|
|
576
|
+
*/
|
|
577
|
+
getConfigById(tenantId: string, id: string): Promise<McpServerConfigEntry | null>;
|
|
578
|
+
/**
|
|
579
|
+
* Get MCP server configuration by business key
|
|
580
|
+
*/
|
|
581
|
+
getConfigByKey(tenantId: string, key: string): Promise<McpServerConfigEntry | null>;
|
|
582
|
+
/**
|
|
583
|
+
* Create a new MCP server configuration
|
|
584
|
+
*/
|
|
585
|
+
createConfig(tenantId: string, id: string, data: CreateMcpServerConfigRequest): Promise<McpServerConfigEntry>;
|
|
586
|
+
/**
|
|
587
|
+
* Update an existing MCP server configuration
|
|
588
|
+
*/
|
|
589
|
+
updateConfig(tenantId: string, id: string, updates: Partial<UpdateMcpServerConfigRequest>): Promise<McpServerConfigEntry | null>;
|
|
590
|
+
/**
|
|
591
|
+
* Delete a MCP server configuration by ID
|
|
592
|
+
*/
|
|
593
|
+
deleteConfig(tenantId: string, id: string): Promise<boolean>;
|
|
594
|
+
/**
|
|
595
|
+
* Check if configuration exists
|
|
596
|
+
*/
|
|
597
|
+
hasConfig(tenantId: string, id: string): Promise<boolean>;
|
|
598
|
+
/**
|
|
599
|
+
* Dispose resources and close the connection pool
|
|
600
|
+
*/
|
|
601
|
+
dispose(): Promise<void>;
|
|
602
|
+
/**
|
|
603
|
+
* Ensure store is initialized
|
|
604
|
+
*/
|
|
605
|
+
private ensureInitialized;
|
|
606
|
+
/**
|
|
607
|
+
* Map database row to McpServerConfigEntry object
|
|
608
|
+
* Automatically decrypts env values if present
|
|
609
|
+
*/
|
|
610
|
+
private mapRowToEntry;
|
|
611
|
+
/**
|
|
612
|
+
* Encrypt env values in config before storing
|
|
613
|
+
*/
|
|
614
|
+
private encryptEnvInConfig;
|
|
615
|
+
}
|
|
616
|
+
|
|
528
617
|
/**
|
|
529
618
|
* PostgreSQL implementation of WorkspaceStore
|
|
530
619
|
*/
|
|
@@ -871,6 +960,15 @@ declare const createDatabaseConfigsTable: Migration;
|
|
|
871
960
|
*/
|
|
872
961
|
declare const createMetricsConfigsTable: Migration;
|
|
873
962
|
|
|
963
|
+
/**
|
|
964
|
+
* MCP Server configuration table migrations
|
|
965
|
+
*/
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Migration: Create MCP server configs table
|
|
969
|
+
*/
|
|
970
|
+
declare const createMcpServerConfigsTable: Migration;
|
|
971
|
+
|
|
874
972
|
/**
|
|
875
973
|
* Workspace table migrations
|
|
876
974
|
*/
|
|
@@ -908,4 +1006,4 @@ declare const createUsersTable: Migration;
|
|
|
908
1006
|
*/
|
|
909
1007
|
declare const createTenantsTable: Migration;
|
|
910
1008
|
|
|
911
|
-
export { type Migration, MigrationManager, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, createAssistantsTable, createDatabaseConfigsTable, createMetricsConfigsTable, createProjectsTable, createScheduledTasksTable, createSkillsTable, createTenantsTable, createThreadsTable, createUsersTable, createWorkspacesTable };
|
|
1009
|
+
export { type Migration, MigrationManager, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLMcpServerConfigStore, type PostgreSQLMcpServerConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, createAssistantsTable, createDatabaseConfigsTable, createMcpServerConfigsTable, createMetricsConfigsTable, createProjectsTable, createScheduledTasksTable, createSkillsTable, createTenantsTable, createThreadsTable, createUsersTable, createWorkspacesTable };
|