@leaflow/sdk 0.0.0-dev.494.g12e1b53 → 0.0.0-dev.496.g35e57c5
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/dist/fleet/v1/generated/functions.d.ts +3 -40
- package/dist/fleet/v1/generated/functions.js +2 -43
- package/dist/fleet/v1/generated/models.d.ts +0 -75
- package/dist/fleet/v1/generated/schemas.zod.d.ts +2 -36
- package/dist/fleet/v1/generated/schemas.zod.js +2 -52
- package/dist/routes.d.ts +1 -9
- package/dist/routes.js +1 -10
- package/package.json +1 -1
- package/dist/fleet/v1/generated/validators/listMcpToolsParams.zod.d.ts +0 -258
- package/dist/fleet/v1/generated/validators/listMcpToolsParams.zod.js +0 -260
- package/dist/fleet/v1/generated/validators/mcpToolList.zod.d.ts +0 -271
- package/dist/fleet/v1/generated/validators/mcpToolList.zod.js +0 -254
- package/dist/fleet/v1/generated/validators/mcpToolResource.zod.d.ts +0 -256
- package/dist/fleet/v1/generated/validators/mcpToolResource.zod.js +0 -262
- package/dist/fleet/v1/generated/validators/mcpUnavailableServer.zod.d.ts +0 -259
- package/dist/fleet/v1/generated/validators/mcpUnavailableServer.zod.js +0 -250
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
* revoked. A participant whose creation failed is not announced.
|
|
243
243
|
* OpenAPI spec version: 1.0.0
|
|
244
244
|
*/
|
|
245
|
-
import type { AccountList, AccountResource, ApproveEnrollmentRequest, CallMcpToolRequest, CallMcpToolResponse, CallToolRequest, CallToolResponse, CreateGroupMemberRequest, CreateGroupRequest, CreateMachineRegistrationRequest, CreateMachineRegistrationResponse, CreateParticipantRequest, CreateParticipantResponse, CreatePeerConnectionCandidatesRequest, CreatePeerConnectionRequest, CreateSessionRequest, DeleteMcpServerParams, DenyPrivilegeRequestRequest, EnrollmentResource, Error, FindEnrollmentByPairingCodeParams, FindEnrollmentResponse, GetPeerConnectionParams, GroupList, GroupResource, ListAccountsParams, ListGroupMembersParams, ListGroupsParams, ListMachineEventsParams, ListMachineRegistrationsParams, ListMachinesParams,
|
|
245
|
+
import type { AccountList, AccountResource, ApproveEnrollmentRequest, CallMcpToolRequest, CallMcpToolResponse, CallToolRequest, CallToolResponse, CreateGroupMemberRequest, CreateGroupRequest, CreateMachineRegistrationRequest, CreateMachineRegistrationResponse, CreateParticipantRequest, CreateParticipantResponse, CreatePeerConnectionCandidatesRequest, CreatePeerConnectionRequest, CreateSessionRequest, DeleteMcpServerParams, DenyPrivilegeRequestRequest, EnrollmentResource, Error, FindEnrollmentByPairingCodeParams, FindEnrollmentResponse, GetPeerConnectionParams, GroupList, GroupResource, ListAccountsParams, ListGroupMembersParams, ListGroupsParams, ListMachineEventsParams, ListMachineRegistrationsParams, ListMachinesParams, ListPrivilegeAutoApprovalsParams, ListPrivilegeRequestsParams, ListSessionsParams, ListToolsParams, MachineEventList, MachineList, MachineRegistrationList, MachineRegistrationResource, MachineResource, McpConfigurationFile, McpConfigurationResource, MigrationStep, ParticipantList, ParticipantResource, PeerConnection, PrivilegeAutoApprovalList, PrivilegeAutoApprovalResource, PrivilegeRequestList, PrivilegeRequestResource, RenewParticipantRequest, RenewParticipantResponse, ReplaceMcpConfigurationRequest, RtcConfiguration, RunCommandRequest, RunCommandResponse, SendMcpRequestRequest, SendMcpRequestResponse, SessionList, SessionResource, ToolActivityList, ToolList, UpdateAccountRequest, UpdateGroupRequest, UpdateMachineRequest, UpdateMcpServerRequest, UpdateMcpServerResponse, UpdatePrivilegeAutoApprovalRequest } from "./models.js";
|
|
246
246
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
247
247
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
248
248
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -582,12 +582,12 @@ export type callToolResponseError = callToolResponseDefault & {
|
|
|
582
582
|
export type callToolResponse = callToolResponseSuccess | callToolResponseError;
|
|
583
583
|
export declare const getCallToolUrl: (machineId: string) => string;
|
|
584
584
|
/**
|
|
585
|
-
* Uses the same current permissions, directory account and graphical session as
|
|
585
|
+
* Uses the same current permissions, directory account and graphical session as list-tools.
|
|
586
586
|
* Listing is not a precondition: callers may use a previously discovered ToolRef, and this
|
|
587
587
|
* operation never sends a discovery request or refreshes schemas before executing it.
|
|
588
588
|
* A removed tool or MCP server returns TOOL_NOT_FOUND, as does a direct builtin computer.*
|
|
589
589
|
* call while virtual desktop capability is unavailable. Actual permission errors remain
|
|
590
|
-
* permission errors; a missing target window is not a missing tool. Use
|
|
590
|
+
* permission errors; a missing target window is not a missing tool. Use list-tools only when
|
|
591
591
|
* discovery or refresh is needed, and do not cache or reuse execution results.
|
|
592
592
|
* Source is explicit: MCP names never select or impersonate builtin tools. The arguments
|
|
593
593
|
* object is at most 256 KiB. The complete result is at most 8 MiB in the protobuf transport,
|
|
@@ -699,43 +699,6 @@ export declare const getCallMcpToolUrl: (machineId: string, serverName: string,
|
|
|
699
699
|
* @summary Call an MCP tool
|
|
700
700
|
*/
|
|
701
701
|
export declare const callMcpTool: (machineId: string, serverName: string, toolName: string, callMcpToolRequest: CallMcpToolRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<callMcpToolResponse>;
|
|
702
|
-
export type listMcpToolsResponse200 = {
|
|
703
|
-
data: McpToolList;
|
|
704
|
-
status: 200;
|
|
705
|
-
};
|
|
706
|
-
export type listMcpToolsResponseDefault = {
|
|
707
|
-
data: Error;
|
|
708
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
709
|
-
};
|
|
710
|
-
export type listMcpToolsResponseSuccess = listMcpToolsResponse200 & {
|
|
711
|
-
headers: Headers;
|
|
712
|
-
};
|
|
713
|
-
export type listMcpToolsResponseError = listMcpToolsResponseDefault & {
|
|
714
|
-
headers: Headers;
|
|
715
|
-
};
|
|
716
|
-
export type listMcpToolsResponse = listMcpToolsResponseSuccess | listMcpToolsResponseError;
|
|
717
|
-
export declare const getListMcpToolsUrl: (machineId: string, params?: ListMcpToolsParams) => string;
|
|
718
|
-
/**
|
|
719
|
-
* Lists the tools of the caller's servers on the machine, or of one of them, that match
|
|
720
|
-
* `query`: every word of it, ignoring case, in the tool's name, title or description. They
|
|
721
|
-
* are ordered by server, then by tool name. Servers that are not running are started to
|
|
722
|
-
* learn their tools; one that cannot be is named in `unavailable_servers`, and the others are
|
|
723
|
-
* listed anyway. Slow servers do not hold the request up: those still starting are named
|
|
724
|
-
* with `timeout` and go on starting, so that a later request lists their tools. Requires
|
|
725
|
-
* `fleet:machines.login` on the machine.
|
|
726
|
-
*
|
|
727
|
-
* Fails with:
|
|
728
|
-
* - `MCP_SERVER_NOT_FOUND` when `server` is not configured;
|
|
729
|
-
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
730
|
-
* - `FEATURE_UNAVAILABLE` when the machine does not offer `leaflow.fleet.mcp.v1`;
|
|
731
|
-
* - `USER_NOT_FOUND`, `USER_NOT_ALLOWED`, `ACCOUNT_EXPIRED` or `PAM_PERMISSION_DENIED` when
|
|
732
|
-
* the machine refuses the account, as for opening a session;
|
|
733
|
-
* - `MCP_START_FAILED` when the machine could not start MCP for the caller's account;
|
|
734
|
-
* - `MACHINE_TIMEOUT` when the machine did not answer in time.
|
|
735
|
-
* @deprecated
|
|
736
|
-
* @summary List the caller's MCP tools on a machine
|
|
737
|
-
*/
|
|
738
|
-
export declare const listMcpTools: (machineId: string, params?: ListMcpToolsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listMcpToolsResponse>;
|
|
739
702
|
export type getPrivilegeAutoApprovalResponse200 = {
|
|
740
703
|
data: PrivilegeAutoApprovalResource;
|
|
741
704
|
status: 200;
|
|
@@ -367,12 +367,12 @@ export const getCallToolUrl = (machineId) => {
|
|
|
367
367
|
return `https://fleet.leaflow.cloud/api/v1/machines/${encodeURIComponent(String(machineId))}/tools:call`;
|
|
368
368
|
};
|
|
369
369
|
/**
|
|
370
|
-
* Uses the same current permissions, directory account and graphical session as
|
|
370
|
+
* Uses the same current permissions, directory account and graphical session as list-tools.
|
|
371
371
|
* Listing is not a precondition: callers may use a previously discovered ToolRef, and this
|
|
372
372
|
* operation never sends a discovery request or refreshes schemas before executing it.
|
|
373
373
|
* A removed tool or MCP server returns TOOL_NOT_FOUND, as does a direct builtin computer.*
|
|
374
374
|
* call while virtual desktop capability is unavailable. Actual permission errors remain
|
|
375
|
-
* permission errors; a missing target window is not a missing tool. Use
|
|
375
|
+
* permission errors; a missing target window is not a missing tool. Use list-tools only when
|
|
376
376
|
* discovery or refresh is needed, and do not cache or reuse execution results.
|
|
377
377
|
* Source is explicit: MCP names never select or impersonate builtin tools. The arguments
|
|
378
378
|
* object is at most 256 KiB. The complete result is at most 8 MiB in the protobuf transport,
|
|
@@ -528,47 +528,6 @@ export const callMcpTool = async (machineId, serverName, toolName, callMcpToolRe
|
|
|
528
528
|
const data = body ? JSON.parse(body) : {};
|
|
529
529
|
return { data, status: res.status, headers: res.headers };
|
|
530
530
|
};
|
|
531
|
-
export const getListMcpToolsUrl = (machineId, params) => {
|
|
532
|
-
const normalizedParams = new URLSearchParams();
|
|
533
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
534
|
-
if (value !== undefined) {
|
|
535
|
-
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
const stringifiedParams = normalizedParams.toString();
|
|
539
|
-
return stringifiedParams.length > 0
|
|
540
|
-
? `https://fleet.leaflow.cloud/api/v1/machines/${encodeURIComponent(String(machineId))}/mcp-tools?${stringifiedParams}`
|
|
541
|
-
: `https://fleet.leaflow.cloud/api/v1/machines/${encodeURIComponent(String(machineId))}/mcp-tools`;
|
|
542
|
-
};
|
|
543
|
-
/**
|
|
544
|
-
* Lists the tools of the caller's servers on the machine, or of one of them, that match
|
|
545
|
-
* `query`: every word of it, ignoring case, in the tool's name, title or description. They
|
|
546
|
-
* are ordered by server, then by tool name. Servers that are not running are started to
|
|
547
|
-
* learn their tools; one that cannot be is named in `unavailable_servers`, and the others are
|
|
548
|
-
* listed anyway. Slow servers do not hold the request up: those still starting are named
|
|
549
|
-
* with `timeout` and go on starting, so that a later request lists their tools. Requires
|
|
550
|
-
* `fleet:machines.login` on the machine.
|
|
551
|
-
*
|
|
552
|
-
* Fails with:
|
|
553
|
-
* - `MCP_SERVER_NOT_FOUND` when `server` is not configured;
|
|
554
|
-
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
555
|
-
* - `FEATURE_UNAVAILABLE` when the machine does not offer `leaflow.fleet.mcp.v1`;
|
|
556
|
-
* - `USER_NOT_FOUND`, `USER_NOT_ALLOWED`, `ACCOUNT_EXPIRED` or `PAM_PERMISSION_DENIED` when
|
|
557
|
-
* the machine refuses the account, as for opening a session;
|
|
558
|
-
* - `MCP_START_FAILED` when the machine could not start MCP for the caller's account;
|
|
559
|
-
* - `MACHINE_TIMEOUT` when the machine did not answer in time.
|
|
560
|
-
* @deprecated
|
|
561
|
-
* @summary List the caller's MCP tools on a machine
|
|
562
|
-
*/
|
|
563
|
-
export const listMcpTools = async (machineId, params, options, fetchFn) => {
|
|
564
|
-
const res = await (fetchFn ?? fetch)(getListMcpToolsUrl(machineId, params), {
|
|
565
|
-
...options,
|
|
566
|
-
method: "GET",
|
|
567
|
-
});
|
|
568
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
569
|
-
const data = body ? JSON.parse(body) : {};
|
|
570
|
-
return { data, status: res.status, headers: res.headers };
|
|
571
|
-
};
|
|
572
531
|
export const getGetPrivilegeAutoApprovalUrl = (machineId) => {
|
|
573
532
|
return `https://fleet.leaflow.cloud/api/v1/machines/${encodeURIComponent(String(machineId))}/privilege-auto-approval`;
|
|
574
533
|
};
|
|
@@ -1166,59 +1166,6 @@ export interface CallMcpToolResponse {
|
|
|
1166
1166
|
/** The tool's MCP `CallToolResult`, with `content`, `structuredContent` and `isError` */
|
|
1167
1167
|
result: CallMcpToolResponseResult;
|
|
1168
1168
|
}
|
|
1169
|
-
/**
|
|
1170
|
-
* The JSON Schema of its arguments
|
|
1171
|
-
*/
|
|
1172
|
-
export type McpToolResourceInputSchema = {
|
|
1173
|
-
[key: string]: unknown;
|
|
1174
|
-
};
|
|
1175
|
-
/**
|
|
1176
|
-
* The JSON Schema of its structured result; null when it has none
|
|
1177
|
-
* @nullable
|
|
1178
|
-
*/
|
|
1179
|
-
export type McpToolResourceOutputSchema = {
|
|
1180
|
-
[key: string]: unknown;
|
|
1181
|
-
} | null;
|
|
1182
|
-
/**
|
|
1183
|
-
* Its MCP `ToolAnnotations`, such as `readOnlyHint`; hints of the server, not guarantees
|
|
1184
|
-
* @nullable
|
|
1185
|
-
*/
|
|
1186
|
-
export type McpToolResourceAnnotations = {
|
|
1187
|
-
[key: string]: unknown;
|
|
1188
|
-
} | null;
|
|
1189
|
-
export interface McpToolResource {
|
|
1190
|
-
/** The server that offers it */
|
|
1191
|
-
server: string;
|
|
1192
|
-
name: string;
|
|
1193
|
-
title: string;
|
|
1194
|
-
description: string;
|
|
1195
|
-
/** The JSON Schema of its arguments */
|
|
1196
|
-
input_schema: McpToolResourceInputSchema;
|
|
1197
|
-
/**
|
|
1198
|
-
* The JSON Schema of its structured result; null when it has none
|
|
1199
|
-
* @nullable
|
|
1200
|
-
*/
|
|
1201
|
-
output_schema: McpToolResourceOutputSchema;
|
|
1202
|
-
/**
|
|
1203
|
-
* Its MCP `ToolAnnotations`, such as `readOnlyHint`; hints of the server, not guarantees
|
|
1204
|
-
* @nullable
|
|
1205
|
-
*/
|
|
1206
|
-
annotations: McpToolResourceAnnotations;
|
|
1207
|
-
}
|
|
1208
|
-
export interface McpUnavailableServer {
|
|
1209
|
-
name: string;
|
|
1210
|
-
failure: McpServerFailure;
|
|
1211
|
-
}
|
|
1212
|
-
export interface McpToolList {
|
|
1213
|
-
items: McpToolResource[];
|
|
1214
|
-
/**
|
|
1215
|
-
* Null on the last page
|
|
1216
|
-
* @nullable
|
|
1217
|
-
*/
|
|
1218
|
-
next_page_token: string | null;
|
|
1219
|
-
/** Servers whose tools are missing because they could not be started or reached */
|
|
1220
|
-
unavailable_servers: McpUnavailableServer[];
|
|
1221
|
-
}
|
|
1222
1169
|
/**
|
|
1223
1170
|
* How the caller's privilege requests on the machine are decided without asking them:
|
|
1224
1171
|
* - `automatic_review`, recommended: a large language model reviews each request from what
|
|
@@ -1619,28 +1566,6 @@ export declare const ListToolsSource: {
|
|
|
1619
1566
|
readonly builtin: "builtin";
|
|
1620
1567
|
readonly mcp: "mcp";
|
|
1621
1568
|
};
|
|
1622
|
-
export type ListMcpToolsParams = {
|
|
1623
|
-
/**
|
|
1624
|
-
* Only this server's tools
|
|
1625
|
-
* @maxLength 64
|
|
1626
|
-
*/
|
|
1627
|
-
server?: string;
|
|
1628
|
-
/**
|
|
1629
|
-
* Words that each must occur in a tool's name, title or description
|
|
1630
|
-
* @maxLength 256
|
|
1631
|
-
*/
|
|
1632
|
-
query?: string;
|
|
1633
|
-
/**
|
|
1634
|
-
* @minimum 1
|
|
1635
|
-
* @maximum 500
|
|
1636
|
-
*/
|
|
1637
|
-
page_size?: number;
|
|
1638
|
-
/**
|
|
1639
|
-
* `next_page_token` of the previous page
|
|
1640
|
-
* @maxLength 1024
|
|
1641
|
-
*/
|
|
1642
|
-
page_token?: string;
|
|
1643
|
-
};
|
|
1644
1569
|
export type ListPrivilegeAutoApprovalsParams = {
|
|
1645
1570
|
/**
|
|
1646
1571
|
* 1-based page number. Defaults to 1.
|
|
@@ -479,12 +479,12 @@ export declare const ListToolsQueryParams: zod.ZodObject<{
|
|
|
479
479
|
page_token: zod.ZodOptional<zod.ZodString>;
|
|
480
480
|
}, zod.z.core.$strict>;
|
|
481
481
|
/**
|
|
482
|
-
* Uses the same current permissions, directory account and graphical session as
|
|
482
|
+
* Uses the same current permissions, directory account and graphical session as list-tools.
|
|
483
483
|
* Listing is not a precondition: callers may use a previously discovered ToolRef, and this
|
|
484
484
|
* operation never sends a discovery request or refreshes schemas before executing it.
|
|
485
485
|
* A removed tool or MCP server returns TOOL_NOT_FOUND, as does a direct builtin computer.*
|
|
486
486
|
* call while virtual desktop capability is unavailable. Actual permission errors remain
|
|
487
|
-
* permission errors; a missing target window is not a missing tool. Use
|
|
487
|
+
* permission errors; a missing target window is not a missing tool. Use list-tools only when
|
|
488
488
|
* discovery or refresh is needed, and do not cache or reuse execution results.
|
|
489
489
|
* Source is explicit: MCP names never select or impersonate builtin tools. The arguments
|
|
490
490
|
* object is at most 256 KiB. The complete result is at most 8 MiB in the protobuf transport,
|
|
@@ -586,40 +586,6 @@ export declare const CallMcpToolBody: zod.ZodObject<{
|
|
|
586
586
|
arguments: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
587
587
|
timeout_seconds: zod.ZodDefault<zod.ZodInt>;
|
|
588
588
|
}, zod.z.core.$strict>;
|
|
589
|
-
/**
|
|
590
|
-
* Lists the tools of the caller's servers on the machine, or of one of them, that match
|
|
591
|
-
* `query`: every word of it, ignoring case, in the tool's name, title or description. They
|
|
592
|
-
* are ordered by server, then by tool name. Servers that are not running are started to
|
|
593
|
-
* learn their tools; one that cannot be is named in `unavailable_servers`, and the others are
|
|
594
|
-
* listed anyway. Slow servers do not hold the request up: those still starting are named
|
|
595
|
-
* with `timeout` and go on starting, so that a later request lists their tools. Requires
|
|
596
|
-
* `fleet:machines.login` on the machine.
|
|
597
|
-
*
|
|
598
|
-
* Fails with:
|
|
599
|
-
* - `MCP_SERVER_NOT_FOUND` when `server` is not configured;
|
|
600
|
-
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
601
|
-
* - `FEATURE_UNAVAILABLE` when the machine does not offer `leaflow.fleet.mcp.v1`;
|
|
602
|
-
* - `USER_NOT_FOUND`, `USER_NOT_ALLOWED`, `ACCOUNT_EXPIRED` or `PAM_PERMISSION_DENIED` when
|
|
603
|
-
* the machine refuses the account, as for opening a session;
|
|
604
|
-
* - `MCP_START_FAILED` when the machine could not start MCP for the caller's account;
|
|
605
|
-
* - `MACHINE_TIMEOUT` when the machine did not answer in time.
|
|
606
|
-
* @deprecated
|
|
607
|
-
* @summary List the caller's MCP tools on a machine
|
|
608
|
-
*/
|
|
609
|
-
export declare const ListMcpToolsParams: zod.ZodObject<{
|
|
610
|
-
machineId: zod.ZodUUID;
|
|
611
|
-
}, zod.z.core.$strict>;
|
|
612
|
-
export declare const listMcpToolsQueryServerMax = 64;
|
|
613
|
-
export declare const listMcpToolsQueryQueryMax = 256;
|
|
614
|
-
export declare const listMcpToolsQueryPageSizeDefault = 100;
|
|
615
|
-
export declare const listMcpToolsQueryPageSizeMax = 500;
|
|
616
|
-
export declare const listMcpToolsQueryPageTokenMax = 1024;
|
|
617
|
-
export declare const ListMcpToolsQueryParams: zod.ZodObject<{
|
|
618
|
-
server: zod.ZodOptional<zod.ZodString>;
|
|
619
|
-
query: zod.ZodOptional<zod.ZodString>;
|
|
620
|
-
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
621
|
-
page_token: zod.ZodOptional<zod.ZodString>;
|
|
622
|
-
}, zod.z.core.$strict>;
|
|
623
589
|
/**
|
|
624
590
|
* Returns the caller's automatic approval of their privilege requests on the machine. Fails
|
|
625
591
|
* with `PRIVILEGE_AUTO_APPROVAL_NOT_FOUND` while the caller is asked every time, including
|
|
@@ -508,12 +508,12 @@ export const ListToolsQueryParams = zod.strictObject({
|
|
|
508
508
|
page_token: zod.string().max(listToolsQueryPageTokenMax).optional(),
|
|
509
509
|
});
|
|
510
510
|
/**
|
|
511
|
-
* Uses the same current permissions, directory account and graphical session as
|
|
511
|
+
* Uses the same current permissions, directory account and graphical session as list-tools.
|
|
512
512
|
* Listing is not a precondition: callers may use a previously discovered ToolRef, and this
|
|
513
513
|
* operation never sends a discovery request or refreshes schemas before executing it.
|
|
514
514
|
* A removed tool or MCP server returns TOOL_NOT_FOUND, as does a direct builtin computer.*
|
|
515
515
|
* call while virtual desktop capability is unavailable. Actual permission errors remain
|
|
516
|
-
* permission errors; a missing target window is not a missing tool. Use
|
|
516
|
+
* permission errors; a missing target window is not a missing tool. Use list-tools only when
|
|
517
517
|
* discovery or refresh is needed, and do not cache or reuse execution results.
|
|
518
518
|
* Source is explicit: MCP names never select or impersonate builtin tools. The arguments
|
|
519
519
|
* object is at most 256 KiB. The complete result is at most 8 MiB in the protobuf transport,
|
|
@@ -606,56 +606,6 @@ export const CallMcpToolParams = zod.strictObject({
|
|
|
606
606
|
toolName: zod.string().min(1).max(callMcpToolPathToolNameMax),
|
|
607
607
|
});
|
|
608
608
|
export const CallMcpToolBody = CallMcpToolRequest;
|
|
609
|
-
/**
|
|
610
|
-
* Lists the tools of the caller's servers on the machine, or of one of them, that match
|
|
611
|
-
* `query`: every word of it, ignoring case, in the tool's name, title or description. They
|
|
612
|
-
* are ordered by server, then by tool name. Servers that are not running are started to
|
|
613
|
-
* learn their tools; one that cannot be is named in `unavailable_servers`, and the others are
|
|
614
|
-
* listed anyway. Slow servers do not hold the request up: those still starting are named
|
|
615
|
-
* with `timeout` and go on starting, so that a later request lists their tools. Requires
|
|
616
|
-
* `fleet:machines.login` on the machine.
|
|
617
|
-
*
|
|
618
|
-
* Fails with:
|
|
619
|
-
* - `MCP_SERVER_NOT_FOUND` when `server` is not configured;
|
|
620
|
-
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
621
|
-
* - `FEATURE_UNAVAILABLE` when the machine does not offer `leaflow.fleet.mcp.v1`;
|
|
622
|
-
* - `USER_NOT_FOUND`, `USER_NOT_ALLOWED`, `ACCOUNT_EXPIRED` or `PAM_PERMISSION_DENIED` when
|
|
623
|
-
* the machine refuses the account, as for opening a session;
|
|
624
|
-
* - `MCP_START_FAILED` when the machine could not start MCP for the caller's account;
|
|
625
|
-
* - `MACHINE_TIMEOUT` when the machine did not answer in time.
|
|
626
|
-
* @deprecated
|
|
627
|
-
* @summary List the caller's MCP tools on a machine
|
|
628
|
-
*/
|
|
629
|
-
export const ListMcpToolsParams = zod.strictObject({
|
|
630
|
-
machineId: zod.uuid(),
|
|
631
|
-
});
|
|
632
|
-
export const listMcpToolsQueryServerMax = 64;
|
|
633
|
-
export const listMcpToolsQueryQueryMax = 256;
|
|
634
|
-
export const listMcpToolsQueryPageSizeDefault = 100;
|
|
635
|
-
export const listMcpToolsQueryPageSizeMax = 500;
|
|
636
|
-
export const listMcpToolsQueryPageTokenMax = 1024;
|
|
637
|
-
export const ListMcpToolsQueryParams = zod.strictObject({
|
|
638
|
-
server: zod
|
|
639
|
-
.string()
|
|
640
|
-
.max(listMcpToolsQueryServerMax)
|
|
641
|
-
.optional()
|
|
642
|
-
.describe("Only this server's tools"),
|
|
643
|
-
query: zod
|
|
644
|
-
.string()
|
|
645
|
-
.max(listMcpToolsQueryQueryMax)
|
|
646
|
-
.optional()
|
|
647
|
-
.describe("Words that each must occur in a tool's name, title or description"),
|
|
648
|
-
page_size: zod
|
|
649
|
-
.int()
|
|
650
|
-
.min(1)
|
|
651
|
-
.max(listMcpToolsQueryPageSizeMax)
|
|
652
|
-
.default(listMcpToolsQueryPageSizeDefault),
|
|
653
|
-
page_token: zod
|
|
654
|
-
.string()
|
|
655
|
-
.max(listMcpToolsQueryPageTokenMax)
|
|
656
|
-
.optional()
|
|
657
|
-
.describe("`next_page_token` of the previous page"),
|
|
658
|
-
});
|
|
659
609
|
/**
|
|
660
610
|
* Returns the caller's automatic approval of their privilege requests on the machine. Fails
|
|
661
611
|
* with `PRIVILEGE_AUTO_APPROVAL_NOT_FOUND` while the caller is asked every time, including
|
package/dist/routes.d.ts
CHANGED
|
@@ -3018,7 +3018,7 @@ export declare const routes: readonly [{
|
|
|
3018
3018
|
readonly contract: "fleet";
|
|
3019
3019
|
readonly method: "GET";
|
|
3020
3020
|
readonly path: "/api/v1/machines/{machineId}/tools";
|
|
3021
|
-
readonly operationId: "
|
|
3021
|
+
readonly operationId: "list-tools";
|
|
3022
3022
|
readonly securityScheme: "ScopedToken";
|
|
3023
3023
|
readonly upstreamUrl: "https://fleet.leaflow.cloud";
|
|
3024
3024
|
}, {
|
|
@@ -3053,14 +3053,6 @@ export declare const routes: readonly [{
|
|
|
3053
3053
|
readonly operationId: "call-mcp-tool";
|
|
3054
3054
|
readonly securityScheme: "ScopedToken";
|
|
3055
3055
|
readonly upstreamUrl: "https://fleet.leaflow.cloud";
|
|
3056
|
-
}, {
|
|
3057
|
-
readonly service: "fleet";
|
|
3058
|
-
readonly contract: "fleet";
|
|
3059
|
-
readonly method: "GET";
|
|
3060
|
-
readonly path: "/api/v1/machines/{machineId}/mcp-tools";
|
|
3061
|
-
readonly operationId: "list-mcp-tools";
|
|
3062
|
-
readonly securityScheme: "ScopedToken";
|
|
3063
|
-
readonly upstreamUrl: "https://fleet.leaflow.cloud";
|
|
3064
3056
|
}, {
|
|
3065
3057
|
readonly service: "fleet";
|
|
3066
3058
|
readonly contract: "fleet";
|
package/dist/routes.js
CHANGED
|
@@ -3395,7 +3395,7 @@ export const routes = [
|
|
|
3395
3395
|
contract: "fleet",
|
|
3396
3396
|
method: "GET",
|
|
3397
3397
|
path: "/api/v1/machines/{machineId}/tools",
|
|
3398
|
-
operationId: "
|
|
3398
|
+
operationId: "list-tools",
|
|
3399
3399
|
securityScheme: "ScopedToken",
|
|
3400
3400
|
upstreamUrl: "https://fleet.leaflow.cloud",
|
|
3401
3401
|
},
|
|
@@ -3435,15 +3435,6 @@ export const routes = [
|
|
|
3435
3435
|
securityScheme: "ScopedToken",
|
|
3436
3436
|
upstreamUrl: "https://fleet.leaflow.cloud",
|
|
3437
3437
|
},
|
|
3438
|
-
{
|
|
3439
|
-
service: "fleet",
|
|
3440
|
-
contract: "fleet",
|
|
3441
|
-
method: "GET",
|
|
3442
|
-
path: "/api/v1/machines/{machineId}/mcp-tools",
|
|
3443
|
-
operationId: "list-mcp-tools",
|
|
3444
|
-
securityScheme: "ScopedToken",
|
|
3445
|
-
upstreamUrl: "https://fleet.leaflow.cloud",
|
|
3446
|
-
},
|
|
3447
3438
|
{
|
|
3448
3439
|
service: "fleet",
|
|
3449
3440
|
contract: "fleet",
|