@app-vitals/agent-lib 1.147.0 → 1.148.0
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/admin-types.ts +408 -0
- package/package.json +1 -1
package/admin-types.ts
CHANGED
|
@@ -2648,6 +2648,313 @@ export interface paths {
|
|
|
2648
2648
|
};
|
|
2649
2649
|
trace?: never;
|
|
2650
2650
|
};
|
|
2651
|
+
"/agents/{id}/mcp-servers": {
|
|
2652
|
+
parameters: {
|
|
2653
|
+
query?: never;
|
|
2654
|
+
header?: never;
|
|
2655
|
+
path?: never;
|
|
2656
|
+
cookie?: never;
|
|
2657
|
+
};
|
|
2658
|
+
/**
|
|
2659
|
+
* List MCP servers
|
|
2660
|
+
* @description Returns the agent's MCP servers by name. Credential values are masked as `***`; only the credential names are returned.
|
|
2661
|
+
*/
|
|
2662
|
+
get: {
|
|
2663
|
+
parameters: {
|
|
2664
|
+
query?: never;
|
|
2665
|
+
header?: never;
|
|
2666
|
+
path: {
|
|
2667
|
+
id: string;
|
|
2668
|
+
};
|
|
2669
|
+
cookie?: never;
|
|
2670
|
+
};
|
|
2671
|
+
requestBody?: never;
|
|
2672
|
+
responses: {
|
|
2673
|
+
/** @description List of MCP servers */
|
|
2674
|
+
200: {
|
|
2675
|
+
headers: {
|
|
2676
|
+
[name: string]: unknown;
|
|
2677
|
+
};
|
|
2678
|
+
content: {
|
|
2679
|
+
"application/json": components["schemas"]["AgentMcpServersWrapper"];
|
|
2680
|
+
};
|
|
2681
|
+
};
|
|
2682
|
+
/** @description MCP servers not configured */
|
|
2683
|
+
503: {
|
|
2684
|
+
headers: {
|
|
2685
|
+
[name: string]: unknown;
|
|
2686
|
+
};
|
|
2687
|
+
content: {
|
|
2688
|
+
"application/json": components["schemas"]["Error"];
|
|
2689
|
+
};
|
|
2690
|
+
};
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
put?: never;
|
|
2694
|
+
/**
|
|
2695
|
+
* Add an MCP server
|
|
2696
|
+
* @description Adds an MCP server to the agent. Credentials are encrypted and never returned. 409 when the agent already has this `name`; 422 on an invalid field.
|
|
2697
|
+
*/
|
|
2698
|
+
post: {
|
|
2699
|
+
parameters: {
|
|
2700
|
+
query?: never;
|
|
2701
|
+
header?: never;
|
|
2702
|
+
path: {
|
|
2703
|
+
id: string;
|
|
2704
|
+
};
|
|
2705
|
+
cookie?: never;
|
|
2706
|
+
};
|
|
2707
|
+
requestBody?: {
|
|
2708
|
+
content: {
|
|
2709
|
+
"application/json": components["schemas"]["CreateAgentMcpServerBody"];
|
|
2710
|
+
};
|
|
2711
|
+
};
|
|
2712
|
+
responses: {
|
|
2713
|
+
/** @description MCP server added */
|
|
2714
|
+
201: {
|
|
2715
|
+
headers: {
|
|
2716
|
+
[name: string]: unknown;
|
|
2717
|
+
};
|
|
2718
|
+
content: {
|
|
2719
|
+
"application/json": components["schemas"]["AgentMcpServerWrapper"];
|
|
2720
|
+
};
|
|
2721
|
+
};
|
|
2722
|
+
/** @description Bad request */
|
|
2723
|
+
400: {
|
|
2724
|
+
headers: {
|
|
2725
|
+
[name: string]: unknown;
|
|
2726
|
+
};
|
|
2727
|
+
content: {
|
|
2728
|
+
"application/json": components["schemas"]["Error"];
|
|
2729
|
+
};
|
|
2730
|
+
};
|
|
2731
|
+
/** @description Name already used */
|
|
2732
|
+
409: {
|
|
2733
|
+
headers: {
|
|
2734
|
+
[name: string]: unknown;
|
|
2735
|
+
};
|
|
2736
|
+
content: {
|
|
2737
|
+
"application/json": components["schemas"]["Error"];
|
|
2738
|
+
};
|
|
2739
|
+
};
|
|
2740
|
+
/** @description Invalid field */
|
|
2741
|
+
422: {
|
|
2742
|
+
headers: {
|
|
2743
|
+
[name: string]: unknown;
|
|
2744
|
+
};
|
|
2745
|
+
content: {
|
|
2746
|
+
"application/json": components["schemas"]["Error"];
|
|
2747
|
+
};
|
|
2748
|
+
};
|
|
2749
|
+
/** @description MCP servers not configured */
|
|
2750
|
+
503: {
|
|
2751
|
+
headers: {
|
|
2752
|
+
[name: string]: unknown;
|
|
2753
|
+
};
|
|
2754
|
+
content: {
|
|
2755
|
+
"application/json": components["schemas"]["Error"];
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
2759
|
+
};
|
|
2760
|
+
delete?: never;
|
|
2761
|
+
options?: never;
|
|
2762
|
+
head?: never;
|
|
2763
|
+
patch?: never;
|
|
2764
|
+
trace?: never;
|
|
2765
|
+
};
|
|
2766
|
+
"/agents/{id}/mcp-servers/resolved": {
|
|
2767
|
+
parameters: {
|
|
2768
|
+
query?: never;
|
|
2769
|
+
header?: never;
|
|
2770
|
+
path?: never;
|
|
2771
|
+
cookie?: never;
|
|
2772
|
+
};
|
|
2773
|
+
/**
|
|
2774
|
+
* Resolve MCP servers (runtime only)
|
|
2775
|
+
* @description Returns the agent's enabled MCP servers with decrypted credentials. Accepted only for the agent's own runtime-kind token: tools-kind tokens, other agents' tokens, admin keys and sessions get 403.
|
|
2776
|
+
*/
|
|
2777
|
+
get: {
|
|
2778
|
+
parameters: {
|
|
2779
|
+
query?: never;
|
|
2780
|
+
header?: never;
|
|
2781
|
+
path: {
|
|
2782
|
+
id: string;
|
|
2783
|
+
};
|
|
2784
|
+
cookie?: never;
|
|
2785
|
+
};
|
|
2786
|
+
requestBody?: never;
|
|
2787
|
+
responses: {
|
|
2788
|
+
/** @description Enabled MCP servers with decrypted credentials */
|
|
2789
|
+
200: {
|
|
2790
|
+
headers: {
|
|
2791
|
+
[name: string]: unknown;
|
|
2792
|
+
};
|
|
2793
|
+
content: {
|
|
2794
|
+
"application/json": components["schemas"]["AgentMcpServersResolvedWrapper"];
|
|
2795
|
+
};
|
|
2796
|
+
};
|
|
2797
|
+
/** @description Not a runtime-kind token */
|
|
2798
|
+
403: {
|
|
2799
|
+
headers: {
|
|
2800
|
+
[name: string]: unknown;
|
|
2801
|
+
};
|
|
2802
|
+
content: {
|
|
2803
|
+
"application/json": components["schemas"]["Error"];
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2806
|
+
/** @description MCP servers not configured */
|
|
2807
|
+
503: {
|
|
2808
|
+
headers: {
|
|
2809
|
+
[name: string]: unknown;
|
|
2810
|
+
};
|
|
2811
|
+
content: {
|
|
2812
|
+
"application/json": components["schemas"]["Error"];
|
|
2813
|
+
};
|
|
2814
|
+
};
|
|
2815
|
+
};
|
|
2816
|
+
};
|
|
2817
|
+
put?: never;
|
|
2818
|
+
post?: never;
|
|
2819
|
+
delete?: never;
|
|
2820
|
+
options?: never;
|
|
2821
|
+
head?: never;
|
|
2822
|
+
patch?: never;
|
|
2823
|
+
trace?: never;
|
|
2824
|
+
};
|
|
2825
|
+
"/agents/{id}/mcp-servers/{serverId}": {
|
|
2826
|
+
parameters: {
|
|
2827
|
+
query?: never;
|
|
2828
|
+
header?: never;
|
|
2829
|
+
path?: never;
|
|
2830
|
+
cookie?: never;
|
|
2831
|
+
};
|
|
2832
|
+
get?: never;
|
|
2833
|
+
put?: never;
|
|
2834
|
+
post?: never;
|
|
2835
|
+
/**
|
|
2836
|
+
* Remove an MCP server
|
|
2837
|
+
* @description Removes the server by id. 404 when the id does not exist or belongs to a different agent.
|
|
2838
|
+
*/
|
|
2839
|
+
delete: {
|
|
2840
|
+
parameters: {
|
|
2841
|
+
query?: never;
|
|
2842
|
+
header?: never;
|
|
2843
|
+
path: {
|
|
2844
|
+
id: string;
|
|
2845
|
+
serverId: string;
|
|
2846
|
+
};
|
|
2847
|
+
cookie?: never;
|
|
2848
|
+
};
|
|
2849
|
+
requestBody?: never;
|
|
2850
|
+
responses: {
|
|
2851
|
+
/** @description MCP server removed */
|
|
2852
|
+
204: {
|
|
2853
|
+
headers: {
|
|
2854
|
+
[name: string]: unknown;
|
|
2855
|
+
};
|
|
2856
|
+
content?: never;
|
|
2857
|
+
};
|
|
2858
|
+
/** @description MCP server not found */
|
|
2859
|
+
404: {
|
|
2860
|
+
headers: {
|
|
2861
|
+
[name: string]: unknown;
|
|
2862
|
+
};
|
|
2863
|
+
content: {
|
|
2864
|
+
"application/json": components["schemas"]["Error"];
|
|
2865
|
+
};
|
|
2866
|
+
};
|
|
2867
|
+
/** @description MCP servers not configured */
|
|
2868
|
+
503: {
|
|
2869
|
+
headers: {
|
|
2870
|
+
[name: string]: unknown;
|
|
2871
|
+
};
|
|
2872
|
+
content: {
|
|
2873
|
+
"application/json": components["schemas"]["Error"];
|
|
2874
|
+
};
|
|
2875
|
+
};
|
|
2876
|
+
};
|
|
2877
|
+
};
|
|
2878
|
+
options?: never;
|
|
2879
|
+
head?: never;
|
|
2880
|
+
/**
|
|
2881
|
+
* Update an MCP server
|
|
2882
|
+
* @description Partial update: omitted fields are unchanged. `credentials` replaces the whole stored set and is never returned.
|
|
2883
|
+
*/
|
|
2884
|
+
patch: {
|
|
2885
|
+
parameters: {
|
|
2886
|
+
query?: never;
|
|
2887
|
+
header?: never;
|
|
2888
|
+
path: {
|
|
2889
|
+
id: string;
|
|
2890
|
+
serverId: string;
|
|
2891
|
+
};
|
|
2892
|
+
cookie?: never;
|
|
2893
|
+
};
|
|
2894
|
+
requestBody?: {
|
|
2895
|
+
content: {
|
|
2896
|
+
"application/json": components["schemas"]["UpdateAgentMcpServerBody"];
|
|
2897
|
+
};
|
|
2898
|
+
};
|
|
2899
|
+
responses: {
|
|
2900
|
+
/** @description MCP server updated */
|
|
2901
|
+
200: {
|
|
2902
|
+
headers: {
|
|
2903
|
+
[name: string]: unknown;
|
|
2904
|
+
};
|
|
2905
|
+
content: {
|
|
2906
|
+
"application/json": components["schemas"]["AgentMcpServerWrapper"];
|
|
2907
|
+
};
|
|
2908
|
+
};
|
|
2909
|
+
/** @description Bad request */
|
|
2910
|
+
400: {
|
|
2911
|
+
headers: {
|
|
2912
|
+
[name: string]: unknown;
|
|
2913
|
+
};
|
|
2914
|
+
content: {
|
|
2915
|
+
"application/json": components["schemas"]["Error"];
|
|
2916
|
+
};
|
|
2917
|
+
};
|
|
2918
|
+
/** @description MCP server not found */
|
|
2919
|
+
404: {
|
|
2920
|
+
headers: {
|
|
2921
|
+
[name: string]: unknown;
|
|
2922
|
+
};
|
|
2923
|
+
content: {
|
|
2924
|
+
"application/json": components["schemas"]["Error"];
|
|
2925
|
+
};
|
|
2926
|
+
};
|
|
2927
|
+
/** @description Name already used */
|
|
2928
|
+
409: {
|
|
2929
|
+
headers: {
|
|
2930
|
+
[name: string]: unknown;
|
|
2931
|
+
};
|
|
2932
|
+
content: {
|
|
2933
|
+
"application/json": components["schemas"]["Error"];
|
|
2934
|
+
};
|
|
2935
|
+
};
|
|
2936
|
+
/** @description Invalid field */
|
|
2937
|
+
422: {
|
|
2938
|
+
headers: {
|
|
2939
|
+
[name: string]: unknown;
|
|
2940
|
+
};
|
|
2941
|
+
content: {
|
|
2942
|
+
"application/json": components["schemas"]["Error"];
|
|
2943
|
+
};
|
|
2944
|
+
};
|
|
2945
|
+
/** @description MCP servers not configured */
|
|
2946
|
+
503: {
|
|
2947
|
+
headers: {
|
|
2948
|
+
[name: string]: unknown;
|
|
2949
|
+
};
|
|
2950
|
+
content: {
|
|
2951
|
+
"application/json": components["schemas"]["Error"];
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
};
|
|
2955
|
+
};
|
|
2956
|
+
trace?: never;
|
|
2957
|
+
};
|
|
2651
2958
|
"/agents/all/cron-runs/stats": {
|
|
2652
2959
|
parameters: {
|
|
2653
2960
|
query?: never;
|
|
@@ -6002,6 +6309,107 @@ export interface components {
|
|
|
6002
6309
|
installationId?: string | null;
|
|
6003
6310
|
priority?: number;
|
|
6004
6311
|
};
|
|
6312
|
+
AgentMcpServersWrapper: {
|
|
6313
|
+
servers: components["schemas"]["AgentMcpServer"][];
|
|
6314
|
+
};
|
|
6315
|
+
AgentMcpServer: {
|
|
6316
|
+
/** @example clx1234567890 */
|
|
6317
|
+
id: string;
|
|
6318
|
+
/** @example clx1234567890 */
|
|
6319
|
+
agentId: string;
|
|
6320
|
+
/** @example files */
|
|
6321
|
+
name: string;
|
|
6322
|
+
/**
|
|
6323
|
+
* @description `stdio` runs `command` with `args`; `http` connects to `url`. Which fields apply is validated by the service (422).
|
|
6324
|
+
* @enum {string}
|
|
6325
|
+
*/
|
|
6326
|
+
transport: "stdio" | "http";
|
|
6327
|
+
/** @example mcp-files */
|
|
6328
|
+
command: string | null;
|
|
6329
|
+
args: string[];
|
|
6330
|
+
/** @example https://mcp.example.com */
|
|
6331
|
+
url: string | null;
|
|
6332
|
+
/** @description Tool names this backend may expose. Empty exposes none. */
|
|
6333
|
+
toolAllowlist: string[];
|
|
6334
|
+
enabled: boolean;
|
|
6335
|
+
/**
|
|
6336
|
+
* @description Credential names mapped to the masked value `***`.
|
|
6337
|
+
* @example {
|
|
6338
|
+
* "API_KEY": "***"
|
|
6339
|
+
* }
|
|
6340
|
+
*/
|
|
6341
|
+
credentials: {
|
|
6342
|
+
[key: string]: string;
|
|
6343
|
+
};
|
|
6344
|
+
/**
|
|
6345
|
+
* Format: date-time
|
|
6346
|
+
* @example 2026-01-01T00:00:00.000Z
|
|
6347
|
+
*/
|
|
6348
|
+
createdAt: string;
|
|
6349
|
+
/**
|
|
6350
|
+
* Format: date-time
|
|
6351
|
+
* @example 2026-01-01T00:00:00.000Z
|
|
6352
|
+
*/
|
|
6353
|
+
updatedAt: string;
|
|
6354
|
+
};
|
|
6355
|
+
AgentMcpServerWrapper: {
|
|
6356
|
+
server: components["schemas"]["AgentMcpServer"];
|
|
6357
|
+
};
|
|
6358
|
+
CreateAgentMcpServerBody: {
|
|
6359
|
+
/** @example files */
|
|
6360
|
+
name: string;
|
|
6361
|
+
/**
|
|
6362
|
+
* @description `stdio` runs `command` with `args`; `http` connects to `url`. Which fields apply is validated by the service (422).
|
|
6363
|
+
* @enum {string}
|
|
6364
|
+
*/
|
|
6365
|
+
transport: "stdio" | "http";
|
|
6366
|
+
command?: string | null;
|
|
6367
|
+
args?: string[];
|
|
6368
|
+
url?: string | null;
|
|
6369
|
+
toolAllowlist?: string[];
|
|
6370
|
+
enabled?: boolean;
|
|
6371
|
+
/** @description Credential name to value (env for stdio, headers for http). Write-only: encrypted at rest, never returned. */
|
|
6372
|
+
credentials?: {
|
|
6373
|
+
[key: string]: string;
|
|
6374
|
+
};
|
|
6375
|
+
};
|
|
6376
|
+
AgentMcpServersResolvedWrapper: {
|
|
6377
|
+
servers: components["schemas"]["AgentMcpServerResolved"][];
|
|
6378
|
+
};
|
|
6379
|
+
AgentMcpServerResolved: {
|
|
6380
|
+
id: string;
|
|
6381
|
+
name: string;
|
|
6382
|
+
/**
|
|
6383
|
+
* @description `stdio` runs `command` with `args`; `http` connects to `url`. Which fields apply is validated by the service (422).
|
|
6384
|
+
* @enum {string}
|
|
6385
|
+
*/
|
|
6386
|
+
transport: "stdio" | "http";
|
|
6387
|
+
command: string | null;
|
|
6388
|
+
args: string[];
|
|
6389
|
+
url: string | null;
|
|
6390
|
+
toolAllowlist: string[];
|
|
6391
|
+
/** @description Decrypted credential values. Never log. */
|
|
6392
|
+
credentials: {
|
|
6393
|
+
[key: string]: string;
|
|
6394
|
+
};
|
|
6395
|
+
};
|
|
6396
|
+
UpdateAgentMcpServerBody: {
|
|
6397
|
+
name?: string;
|
|
6398
|
+
/**
|
|
6399
|
+
* @description `stdio` runs `command` with `args`; `http` connects to `url`. Which fields apply is validated by the service (422).
|
|
6400
|
+
* @enum {string}
|
|
6401
|
+
*/
|
|
6402
|
+
transport?: "stdio" | "http";
|
|
6403
|
+
command?: string | null;
|
|
6404
|
+
args?: string[];
|
|
6405
|
+
url?: string | null;
|
|
6406
|
+
toolAllowlist?: string[];
|
|
6407
|
+
enabled?: boolean;
|
|
6408
|
+
/** @description Replaces the whole stored credential set; `{}` clears it. Write-only. */
|
|
6409
|
+
credentials?: {
|
|
6410
|
+
[key: string]: string;
|
|
6411
|
+
};
|
|
6412
|
+
};
|
|
6005
6413
|
CronRunTokenStats: {
|
|
6006
6414
|
totals: components["schemas"]["TokenAggregate"];
|
|
6007
6415
|
byAgent: components["schemas"]["KeyedTokenAggregate"][];
|