@steuerboard/mcp 0.0.1 → 0.0.7
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/README.md +18 -23
- package/bin/mcp-server.js +362 -173
- package/bin/mcp-server.js.map +23 -19
- package/esm/src/cloudflare-worker/cloudflare-worker.d.ts +1 -1
- package/esm/src/cloudflare-worker/cloudflare-worker.d.ts.map +1 -1
- package/esm/src/cloudflare-worker/cloudflare-worker.js +8 -5
- package/esm/src/cloudflare-worker/cloudflare-worker.js.map +1 -1
- package/esm/src/cloudflare-worker/landing-page.d.ts +1 -1
- package/esm/src/cloudflare-worker/landing-page.d.ts.map +1 -1
- package/esm/src/cloudflare-worker/landing-page.js +9 -9
- package/esm/src/cloudflare-worker/landing-page.js.map +1 -1
- package/esm/src/funcs/adminClientsCreateClient.d.ts +17 -0
- package/esm/src/funcs/adminClientsCreateClient.d.ts.map +1 -0
- package/esm/src/funcs/adminClientsCreateClient.js +91 -0
- package/esm/src/funcs/adminClientsCreateClient.js.map +1 -0
- package/esm/src/funcs/adminClientsListClients.d.ts.map +1 -1
- package/esm/src/funcs/adminClientsListClients.js +23 -15
- package/esm/src/funcs/adminClientsListClients.js.map +1 -1
- package/esm/src/funcs/filesListFiles.d.ts.map +1 -1
- package/esm/src/funcs/filesListFiles.js +18 -10
- package/esm/src/funcs/filesListFiles.js.map +1 -1
- package/esm/src/funcs/healthCheckGetV1Ping.d.ts +1 -1
- package/esm/src/funcs/healthCheckGetV1Ping.d.ts.map +1 -1
- package/esm/src/funcs/healthCheckGetV1Ping.js +3 -7
- package/esm/src/funcs/healthCheckGetV1Ping.js.map +1 -1
- package/esm/src/funcs/tasksListTasks.d.ts.map +1 -1
- package/esm/src/funcs/tasksListTasks.js +17 -10
- package/esm/src/funcs/tasksListTasks.js.map +1 -1
- package/esm/src/funcs/workspacesListWorkspaces.d.ts.map +1 -1
- package/esm/src/funcs/workspacesListWorkspaces.js +17 -9
- package/esm/src/funcs/workspacesListWorkspaces.js.map +1 -1
- package/esm/src/lib/config.d.ts +3 -3
- package/esm/src/lib/config.d.ts.map +1 -1
- package/esm/src/lib/config.js +3 -3
- package/esm/src/lib/config.js.map +1 -1
- package/esm/src/mcp-server/mcp-server.js +1 -1
- package/esm/src/mcp-server/server.d.ts.map +1 -1
- package/esm/src/mcp-server/server.js +3 -1
- package/esm/src/mcp-server/server.js.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsCreateClient.d.ts +7 -0
- package/esm/src/mcp-server/tools/adminClientsCreateClient.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/adminClientsCreateClient.js +28 -0
- package/esm/src/mcp-server/tools/adminClientsCreateClient.js.map +1 -0
- package/esm/src/mcp-server/tools/adminClientsListClients.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsListClients.js +1 -2
- package/esm/src/mcp-server/tools/adminClientsListClients.js.map +1 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.js +1 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.js.map +1 -1
- package/esm/src/mcp-server/tools.d.ts.map +1 -1
- package/esm/src/mcp-server/tools.js +10 -11
- package/esm/src/mcp-server/tools.js.map +1 -1
- package/esm/src/models/client.d.ts +4 -4
- package/esm/src/models/client.d.ts.map +1 -1
- package/esm/src/models/client.js +4 -4
- package/esm/src/models/client.js.map +1 -1
- package/esm/src/models/clientcreate.d.ts +25 -0
- package/esm/src/models/clientcreate.d.ts.map +1 -0
- package/esm/src/models/clientcreate.js +27 -0
- package/esm/src/models/clientcreate.js.map +1 -0
- package/esm/src/models/createclientop.d.ts +40 -0
- package/esm/src/models/createclientop.d.ts.map +1 -0
- package/esm/src/models/createclientop.js +37 -0
- package/esm/src/models/createclientop.js.map +1 -0
- package/esm/src/models/getv1meop.d.ts +2 -1
- package/esm/src/models/getv1meop.d.ts.map +1 -1
- package/esm/src/models/getv1meop.js +2 -1
- package/esm/src/models/getv1meop.js.map +1 -1
- package/esm/src/models/listclientsop.d.ts +1 -1
- package/esm/src/models/listclientsop.d.ts.map +1 -1
- package/esm/src/models/listclientsop.js +2 -2
- package/esm/src/models/listclientsop.js.map +1 -1
- package/esm/src/models/listtasksop.d.ts +0 -1
- package/esm/src/models/listtasksop.d.ts.map +1 -1
- package/esm/src/models/listtasksop.js +0 -1
- package/esm/src/models/listtasksop.js.map +1 -1
- package/manifest.json +10 -6
- package/package.json +7 -6
- package/src/cloudflare-worker/cloudflare-worker.ts +12 -9
- package/src/cloudflare-worker/landing-page.ts +9 -9
- package/src/funcs/adminClientsCreateClient.ts +171 -0
- package/src/funcs/adminClientsListClients.ts +137 -131
- package/src/funcs/filesListFiles.ts +136 -130
- package/src/funcs/healthCheckGetV1Ping.ts +3 -7
- package/src/funcs/tasksListTasks.ts +129 -124
- package/src/funcs/workspacesListWorkspaces.ts +135 -129
- package/src/lib/config.ts +4 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/adminClientsCreateClient.ts +37 -0
- package/src/mcp-server/tools/adminClientsListClients.ts +22 -24
- package/src/mcp-server/tools/healthCheckGetV1Ping.ts +1 -1
- package/src/mcp-server/tools.ts +96 -98
- package/src/models/client.ts +8 -6
- package/src/models/clientcreate.ts +56 -0
- package/src/models/createclientop.ts +112 -0
- package/src/models/getv1meop.ts +4 -2
- package/src/models/listclientsop.ts +4 -2
- package/src/models/listtasksop.ts +0 -2
- package/worker-configuration.d.ts +7024 -6203
package/bin/mcp-server.js
CHANGED
|
@@ -40760,9 +40760,9 @@ var init_config = __esm(() => {
|
|
|
40760
40760
|
SDK_METADATA = {
|
|
40761
40761
|
language: "typescript",
|
|
40762
40762
|
openapiDocVersion: "0.1.0",
|
|
40763
|
-
sdkVersion: "0.0.
|
|
40764
|
-
genVersion: "2.
|
|
40765
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
40763
|
+
sdkVersion: "0.0.7",
|
|
40764
|
+
genVersion: "2.701.8",
|
|
40765
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.7 2.701.8 0.1.0 @steuerboard/mcp"
|
|
40766
40766
|
};
|
|
40767
40767
|
});
|
|
40768
40768
|
|
|
@@ -41702,7 +41702,7 @@ async function formatResult(value, init) {
|
|
|
41702
41702
|
const { response } = init;
|
|
41703
41703
|
const contentType2 = response?.headers.get("content-type") ?? "";
|
|
41704
41704
|
let content = [];
|
|
41705
|
-
if (/\bjson\b/
|
|
41705
|
+
if (contentType2.search(/\bjson\b/g)) {
|
|
41706
41706
|
content = [{ type: "text", text: JSON.stringify(value) }];
|
|
41707
41707
|
} else if (contentType2.startsWith("text/event-stream") && isAsyncIterable(value)) {
|
|
41708
41708
|
content = await consumeSSE(value);
|
|
@@ -41713,12 +41713,10 @@ async function formatResult(value, init) {
|
|
|
41713
41713
|
content = data == null ? [] : [{ type: "image", data, mimeType: contentType2 }];
|
|
41714
41714
|
} else {
|
|
41715
41715
|
return {
|
|
41716
|
-
content: [
|
|
41717
|
-
|
|
41718
|
-
|
|
41719
|
-
|
|
41720
|
-
}
|
|
41721
|
-
],
|
|
41716
|
+
content: [{
|
|
41717
|
+
type: "text",
|
|
41718
|
+
text: `Unsupported content type: "${contentType2}"`
|
|
41719
|
+
}],
|
|
41722
41720
|
isError: true
|
|
41723
41721
|
};
|
|
41724
41722
|
}
|
|
@@ -42159,15 +42157,39 @@ var init_security = __esm(() => {
|
|
|
42159
42157
|
};
|
|
42160
42158
|
});
|
|
42161
42159
|
|
|
42160
|
+
// src/models/clientcreate.ts
|
|
42161
|
+
var ClientCreateType$zodSchema, Address$zodSchema, ClientCreate$zodSchema;
|
|
42162
|
+
var init_clientcreate = __esm(() => {
|
|
42163
|
+
init_zod();
|
|
42164
|
+
ClientCreateType$zodSchema = enumType([
|
|
42165
|
+
"natural_person",
|
|
42166
|
+
"individual_enterprise",
|
|
42167
|
+
"legal_person"
|
|
42168
|
+
]).describe("The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.");
|
|
42169
|
+
Address$zodSchema = objectType({
|
|
42170
|
+
city: stringType(),
|
|
42171
|
+
countryCode: stringType().default("DE"),
|
|
42172
|
+
line1: stringType(),
|
|
42173
|
+
line2: stringType().optional(),
|
|
42174
|
+
postalCode: stringType()
|
|
42175
|
+
}).describe("The address of the client");
|
|
42176
|
+
ClientCreate$zodSchema = objectType({
|
|
42177
|
+
address: lazyType(() => Address$zodSchema).optional(),
|
|
42178
|
+
customId: stringType().optional(),
|
|
42179
|
+
name: stringType(),
|
|
42180
|
+
type: ClientCreateType$zodSchema
|
|
42181
|
+
});
|
|
42182
|
+
});
|
|
42183
|
+
|
|
42162
42184
|
// src/models/client.ts
|
|
42163
|
-
var
|
|
42185
|
+
var ClientType$zodSchema, Client$zodSchema;
|
|
42164
42186
|
var init_client = __esm(() => {
|
|
42165
42187
|
init_zod();
|
|
42166
|
-
|
|
42188
|
+
ClientType$zodSchema = enumType([
|
|
42167
42189
|
"natural_person",
|
|
42168
42190
|
"individual_enterprise",
|
|
42169
42191
|
"legal_person"
|
|
42170
|
-
]).describe("The type of the client");
|
|
42192
|
+
]).describe("The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.");
|
|
42171
42193
|
Client$zodSchema = objectType({
|
|
42172
42194
|
archivedAt: stringType().nullable(),
|
|
42173
42195
|
createdAt: stringType(),
|
|
@@ -42177,27 +42199,24 @@ var init_client = __esm(() => {
|
|
|
42177
42199
|
legalName: stringType().nullable(),
|
|
42178
42200
|
name: stringType(),
|
|
42179
42201
|
slug: stringType(),
|
|
42180
|
-
type:
|
|
42202
|
+
type: ClientType$zodSchema,
|
|
42181
42203
|
updatedAt: stringType()
|
|
42182
42204
|
});
|
|
42183
42205
|
});
|
|
42184
42206
|
|
|
42185
|
-
// src/models/
|
|
42186
|
-
var
|
|
42187
|
-
var
|
|
42207
|
+
// src/models/createclientop.ts
|
|
42208
|
+
var CreateClientTooManyRequestsResponseBody$zodSchema, CreateClientPath$zodSchema, CreateClientIssue$zodSchema, CreateClientError$zodSchema, CreateClientUnprocessableEntityResponseBody$zodSchema, CreateClientResponse$zodSchema;
|
|
42209
|
+
var init_createclientop = __esm(() => {
|
|
42188
42210
|
init_zod();
|
|
42189
42211
|
init_client();
|
|
42190
|
-
|
|
42191
|
-
id: stringType()
|
|
42192
|
-
});
|
|
42193
|
-
GetClientTooManyRequestsResponseBody$zodSchema = objectType({
|
|
42212
|
+
CreateClientTooManyRequestsResponseBody$zodSchema = objectType({
|
|
42194
42213
|
message: stringType()
|
|
42195
42214
|
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
42196
|
-
|
|
42215
|
+
CreateClientPath$zodSchema = unionType([
|
|
42197
42216
|
stringType(),
|
|
42198
42217
|
numberType()
|
|
42199
42218
|
]);
|
|
42200
|
-
|
|
42219
|
+
CreateClientIssue$zodSchema = objectType({
|
|
42201
42220
|
code: stringType(),
|
|
42202
42221
|
message: stringType().optional(),
|
|
42203
42222
|
path: arrayType(unionType([
|
|
@@ -42205,25 +42224,21 @@ var init_getclientop = __esm(() => {
|
|
|
42205
42224
|
numberType()
|
|
42206
42225
|
]))
|
|
42207
42226
|
});
|
|
42208
|
-
|
|
42209
|
-
issues: arrayType(lazyType(() =>
|
|
42227
|
+
CreateClientError$zodSchema = objectType({
|
|
42228
|
+
issues: arrayType(lazyType(() => CreateClientIssue$zodSchema)),
|
|
42210
42229
|
name: stringType()
|
|
42211
42230
|
});
|
|
42212
|
-
|
|
42213
|
-
error: lazyType(() =>
|
|
42231
|
+
CreateClientUnprocessableEntityResponseBody$zodSchema = objectType({
|
|
42232
|
+
error: lazyType(() => CreateClientError$zodSchema),
|
|
42214
42233
|
success: booleanType()
|
|
42215
|
-
}).describe("
|
|
42216
|
-
|
|
42217
|
-
message: stringType()
|
|
42218
|
-
}).describe("Client not found");
|
|
42219
|
-
GetClientResponse$zodSchema = objectType({
|
|
42234
|
+
}).describe("The validation error(s)");
|
|
42235
|
+
CreateClientResponse$zodSchema = objectType({
|
|
42220
42236
|
Client: Client$zodSchema.optional(),
|
|
42221
42237
|
ContentType: stringType(),
|
|
42222
42238
|
RawResponse: instanceOfType(Response),
|
|
42223
42239
|
StatusCode: numberType().int(),
|
|
42224
|
-
|
|
42225
|
-
|
|
42226
|
-
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetClientUnprocessableEntityResponseBody$zodSchema).optional()
|
|
42240
|
+
fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => CreateClientTooManyRequestsResponseBody$zodSchema).optional(),
|
|
42241
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateClientUnprocessableEntityResponseBody$zodSchema).optional()
|
|
42227
42242
|
});
|
|
42228
42243
|
});
|
|
42229
42244
|
|
|
@@ -42253,11 +42268,165 @@ var init_async = __esm(() => {
|
|
|
42253
42268
|
};
|
|
42254
42269
|
});
|
|
42255
42270
|
|
|
42256
|
-
// src/funcs/
|
|
42257
|
-
function
|
|
42271
|
+
// src/funcs/adminClientsCreateClient.ts
|
|
42272
|
+
function adminClientsCreateClient(client$, request, options) {
|
|
42258
42273
|
return new APIPromise($do(client$, request, options));
|
|
42259
42274
|
}
|
|
42260
42275
|
async function $do(client$, request, options) {
|
|
42276
|
+
const parsed$ = safeParse(request, (value$) => ClientCreate$zodSchema.optional().parse(value$), "Input validation failed");
|
|
42277
|
+
if (!parsed$.ok) {
|
|
42278
|
+
return [parsed$, { status: "invalid" }];
|
|
42279
|
+
}
|
|
42280
|
+
const payload$ = parsed$.value;
|
|
42281
|
+
const body$ = payload$ === undefined ? null : encodeJSON("body", payload$, { explode: true });
|
|
42282
|
+
const path$ = pathToFunc("/v1/admin/clients")();
|
|
42283
|
+
const headers$ = new Headers(compactMap({
|
|
42284
|
+
"Content-Type": "application/json",
|
|
42285
|
+
Accept: "application/json"
|
|
42286
|
+
}));
|
|
42287
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
42288
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42289
|
+
const context = {
|
|
42290
|
+
options: client$._options,
|
|
42291
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
42292
|
+
operationID: "createClient",
|
|
42293
|
+
oAuth2Scopes: [],
|
|
42294
|
+
resolvedSecurity: requestSecurity,
|
|
42295
|
+
securitySource: client$._options.security,
|
|
42296
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
42297
|
+
retryCodes: options?.retryCodes || [
|
|
42298
|
+
"429",
|
|
42299
|
+
"500",
|
|
42300
|
+
"502",
|
|
42301
|
+
"503",
|
|
42302
|
+
"504"
|
|
42303
|
+
]
|
|
42304
|
+
};
|
|
42305
|
+
const requestRes = client$._createRequest(context, {
|
|
42306
|
+
security: requestSecurity,
|
|
42307
|
+
method: "POST",
|
|
42308
|
+
baseURL: options?.serverURL,
|
|
42309
|
+
path: path$,
|
|
42310
|
+
headers: headers$,
|
|
42311
|
+
body: body$,
|
|
42312
|
+
userAgent: client$._options.userAgent,
|
|
42313
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
42314
|
+
}, options);
|
|
42315
|
+
if (!requestRes.ok) {
|
|
42316
|
+
return [requestRes, { status: "invalid" }];
|
|
42317
|
+
}
|
|
42318
|
+
const req$ = requestRes.value;
|
|
42319
|
+
const doResult = await client$._do(req$, {
|
|
42320
|
+
context,
|
|
42321
|
+
errorCodes: [],
|
|
42322
|
+
retryConfig: context.retryConfig,
|
|
42323
|
+
retryCodes: context.retryCodes
|
|
42324
|
+
});
|
|
42325
|
+
if (!doResult.ok) {
|
|
42326
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
42327
|
+
}
|
|
42328
|
+
const response = doResult.value;
|
|
42329
|
+
const responseFields$ = {
|
|
42330
|
+
HttpMeta: { Response: response, Request: req$ }
|
|
42331
|
+
};
|
|
42332
|
+
const [result$] = await match(json(201, CreateClientResponse$zodSchema, { key: "Client" }), json(422, CreateClientResponse$zodSchema, {
|
|
42333
|
+
key: "422_application/json_object"
|
|
42334
|
+
}), json(429, CreateClientResponse$zodSchema, {
|
|
42335
|
+
key: "429_application/json_object"
|
|
42336
|
+
}))(response, req$, { extraFields: responseFields$ });
|
|
42337
|
+
return [result$, { status: "complete", request: req$, response }];
|
|
42338
|
+
}
|
|
42339
|
+
var init_adminClientsCreateClient = __esm(() => {
|
|
42340
|
+
init_encodings();
|
|
42341
|
+
init_matchers();
|
|
42342
|
+
init_primitives();
|
|
42343
|
+
init_schemas();
|
|
42344
|
+
init_security();
|
|
42345
|
+
init_url();
|
|
42346
|
+
init_clientcreate();
|
|
42347
|
+
init_createclientop();
|
|
42348
|
+
init_async();
|
|
42349
|
+
});
|
|
42350
|
+
|
|
42351
|
+
// src/mcp-server/tools/adminClientsCreateClient.ts
|
|
42352
|
+
var args, tool$adminClientsCreateClient;
|
|
42353
|
+
var init_adminClientsCreateClient2 = __esm(() => {
|
|
42354
|
+
init_adminClientsCreateClient();
|
|
42355
|
+
init_clientcreate();
|
|
42356
|
+
init_tools();
|
|
42357
|
+
args = {
|
|
42358
|
+
request: ClientCreate$zodSchema.optional()
|
|
42359
|
+
};
|
|
42360
|
+
tool$adminClientsCreateClient = {
|
|
42361
|
+
name: "admin-clients-create-client",
|
|
42362
|
+
description: `Create a client
|
|
42363
|
+
|
|
42364
|
+
Creates a new client for the accountant and returns the created client object.`,
|
|
42365
|
+
args,
|
|
42366
|
+
tool: async (client, args2, ctx) => {
|
|
42367
|
+
const [result, apiCall] = await adminClientsCreateClient(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42368
|
+
if (!result.ok) {
|
|
42369
|
+
return {
|
|
42370
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42371
|
+
isError: true
|
|
42372
|
+
};
|
|
42373
|
+
}
|
|
42374
|
+
const value = result.value;
|
|
42375
|
+
return formatResult(value, apiCall);
|
|
42376
|
+
}
|
|
42377
|
+
};
|
|
42378
|
+
});
|
|
42379
|
+
|
|
42380
|
+
// src/models/getclientop.ts
|
|
42381
|
+
var GetClientRequest$zodSchema, GetClientTooManyRequestsResponseBody$zodSchema, GetClientPath$zodSchema, GetClientIssue$zodSchema, GetClientError$zodSchema, GetClientUnprocessableEntityResponseBody$zodSchema, GetClientNotFoundResponseBody$zodSchema, GetClientResponse$zodSchema;
|
|
42382
|
+
var init_getclientop = __esm(() => {
|
|
42383
|
+
init_zod();
|
|
42384
|
+
init_client();
|
|
42385
|
+
GetClientRequest$zodSchema = objectType({
|
|
42386
|
+
id: stringType()
|
|
42387
|
+
});
|
|
42388
|
+
GetClientTooManyRequestsResponseBody$zodSchema = objectType({
|
|
42389
|
+
message: stringType()
|
|
42390
|
+
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
42391
|
+
GetClientPath$zodSchema = unionType([
|
|
42392
|
+
stringType(),
|
|
42393
|
+
numberType()
|
|
42394
|
+
]);
|
|
42395
|
+
GetClientIssue$zodSchema = objectType({
|
|
42396
|
+
code: stringType(),
|
|
42397
|
+
message: stringType().optional(),
|
|
42398
|
+
path: arrayType(unionType([
|
|
42399
|
+
stringType(),
|
|
42400
|
+
numberType()
|
|
42401
|
+
]))
|
|
42402
|
+
});
|
|
42403
|
+
GetClientError$zodSchema = objectType({
|
|
42404
|
+
issues: arrayType(lazyType(() => GetClientIssue$zodSchema)),
|
|
42405
|
+
name: stringType()
|
|
42406
|
+
});
|
|
42407
|
+
GetClientUnprocessableEntityResponseBody$zodSchema = objectType({
|
|
42408
|
+
error: lazyType(() => GetClientError$zodSchema),
|
|
42409
|
+
success: booleanType()
|
|
42410
|
+
}).describe("Invalid id error");
|
|
42411
|
+
GetClientNotFoundResponseBody$zodSchema = objectType({
|
|
42412
|
+
message: stringType()
|
|
42413
|
+
}).describe("Client not found");
|
|
42414
|
+
GetClientResponse$zodSchema = objectType({
|
|
42415
|
+
Client: Client$zodSchema.optional(),
|
|
42416
|
+
ContentType: stringType(),
|
|
42417
|
+
RawResponse: instanceOfType(Response),
|
|
42418
|
+
StatusCode: numberType().int(),
|
|
42419
|
+
fourHundredAndFourApplicationJsonObject: lazyType(() => GetClientNotFoundResponseBody$zodSchema).optional(),
|
|
42420
|
+
fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => GetClientTooManyRequestsResponseBody$zodSchema).optional(),
|
|
42421
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetClientUnprocessableEntityResponseBody$zodSchema).optional()
|
|
42422
|
+
});
|
|
42423
|
+
});
|
|
42424
|
+
|
|
42425
|
+
// src/funcs/adminClientsGetClient.ts
|
|
42426
|
+
function adminClientsGetClient(client$, request, options) {
|
|
42427
|
+
return new APIPromise($do2(client$, request, options));
|
|
42428
|
+
}
|
|
42429
|
+
async function $do2(client$, request, options) {
|
|
42261
42430
|
const parsed$ = safeParse(request, (value$) => GetClientRequest$zodSchema.parse(value$), "Input validation failed");
|
|
42262
42431
|
if (!parsed$.ok) {
|
|
42263
42432
|
return [parsed$, { status: "invalid" }];
|
|
@@ -42340,12 +42509,12 @@ var init_adminClientsGetClient = __esm(() => {
|
|
|
42340
42509
|
});
|
|
42341
42510
|
|
|
42342
42511
|
// src/mcp-server/tools/adminClientsGetClient.ts
|
|
42343
|
-
var
|
|
42512
|
+
var args2, tool$adminClientsGetClient;
|
|
42344
42513
|
var init_adminClientsGetClient2 = __esm(() => {
|
|
42345
42514
|
init_adminClientsGetClient();
|
|
42346
42515
|
init_getclientop();
|
|
42347
42516
|
init_tools();
|
|
42348
|
-
|
|
42517
|
+
args2 = {
|
|
42349
42518
|
request: GetClientRequest$zodSchema
|
|
42350
42519
|
};
|
|
42351
42520
|
tool$adminClientsGetClient = {
|
|
@@ -42353,9 +42522,9 @@ var init_adminClientsGetClient2 = __esm(() => {
|
|
|
42353
42522
|
description: `Get a client
|
|
42354
42523
|
|
|
42355
42524
|
Returns a single client object by ID.`,
|
|
42356
|
-
args,
|
|
42357
|
-
tool: async (client,
|
|
42358
|
-
const [result, apiCall] = await adminClientsGetClient(client,
|
|
42525
|
+
args: args2,
|
|
42526
|
+
tool: async (client, args3, ctx) => {
|
|
42527
|
+
const [result, apiCall] = await adminClientsGetClient(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42359
42528
|
if (!result.ok) {
|
|
42360
42529
|
return {
|
|
42361
42530
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42394,7 +42563,7 @@ var init_listclientsop = __esm(() => {
|
|
|
42394
42563
|
"natural_person",
|
|
42395
42564
|
"individual_enterprise",
|
|
42396
42565
|
"legal_person"
|
|
42397
|
-
]).describe("The type of the client");
|
|
42566
|
+
]).describe("The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.");
|
|
42398
42567
|
Sort$zodSchema = enumType([
|
|
42399
42568
|
"createdAt",
|
|
42400
42569
|
"updatedAt",
|
|
@@ -42455,9 +42624,9 @@ var init_listclientsop = __esm(() => {
|
|
|
42455
42624
|
|
|
42456
42625
|
// src/funcs/adminClientsListClients.ts
|
|
42457
42626
|
function adminClientsListClients(client$, request, options) {
|
|
42458
|
-
return new APIPromise($
|
|
42627
|
+
return new APIPromise($do3(client$, request, options));
|
|
42459
42628
|
}
|
|
42460
|
-
async function $
|
|
42629
|
+
async function $do3(client$, request, options) {
|
|
42461
42630
|
const parsed$ = safeParse(request, (value$) => ListClientsRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
42462
42631
|
if (!parsed$.ok) {
|
|
42463
42632
|
return [parsed$, { status: "invalid" }];
|
|
@@ -42488,7 +42657,13 @@ async function $do2(client$, request, options) {
|
|
|
42488
42657
|
resolvedSecurity: requestSecurity,
|
|
42489
42658
|
securitySource: client$._options.security,
|
|
42490
42659
|
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
42491
|
-
retryCodes: options?.retryCodes || [
|
|
42660
|
+
retryCodes: options?.retryCodes || [
|
|
42661
|
+
"429",
|
|
42662
|
+
"500",
|
|
42663
|
+
"502",
|
|
42664
|
+
"503",
|
|
42665
|
+
"504"
|
|
42666
|
+
]
|
|
42492
42667
|
};
|
|
42493
42668
|
const requestRes = client$._createRequest(context, {
|
|
42494
42669
|
security: requestSecurity,
|
|
@@ -42519,11 +42694,11 @@ async function $do2(client$, request, options) {
|
|
|
42519
42694
|
HttpMeta: { Response: response, Request: req$ }
|
|
42520
42695
|
};
|
|
42521
42696
|
const [result$] = await match(json(200, ListClientsResponse$zodSchema, {
|
|
42522
|
-
key: "
|
|
42697
|
+
key: "200_application/json_object"
|
|
42523
42698
|
}), json(422, ListClientsResponse$zodSchema, {
|
|
42524
|
-
key: "
|
|
42699
|
+
key: "422_application/json_object"
|
|
42525
42700
|
}), json(429, ListClientsResponse$zodSchema, {
|
|
42526
|
-
key: "
|
|
42701
|
+
key: "429_application/json_object"
|
|
42527
42702
|
}))(response, req$, { extraFields: responseFields$ });
|
|
42528
42703
|
return [result$, { status: "complete", request: req$, response }];
|
|
42529
42704
|
}
|
|
@@ -42539,12 +42714,12 @@ var init_adminClientsListClients = __esm(() => {
|
|
|
42539
42714
|
});
|
|
42540
42715
|
|
|
42541
42716
|
// src/mcp-server/tools/adminClientsListClients.ts
|
|
42542
|
-
var
|
|
42717
|
+
var args3, tool$adminClientsListClients;
|
|
42543
42718
|
var init_adminClientsListClients2 = __esm(() => {
|
|
42544
42719
|
init_adminClientsListClients();
|
|
42545
42720
|
init_listclientsop();
|
|
42546
42721
|
init_tools();
|
|
42547
|
-
|
|
42722
|
+
args3 = {
|
|
42548
42723
|
request: ListClientsRequest$zodSchema.optional()
|
|
42549
42724
|
};
|
|
42550
42725
|
tool$adminClientsListClients = {
|
|
@@ -42552,9 +42727,9 @@ var init_adminClientsListClients2 = __esm(() => {
|
|
|
42552
42727
|
description: `List clients
|
|
42553
42728
|
|
|
42554
42729
|
Returns a list of clients.`,
|
|
42555
|
-
args:
|
|
42556
|
-
tool: async (client,
|
|
42557
|
-
const [result, apiCall] = await adminClientsListClients(client,
|
|
42730
|
+
args: args3,
|
|
42731
|
+
tool: async (client, args4, ctx) => {
|
|
42732
|
+
const [result, apiCall] = await adminClientsListClients(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42558
42733
|
if (!result.ok) {
|
|
42559
42734
|
return {
|
|
42560
42735
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42562,8 +42737,7 @@ Returns a list of clients.`,
|
|
|
42562
42737
|
};
|
|
42563
42738
|
}
|
|
42564
42739
|
const value = result.value;
|
|
42565
|
-
|
|
42566
|
-
return formattedResult;
|
|
42740
|
+
return formatResult(value, apiCall);
|
|
42567
42741
|
}
|
|
42568
42742
|
};
|
|
42569
42743
|
});
|
|
@@ -42575,7 +42749,8 @@ var init_getv1meop = __esm(() => {
|
|
|
42575
42749
|
GetV1MeResponseBody$zodSchema = objectType({
|
|
42576
42750
|
accountantId: stringType(),
|
|
42577
42751
|
apiKeyId: stringType(),
|
|
42578
|
-
clientId: stringType().
|
|
42752
|
+
clientId: stringType().nullable(),
|
|
42753
|
+
permissions: arrayType(stringType()),
|
|
42579
42754
|
rateLimitMax: numberType(),
|
|
42580
42755
|
rateLimitTimeWindow: numberType(),
|
|
42581
42756
|
type: stringType()
|
|
@@ -42590,9 +42765,9 @@ var init_getv1meop = __esm(() => {
|
|
|
42590
42765
|
|
|
42591
42766
|
// src/funcs/authGetV1Me.ts
|
|
42592
42767
|
function authGetV1Me(client$, options) {
|
|
42593
|
-
return new APIPromise($
|
|
42768
|
+
return new APIPromise($do4(client$, options));
|
|
42594
42769
|
}
|
|
42595
|
-
async function $
|
|
42770
|
+
async function $do4(client$, options) {
|
|
42596
42771
|
const path$ = pathToFunc("/v1/me")();
|
|
42597
42772
|
const headers$ = new Headers(compactMap({
|
|
42598
42773
|
Accept: "application/json"
|
|
@@ -42849,9 +43024,9 @@ function isReadableStream(val) {
|
|
|
42849
43024
|
|
|
42850
43025
|
// src/funcs/filesCreateFile.ts
|
|
42851
43026
|
function filesCreateFile(client$, request, options) {
|
|
42852
|
-
return new APIPromise($
|
|
43027
|
+
return new APIPromise($do5(client$, request, options));
|
|
42853
43028
|
}
|
|
42854
|
-
async function $
|
|
43029
|
+
async function $do5(client$, request, options) {
|
|
42855
43030
|
const parsed$ = safeParse(request, (value$) => CreateFileRequest$zodSchema.parse(value$), "Input validation failed");
|
|
42856
43031
|
if (!parsed$.ok) {
|
|
42857
43032
|
return [parsed$, { status: "invalid" }];
|
|
@@ -42958,12 +43133,12 @@ var init_filesCreateFile = __esm(() => {
|
|
|
42958
43133
|
});
|
|
42959
43134
|
|
|
42960
43135
|
// src/mcp-server/tools/filesCreateFile.ts
|
|
42961
|
-
var
|
|
43136
|
+
var args4, tool$filesCreateFile;
|
|
42962
43137
|
var init_filesCreateFile2 = __esm(() => {
|
|
42963
43138
|
init_filesCreateFile();
|
|
42964
43139
|
init_createfileop();
|
|
42965
43140
|
init_tools();
|
|
42966
|
-
|
|
43141
|
+
args4 = {
|
|
42967
43142
|
request: CreateFileRequest$zodSchema
|
|
42968
43143
|
};
|
|
42969
43144
|
tool$filesCreateFile = {
|
|
@@ -42971,9 +43146,9 @@ var init_filesCreateFile2 = __esm(() => {
|
|
|
42971
43146
|
description: `Upload a file
|
|
42972
43147
|
|
|
42973
43148
|
Uploads a new file. Maximum file size is 500MB.`,
|
|
42974
|
-
args:
|
|
42975
|
-
tool: async (client,
|
|
42976
|
-
const [result, apiCall] = await filesCreateFile(client,
|
|
43149
|
+
args: args4,
|
|
43150
|
+
tool: async (client, args5, ctx) => {
|
|
43151
|
+
const [result, apiCall] = await filesCreateFile(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42977
43152
|
if (!result.ok) {
|
|
42978
43153
|
return {
|
|
42979
43154
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43045,9 +43220,9 @@ var init_deletefileop = __esm(() => {
|
|
|
43045
43220
|
|
|
43046
43221
|
// src/funcs/filesDeleteFile.ts
|
|
43047
43222
|
function filesDeleteFile(client$, request, options) {
|
|
43048
|
-
return new APIPromise($
|
|
43223
|
+
return new APIPromise($do6(client$, request, options));
|
|
43049
43224
|
}
|
|
43050
|
-
async function $
|
|
43225
|
+
async function $do6(client$, request, options) {
|
|
43051
43226
|
const parsed$ = safeParse(request, (value$) => DeleteFileRequest$zodSchema.parse(value$), "Input validation failed");
|
|
43052
43227
|
if (!parsed$.ok) {
|
|
43053
43228
|
return [parsed$, { status: "invalid" }];
|
|
@@ -43134,12 +43309,12 @@ var init_filesDeleteFile = __esm(() => {
|
|
|
43134
43309
|
});
|
|
43135
43310
|
|
|
43136
43311
|
// src/mcp-server/tools/filesDeleteFile.ts
|
|
43137
|
-
var
|
|
43312
|
+
var args5, tool$filesDeleteFile;
|
|
43138
43313
|
var init_filesDeleteFile2 = __esm(() => {
|
|
43139
43314
|
init_filesDeleteFile();
|
|
43140
43315
|
init_deletefileop();
|
|
43141
43316
|
init_tools();
|
|
43142
|
-
|
|
43317
|
+
args5 = {
|
|
43143
43318
|
request: DeleteFileRequest$zodSchema
|
|
43144
43319
|
};
|
|
43145
43320
|
tool$filesDeleteFile = {
|
|
@@ -43147,9 +43322,9 @@ var init_filesDeleteFile2 = __esm(() => {
|
|
|
43147
43322
|
description: `Delete a file
|
|
43148
43323
|
|
|
43149
43324
|
Deletes a file by ID.`,
|
|
43150
|
-
args:
|
|
43151
|
-
tool: async (client,
|
|
43152
|
-
const [result, apiCall] = await filesDeleteFile(client,
|
|
43325
|
+
args: args5,
|
|
43326
|
+
tool: async (client, args6, ctx) => {
|
|
43327
|
+
const [result, apiCall] = await filesDeleteFile(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43153
43328
|
if (!result.ok) {
|
|
43154
43329
|
return {
|
|
43155
43330
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43210,9 +43385,9 @@ var init_getfileop = __esm(() => {
|
|
|
43210
43385
|
|
|
43211
43386
|
// src/funcs/filesGetFile.ts
|
|
43212
43387
|
function filesGetFile(client$, request, options) {
|
|
43213
|
-
return new APIPromise($
|
|
43388
|
+
return new APIPromise($do7(client$, request, options));
|
|
43214
43389
|
}
|
|
43215
|
-
async function $
|
|
43390
|
+
async function $do7(client$, request, options) {
|
|
43216
43391
|
const parsed$ = safeParse(request, (value$) => GetFileRequest$zodSchema.parse(value$), "Input validation failed");
|
|
43217
43392
|
if (!parsed$.ok) {
|
|
43218
43393
|
return [parsed$, { status: "invalid" }];
|
|
@@ -43299,12 +43474,12 @@ var init_filesGetFile = __esm(() => {
|
|
|
43299
43474
|
});
|
|
43300
43475
|
|
|
43301
43476
|
// src/mcp-server/tools/filesGetFile.ts
|
|
43302
|
-
var
|
|
43477
|
+
var args6, tool$filesGetFile;
|
|
43303
43478
|
var init_filesGetFile2 = __esm(() => {
|
|
43304
43479
|
init_filesGetFile();
|
|
43305
43480
|
init_getfileop();
|
|
43306
43481
|
init_tools();
|
|
43307
|
-
|
|
43482
|
+
args6 = {
|
|
43308
43483
|
request: GetFileRequest$zodSchema
|
|
43309
43484
|
};
|
|
43310
43485
|
tool$filesGetFile = {
|
|
@@ -43312,9 +43487,9 @@ var init_filesGetFile2 = __esm(() => {
|
|
|
43312
43487
|
description: `Get a file
|
|
43313
43488
|
|
|
43314
43489
|
Returns a single file object by ID.`,
|
|
43315
|
-
args:
|
|
43316
|
-
tool: async (client,
|
|
43317
|
-
const [result, apiCall] = await filesGetFile(client,
|
|
43490
|
+
args: args6,
|
|
43491
|
+
tool: async (client, args7, ctx) => {
|
|
43492
|
+
const [result, apiCall] = await filesGetFile(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43318
43493
|
if (!result.ok) {
|
|
43319
43494
|
return {
|
|
43320
43495
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43378,9 +43553,9 @@ var init_listfilesop = __esm(() => {
|
|
|
43378
43553
|
|
|
43379
43554
|
// src/funcs/filesListFiles.ts
|
|
43380
43555
|
function filesListFiles(client$, request, options) {
|
|
43381
|
-
return new APIPromise($
|
|
43556
|
+
return new APIPromise($do8(client$, request, options));
|
|
43382
43557
|
}
|
|
43383
|
-
async function $
|
|
43558
|
+
async function $do8(client$, request, options) {
|
|
43384
43559
|
const parsed$ = safeParse(request, (value$) => ListFilesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
43385
43560
|
if (!parsed$.ok) {
|
|
43386
43561
|
return [parsed$, { status: "invalid" }];
|
|
@@ -43410,7 +43585,13 @@ async function $do7(client$, request, options) {
|
|
|
43410
43585
|
resolvedSecurity: requestSecurity,
|
|
43411
43586
|
securitySource: client$._options.security,
|
|
43412
43587
|
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
43413
|
-
retryCodes: options?.retryCodes || [
|
|
43588
|
+
retryCodes: options?.retryCodes || [
|
|
43589
|
+
"429",
|
|
43590
|
+
"500",
|
|
43591
|
+
"502",
|
|
43592
|
+
"503",
|
|
43593
|
+
"504"
|
|
43594
|
+
]
|
|
43414
43595
|
};
|
|
43415
43596
|
const requestRes = client$._createRequest(context, {
|
|
43416
43597
|
security: requestSecurity,
|
|
@@ -43441,11 +43622,11 @@ async function $do7(client$, request, options) {
|
|
|
43441
43622
|
HttpMeta: { Response: response, Request: req$ }
|
|
43442
43623
|
};
|
|
43443
43624
|
const [result$] = await match(json(200, ListFilesResponse$zodSchema, {
|
|
43444
|
-
key: "
|
|
43625
|
+
key: "200_application/json_object"
|
|
43445
43626
|
}), json(422, ListFilesResponse$zodSchema, {
|
|
43446
|
-
key: "
|
|
43627
|
+
key: "422_application/json_object"
|
|
43447
43628
|
}), json(429, ListFilesResponse$zodSchema, {
|
|
43448
|
-
key: "
|
|
43629
|
+
key: "429_application/json_object"
|
|
43449
43630
|
}))(response, req$, { extraFields: responseFields$ });
|
|
43450
43631
|
return [result$, { status: "complete", request: req$, response }];
|
|
43451
43632
|
}
|
|
@@ -43461,12 +43642,12 @@ var init_filesListFiles = __esm(() => {
|
|
|
43461
43642
|
});
|
|
43462
43643
|
|
|
43463
43644
|
// src/mcp-server/tools/filesListFiles.ts
|
|
43464
|
-
var
|
|
43645
|
+
var args7, tool$filesListFiles;
|
|
43465
43646
|
var init_filesListFiles2 = __esm(() => {
|
|
43466
43647
|
init_filesListFiles();
|
|
43467
43648
|
init_listfilesop();
|
|
43468
43649
|
init_tools();
|
|
43469
|
-
|
|
43650
|
+
args7 = {
|
|
43470
43651
|
request: ListFilesRequest$zodSchema
|
|
43471
43652
|
};
|
|
43472
43653
|
tool$filesListFiles = {
|
|
@@ -43474,9 +43655,9 @@ var init_filesListFiles2 = __esm(() => {
|
|
|
43474
43655
|
description: `List files
|
|
43475
43656
|
|
|
43476
43657
|
Returns a paginated list of files. Optionally you can filter by workspace.`,
|
|
43477
|
-
args:
|
|
43478
|
-
tool: async (client,
|
|
43479
|
-
const [result, apiCall] = await filesListFiles(client,
|
|
43658
|
+
args: args7,
|
|
43659
|
+
tool: async (client, args8, ctx) => {
|
|
43660
|
+
const [result, apiCall] = await filesListFiles(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43480
43661
|
if (!result.ok) {
|
|
43481
43662
|
return {
|
|
43482
43663
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43577,9 +43758,9 @@ var init_updatefileop = __esm(() => {
|
|
|
43577
43758
|
|
|
43578
43759
|
// src/funcs/filesUpdateFile.ts
|
|
43579
43760
|
function filesUpdateFile(client$, request, options) {
|
|
43580
|
-
return new APIPromise($
|
|
43761
|
+
return new APIPromise($do9(client$, request, options));
|
|
43581
43762
|
}
|
|
43582
|
-
async function $
|
|
43763
|
+
async function $do9(client$, request, options) {
|
|
43583
43764
|
const parsed$ = safeParse(request, (value$) => UpdateFileRequest$zodSchema.parse(value$), "Input validation failed");
|
|
43584
43765
|
if (!parsed$.ok) {
|
|
43585
43766
|
return [parsed$, { status: "invalid" }];
|
|
@@ -43667,12 +43848,12 @@ var init_filesUpdateFile = __esm(() => {
|
|
|
43667
43848
|
});
|
|
43668
43849
|
|
|
43669
43850
|
// src/mcp-server/tools/filesUpdateFile.ts
|
|
43670
|
-
var
|
|
43851
|
+
var args8, tool$filesUpdateFile;
|
|
43671
43852
|
var init_filesUpdateFile2 = __esm(() => {
|
|
43672
43853
|
init_filesUpdateFile();
|
|
43673
43854
|
init_updatefileop();
|
|
43674
43855
|
init_tools();
|
|
43675
|
-
|
|
43856
|
+
args8 = {
|
|
43676
43857
|
request: UpdateFileRequest$zodSchema
|
|
43677
43858
|
};
|
|
43678
43859
|
tool$filesUpdateFile = {
|
|
@@ -43680,9 +43861,9 @@ var init_filesUpdateFile2 = __esm(() => {
|
|
|
43680
43861
|
description: `Update a file
|
|
43681
43862
|
|
|
43682
43863
|
Updates a file object.`,
|
|
43683
|
-
args:
|
|
43684
|
-
tool: async (client,
|
|
43685
|
-
const [result, apiCall] = await filesUpdateFile(client,
|
|
43864
|
+
args: args8,
|
|
43865
|
+
tool: async (client, args9, ctx) => {
|
|
43866
|
+
const [result, apiCall] = await filesUpdateFile(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43686
43867
|
if (!result.ok) {
|
|
43687
43868
|
return {
|
|
43688
43869
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43712,9 +43893,9 @@ var init_getv1op = __esm(() => {
|
|
|
43712
43893
|
|
|
43713
43894
|
// src/funcs/healthCheckGetV1.ts
|
|
43714
43895
|
function healthCheckGetV1(client$, options) {
|
|
43715
|
-
return new APIPromise($
|
|
43896
|
+
return new APIPromise($do10(client$, options));
|
|
43716
43897
|
}
|
|
43717
|
-
async function $
|
|
43898
|
+
async function $do10(client$, options) {
|
|
43718
43899
|
const path$ = pathToFunc("/v1")();
|
|
43719
43900
|
const headers$ = new Headers(compactMap({
|
|
43720
43901
|
Accept: "application/json"
|
|
@@ -43810,22 +43991,20 @@ var init_getv1pingop = __esm(() => {
|
|
|
43810
43991
|
|
|
43811
43992
|
// src/funcs/healthCheckGetV1Ping.ts
|
|
43812
43993
|
function healthCheckGetV1Ping(client$, options) {
|
|
43813
|
-
return new APIPromise($
|
|
43994
|
+
return new APIPromise($do11(client$, options));
|
|
43814
43995
|
}
|
|
43815
|
-
async function $
|
|
43996
|
+
async function $do11(client$, options) {
|
|
43816
43997
|
const path$ = pathToFunc("/v1/ping")();
|
|
43817
43998
|
const headers$ = new Headers(compactMap({
|
|
43818
43999
|
Accept: "application/json"
|
|
43819
44000
|
}));
|
|
43820
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
43821
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43822
44001
|
const context = {
|
|
43823
44002
|
options: client$._options,
|
|
43824
44003
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
43825
44004
|
operationID: "get_/v1/ping",
|
|
43826
44005
|
oAuth2Scopes: [],
|
|
43827
|
-
resolvedSecurity:
|
|
43828
|
-
securitySource:
|
|
44006
|
+
resolvedSecurity: null,
|
|
44007
|
+
securitySource: null,
|
|
43829
44008
|
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
43830
44009
|
retryCodes: options?.retryCodes || [
|
|
43831
44010
|
"429",
|
|
@@ -43836,7 +44015,6 @@ async function $do10(client$, options) {
|
|
|
43836
44015
|
]
|
|
43837
44016
|
};
|
|
43838
44017
|
const requestRes = client$._createRequest(context, {
|
|
43839
|
-
security: requestSecurity,
|
|
43840
44018
|
method: "GET",
|
|
43841
44019
|
baseURL: options?.serverURL,
|
|
43842
44020
|
path: path$,
|
|
@@ -43867,7 +44045,6 @@ async function $do10(client$, options) {
|
|
|
43867
44045
|
var init_healthCheckGetV1Ping = __esm(() => {
|
|
43868
44046
|
init_matchers();
|
|
43869
44047
|
init_primitives();
|
|
43870
|
-
init_security();
|
|
43871
44048
|
init_url();
|
|
43872
44049
|
init_getv1pingop();
|
|
43873
44050
|
init_async();
|
|
@@ -43880,7 +44057,7 @@ var init_healthCheckGetV1Ping2 = __esm(() => {
|
|
|
43880
44057
|
init_tools();
|
|
43881
44058
|
tool$healthCheckGetV1Ping = {
|
|
43882
44059
|
name: "health-check-get-v1-ping",
|
|
43883
|
-
description: `Ping`,
|
|
44060
|
+
description: `Ping Pong`,
|
|
43884
44061
|
tool: async (client, ctx) => {
|
|
43885
44062
|
const [result, apiCall] = await healthCheckGetV1Ping(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43886
44063
|
if (!result.ok) {
|
|
@@ -43981,9 +44158,9 @@ var init_createtaskop = __esm(() => {
|
|
|
43981
44158
|
|
|
43982
44159
|
// src/funcs/tasksCreateTask.ts
|
|
43983
44160
|
function tasksCreateTask(client$, request, options) {
|
|
43984
|
-
return new APIPromise($
|
|
44161
|
+
return new APIPromise($do12(client$, request, options));
|
|
43985
44162
|
}
|
|
43986
|
-
async function $
|
|
44163
|
+
async function $do12(client$, request, options) {
|
|
43987
44164
|
const parsed$ = safeParse(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
43988
44165
|
if (!parsed$.ok) {
|
|
43989
44166
|
return [parsed$, { status: "invalid" }];
|
|
@@ -44059,12 +44236,12 @@ var init_tasksCreateTask = __esm(() => {
|
|
|
44059
44236
|
});
|
|
44060
44237
|
|
|
44061
44238
|
// src/mcp-server/tools/tasksCreateTask.ts
|
|
44062
|
-
var
|
|
44239
|
+
var args9, tool$tasksCreateTask;
|
|
44063
44240
|
var init_tasksCreateTask2 = __esm(() => {
|
|
44064
44241
|
init_tasksCreateTask();
|
|
44065
44242
|
init_createtaskop();
|
|
44066
44243
|
init_tools();
|
|
44067
|
-
|
|
44244
|
+
args9 = {
|
|
44068
44245
|
request: CreateTaskRequest$zodSchema
|
|
44069
44246
|
};
|
|
44070
44247
|
tool$tasksCreateTask = {
|
|
@@ -44072,9 +44249,9 @@ var init_tasksCreateTask2 = __esm(() => {
|
|
|
44072
44249
|
description: `Create a task
|
|
44073
44250
|
|
|
44074
44251
|
Creates a new task and returns the created task object.`,
|
|
44075
|
-
args:
|
|
44076
|
-
tool: async (client,
|
|
44077
|
-
const [result, apiCall] = await tasksCreateTask(client,
|
|
44252
|
+
args: args9,
|
|
44253
|
+
tool: async (client, args10, ctx) => {
|
|
44254
|
+
const [result, apiCall] = await tasksCreateTask(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44078
44255
|
if (!result.ok) {
|
|
44079
44256
|
return {
|
|
44080
44257
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44130,9 +44307,9 @@ var init_deletetaskop = __esm(() => {
|
|
|
44130
44307
|
|
|
44131
44308
|
// src/funcs/tasksDeleteTask.ts
|
|
44132
44309
|
function tasksDeleteTask(client$, request, options) {
|
|
44133
|
-
return new APIPromise($
|
|
44310
|
+
return new APIPromise($do13(client$, request, options));
|
|
44134
44311
|
}
|
|
44135
|
-
async function $
|
|
44312
|
+
async function $do13(client$, request, options) {
|
|
44136
44313
|
const parsed$ = safeParse(request, (value$) => DeleteTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
44137
44314
|
if (!parsed$.ok) {
|
|
44138
44315
|
return [parsed$, { status: "invalid" }];
|
|
@@ -44213,12 +44390,12 @@ var init_tasksDeleteTask = __esm(() => {
|
|
|
44213
44390
|
});
|
|
44214
44391
|
|
|
44215
44392
|
// src/mcp-server/tools/tasksDeleteTask.ts
|
|
44216
|
-
var
|
|
44393
|
+
var args10, tool$tasksDeleteTask;
|
|
44217
44394
|
var init_tasksDeleteTask2 = __esm(() => {
|
|
44218
44395
|
init_tasksDeleteTask();
|
|
44219
44396
|
init_deletetaskop();
|
|
44220
44397
|
init_tools();
|
|
44221
|
-
|
|
44398
|
+
args10 = {
|
|
44222
44399
|
request: DeleteTaskRequest$zodSchema
|
|
44223
44400
|
};
|
|
44224
44401
|
tool$tasksDeleteTask = {
|
|
@@ -44226,9 +44403,9 @@ var init_tasksDeleteTask2 = __esm(() => {
|
|
|
44226
44403
|
description: `Delete a task
|
|
44227
44404
|
|
|
44228
44405
|
Deletes a task by ID.`,
|
|
44229
|
-
args:
|
|
44230
|
-
tool: async (client,
|
|
44231
|
-
const [result, apiCall] = await tasksDeleteTask(client,
|
|
44406
|
+
args: args10,
|
|
44407
|
+
tool: async (client, args11, ctx) => {
|
|
44408
|
+
const [result, apiCall] = await tasksDeleteTask(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44232
44409
|
if (!result.ok) {
|
|
44233
44410
|
return {
|
|
44234
44411
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44284,9 +44461,9 @@ var init_gettaskop = __esm(() => {
|
|
|
44284
44461
|
|
|
44285
44462
|
// src/funcs/tasksGetTask.ts
|
|
44286
44463
|
function tasksGetTask(client$, request, options) {
|
|
44287
|
-
return new APIPromise($
|
|
44464
|
+
return new APIPromise($do14(client$, request, options));
|
|
44288
44465
|
}
|
|
44289
|
-
async function $
|
|
44466
|
+
async function $do14(client$, request, options) {
|
|
44290
44467
|
const parsed$ = safeParse(request, (value$) => GetTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
44291
44468
|
if (!parsed$.ok) {
|
|
44292
44469
|
return [parsed$, { status: "invalid" }];
|
|
@@ -44367,12 +44544,12 @@ var init_tasksGetTask = __esm(() => {
|
|
|
44367
44544
|
});
|
|
44368
44545
|
|
|
44369
44546
|
// src/mcp-server/tools/tasksGetTask.ts
|
|
44370
|
-
var
|
|
44547
|
+
var args11, tool$tasksGetTask;
|
|
44371
44548
|
var init_tasksGetTask2 = __esm(() => {
|
|
44372
44549
|
init_tasksGetTask();
|
|
44373
44550
|
init_gettaskop();
|
|
44374
44551
|
init_tools();
|
|
44375
|
-
|
|
44552
|
+
args11 = {
|
|
44376
44553
|
request: GetTaskRequest$zodSchema
|
|
44377
44554
|
};
|
|
44378
44555
|
tool$tasksGetTask = {
|
|
@@ -44380,9 +44557,9 @@ var init_tasksGetTask2 = __esm(() => {
|
|
|
44380
44557
|
description: `Get a task
|
|
44381
44558
|
|
|
44382
44559
|
Returns a single task object by ID.`,
|
|
44383
|
-
args:
|
|
44384
|
-
tool: async (client,
|
|
44385
|
-
const [result, apiCall] = await tasksGetTask(client,
|
|
44560
|
+
args: args11,
|
|
44561
|
+
tool: async (client, args12, ctx) => {
|
|
44562
|
+
const [result, apiCall] = await tasksGetTask(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44386
44563
|
if (!result.ok) {
|
|
44387
44564
|
return {
|
|
44388
44565
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44402,7 +44579,6 @@ var init_listtasksop = __esm(() => {
|
|
|
44402
44579
|
init_pagination();
|
|
44403
44580
|
init_task();
|
|
44404
44581
|
ListTasksRequest$zodSchema = objectType({
|
|
44405
|
-
clientId: stringType().optional(),
|
|
44406
44582
|
cursor: stringType().optional(),
|
|
44407
44583
|
limit: numberType().default(20),
|
|
44408
44584
|
workspaceId: stringType().optional()
|
|
@@ -44442,9 +44618,9 @@ var init_listtasksop = __esm(() => {
|
|
|
44442
44618
|
|
|
44443
44619
|
// src/funcs/tasksListTasks.ts
|
|
44444
44620
|
function tasksListTasks(client$, request, options) {
|
|
44445
|
-
return new APIPromise($
|
|
44621
|
+
return new APIPromise($do15(client$, request, options));
|
|
44446
44622
|
}
|
|
44447
|
-
async function $
|
|
44623
|
+
async function $do15(client$, request, options) {
|
|
44448
44624
|
const parsed$ = safeParse(request, (value$) => ListTasksRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
44449
44625
|
if (!parsed$.ok) {
|
|
44450
44626
|
return [parsed$, { status: "invalid" }];
|
|
@@ -44453,7 +44629,6 @@ async function $do14(client$, request, options) {
|
|
|
44453
44629
|
const body$ = null;
|
|
44454
44630
|
const path$ = pathToFunc("/v1/tasks")();
|
|
44455
44631
|
const query$ = encodeFormQuery({
|
|
44456
|
-
clientId: payload$?.clientId,
|
|
44457
44632
|
cursor: payload$?.cursor,
|
|
44458
44633
|
limit: payload$?.limit,
|
|
44459
44634
|
workspaceId: payload$?.workspaceId
|
|
@@ -44471,7 +44646,13 @@ async function $do14(client$, request, options) {
|
|
|
44471
44646
|
resolvedSecurity: requestSecurity,
|
|
44472
44647
|
securitySource: client$._options.security,
|
|
44473
44648
|
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
44474
|
-
retryCodes: options?.retryCodes || [
|
|
44649
|
+
retryCodes: options?.retryCodes || [
|
|
44650
|
+
"429",
|
|
44651
|
+
"500",
|
|
44652
|
+
"502",
|
|
44653
|
+
"503",
|
|
44654
|
+
"504"
|
|
44655
|
+
]
|
|
44475
44656
|
};
|
|
44476
44657
|
const requestRes = client$._createRequest(context, {
|
|
44477
44658
|
security: requestSecurity,
|
|
@@ -44502,9 +44683,9 @@ async function $do14(client$, request, options) {
|
|
|
44502
44683
|
HttpMeta: { Response: response, Request: req$ }
|
|
44503
44684
|
};
|
|
44504
44685
|
const [result$] = await match(json(200, ListTasksResponse$zodSchema, {
|
|
44505
|
-
key: "
|
|
44686
|
+
key: "200_application/json_object"
|
|
44506
44687
|
}), json(422, ListTasksResponse$zodSchema, {
|
|
44507
|
-
key: "
|
|
44688
|
+
key: "422_application/json_object"
|
|
44508
44689
|
}))(response, req$, { extraFields: responseFields$ });
|
|
44509
44690
|
return [result$, { status: "complete", request: req$, response }];
|
|
44510
44691
|
}
|
|
@@ -44520,12 +44701,12 @@ var init_tasksListTasks = __esm(() => {
|
|
|
44520
44701
|
});
|
|
44521
44702
|
|
|
44522
44703
|
// src/mcp-server/tools/tasksListTasks.ts
|
|
44523
|
-
var
|
|
44704
|
+
var args12, tool$tasksListTasks;
|
|
44524
44705
|
var init_tasksListTasks2 = __esm(() => {
|
|
44525
44706
|
init_tasksListTasks();
|
|
44526
44707
|
init_listtasksop();
|
|
44527
44708
|
init_tools();
|
|
44528
|
-
|
|
44709
|
+
args12 = {
|
|
44529
44710
|
request: ListTasksRequest$zodSchema.optional()
|
|
44530
44711
|
};
|
|
44531
44712
|
tool$tasksListTasks = {
|
|
@@ -44533,9 +44714,9 @@ var init_tasksListTasks2 = __esm(() => {
|
|
|
44533
44714
|
description: `List tasks
|
|
44534
44715
|
|
|
44535
44716
|
Returns a paginated list of tasks. Optionally you can filter by client or workspace.`,
|
|
44536
|
-
args:
|
|
44537
|
-
tool: async (client,
|
|
44538
|
-
const [result, apiCall] = await tasksListTasks(client,
|
|
44717
|
+
args: args12,
|
|
44718
|
+
tool: async (client, args13, ctx) => {
|
|
44719
|
+
const [result, apiCall] = await tasksListTasks(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44539
44720
|
if (!result.ok) {
|
|
44540
44721
|
return {
|
|
44541
44722
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44642,9 +44823,9 @@ var init_updatetaskop = __esm(() => {
|
|
|
44642
44823
|
|
|
44643
44824
|
// src/funcs/tasksUpdateTask.ts
|
|
44644
44825
|
function tasksUpdateTask(client$, request, options) {
|
|
44645
|
-
return new APIPromise($
|
|
44826
|
+
return new APIPromise($do16(client$, request, options));
|
|
44646
44827
|
}
|
|
44647
|
-
async function $
|
|
44828
|
+
async function $do16(client$, request, options) {
|
|
44648
44829
|
const parsed$ = safeParse(request, (value$) => UpdateTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
44649
44830
|
if (!parsed$.ok) {
|
|
44650
44831
|
return [parsed$, { status: "invalid" }];
|
|
@@ -44722,12 +44903,12 @@ var init_tasksUpdateTask = __esm(() => {
|
|
|
44722
44903
|
});
|
|
44723
44904
|
|
|
44724
44905
|
// src/mcp-server/tools/tasksUpdateTask.ts
|
|
44725
|
-
var
|
|
44906
|
+
var args13, tool$tasksUpdateTask;
|
|
44726
44907
|
var init_tasksUpdateTask2 = __esm(() => {
|
|
44727
44908
|
init_tasksUpdateTask();
|
|
44728
44909
|
init_updatetaskop();
|
|
44729
44910
|
init_tools();
|
|
44730
|
-
|
|
44911
|
+
args13 = {
|
|
44731
44912
|
request: UpdateTaskRequest$zodSchema
|
|
44732
44913
|
};
|
|
44733
44914
|
tool$tasksUpdateTask = {
|
|
@@ -44735,9 +44916,9 @@ var init_tasksUpdateTask2 = __esm(() => {
|
|
|
44735
44916
|
description: `Update a task
|
|
44736
44917
|
|
|
44737
44918
|
Updates an existing task object.`,
|
|
44738
|
-
args:
|
|
44739
|
-
tool: async (client,
|
|
44740
|
-
const [result, apiCall] = await tasksUpdateTask(client,
|
|
44919
|
+
args: args13,
|
|
44920
|
+
tool: async (client, args14, ctx) => {
|
|
44921
|
+
const [result, apiCall] = await tasksUpdateTask(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44741
44922
|
if (!result.ok) {
|
|
44742
44923
|
return {
|
|
44743
44924
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44812,9 +44993,9 @@ var init_getworkspaceop = __esm(() => {
|
|
|
44812
44993
|
|
|
44813
44994
|
// src/funcs/workspacesGetWorkspace.ts
|
|
44814
44995
|
function workspacesGetWorkspace(client$, request, options) {
|
|
44815
|
-
return new APIPromise($
|
|
44996
|
+
return new APIPromise($do17(client$, request, options));
|
|
44816
44997
|
}
|
|
44817
|
-
async function $
|
|
44998
|
+
async function $do17(client$, request, options) {
|
|
44818
44999
|
const parsed$ = safeParse(request, (value$) => GetWorkspaceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
44819
45000
|
if (!parsed$.ok) {
|
|
44820
45001
|
return [parsed$, { status: "invalid" }];
|
|
@@ -44901,12 +45082,12 @@ var init_workspacesGetWorkspace = __esm(() => {
|
|
|
44901
45082
|
});
|
|
44902
45083
|
|
|
44903
45084
|
// src/mcp-server/tools/workspacesGetWorkspace.ts
|
|
44904
|
-
var
|
|
45085
|
+
var args14, tool$workspacesGetWorkspace;
|
|
44905
45086
|
var init_workspacesGetWorkspace2 = __esm(() => {
|
|
44906
45087
|
init_workspacesGetWorkspace();
|
|
44907
45088
|
init_getworkspaceop();
|
|
44908
45089
|
init_tools();
|
|
44909
|
-
|
|
45090
|
+
args14 = {
|
|
44910
45091
|
request: GetWorkspaceRequest$zodSchema
|
|
44911
45092
|
};
|
|
44912
45093
|
tool$workspacesGetWorkspace = {
|
|
@@ -44914,9 +45095,9 @@ var init_workspacesGetWorkspace2 = __esm(() => {
|
|
|
44914
45095
|
description: `Get a workspace
|
|
44915
45096
|
|
|
44916
45097
|
Returns a single workspace object by ID.`,
|
|
44917
|
-
args:
|
|
44918
|
-
tool: async (client,
|
|
44919
|
-
const [result, apiCall] = await workspacesGetWorkspace(client,
|
|
45098
|
+
args: args14,
|
|
45099
|
+
tool: async (client, args15, ctx) => {
|
|
45100
|
+
const [result, apiCall] = await workspacesGetWorkspace(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44920
45101
|
if (!result.ok) {
|
|
44921
45102
|
return {
|
|
44922
45103
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44979,9 +45160,9 @@ var init_listworkspacesop = __esm(() => {
|
|
|
44979
45160
|
|
|
44980
45161
|
// src/funcs/workspacesListWorkspaces.ts
|
|
44981
45162
|
function workspacesListWorkspaces(client$, request, options) {
|
|
44982
|
-
return new APIPromise($
|
|
45163
|
+
return new APIPromise($do18(client$, request, options));
|
|
44983
45164
|
}
|
|
44984
|
-
async function $
|
|
45165
|
+
async function $do18(client$, request, options) {
|
|
44985
45166
|
const parsed$ = safeParse(request, (value$) => ListWorkspacesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
44986
45167
|
if (!parsed$.ok) {
|
|
44987
45168
|
return [parsed$, { status: "invalid" }];
|
|
@@ -45010,7 +45191,13 @@ async function $do17(client$, request, options) {
|
|
|
45010
45191
|
resolvedSecurity: requestSecurity,
|
|
45011
45192
|
securitySource: client$._options.security,
|
|
45012
45193
|
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
45013
|
-
retryCodes: options?.retryCodes || [
|
|
45194
|
+
retryCodes: options?.retryCodes || [
|
|
45195
|
+
"429",
|
|
45196
|
+
"500",
|
|
45197
|
+
"502",
|
|
45198
|
+
"503",
|
|
45199
|
+
"504"
|
|
45200
|
+
]
|
|
45014
45201
|
};
|
|
45015
45202
|
const requestRes = client$._createRequest(context, {
|
|
45016
45203
|
security: requestSecurity,
|
|
@@ -45041,11 +45228,11 @@ async function $do17(client$, request, options) {
|
|
|
45041
45228
|
HttpMeta: { Response: response, Request: req$ }
|
|
45042
45229
|
};
|
|
45043
45230
|
const [result$] = await match(json(200, ListWorkspacesResponse$zodSchema, {
|
|
45044
|
-
key: "
|
|
45231
|
+
key: "200_application/json_object"
|
|
45045
45232
|
}), json(422, ListWorkspacesResponse$zodSchema, {
|
|
45046
|
-
key: "
|
|
45233
|
+
key: "422_application/json_object"
|
|
45047
45234
|
}), json(429, ListWorkspacesResponse$zodSchema, {
|
|
45048
|
-
key: "
|
|
45235
|
+
key: "429_application/json_object"
|
|
45049
45236
|
}))(response, req$, { extraFields: responseFields$ });
|
|
45050
45237
|
return [result$, { status: "complete", request: req$, response }];
|
|
45051
45238
|
}
|
|
@@ -45061,12 +45248,12 @@ var init_workspacesListWorkspaces = __esm(() => {
|
|
|
45061
45248
|
});
|
|
45062
45249
|
|
|
45063
45250
|
// src/mcp-server/tools/workspacesListWorkspaces.ts
|
|
45064
|
-
var
|
|
45251
|
+
var args15, tool$workspacesListWorkspaces;
|
|
45065
45252
|
var init_workspacesListWorkspaces2 = __esm(() => {
|
|
45066
45253
|
init_workspacesListWorkspaces();
|
|
45067
45254
|
init_listworkspacesop();
|
|
45068
45255
|
init_tools();
|
|
45069
|
-
|
|
45256
|
+
args15 = {
|
|
45070
45257
|
request: ListWorkspacesRequest$zodSchema
|
|
45071
45258
|
};
|
|
45072
45259
|
tool$workspacesListWorkspaces = {
|
|
@@ -45074,9 +45261,9 @@ var init_workspacesListWorkspaces2 = __esm(() => {
|
|
|
45074
45261
|
description: `List workspaces
|
|
45075
45262
|
|
|
45076
45263
|
Returns a paginated list of workspaces.`,
|
|
45077
|
-
args:
|
|
45078
|
-
tool: async (client,
|
|
45079
|
-
const [result, apiCall] = await workspacesListWorkspaces(client,
|
|
45264
|
+
args: args15,
|
|
45265
|
+
tool: async (client, args16, ctx) => {
|
|
45266
|
+
const [result, apiCall] = await workspacesListWorkspaces(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45080
45267
|
if (!result.ok) {
|
|
45081
45268
|
return {
|
|
45082
45269
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45093,16 +45280,16 @@ Returns a paginated list of workspaces.`,
|
|
|
45093
45280
|
function createMCPServer(deps) {
|
|
45094
45281
|
const server = new McpServer({
|
|
45095
45282
|
name: "Steuerboard",
|
|
45096
|
-
version: "0.0.
|
|
45283
|
+
version: "0.0.7"
|
|
45097
45284
|
});
|
|
45098
45285
|
const getClient = deps.getSDK || (() => new SteuerboardCore({
|
|
45099
45286
|
security: deps.security,
|
|
45100
45287
|
serverURL: deps.serverURL,
|
|
45101
45288
|
serverIdx: deps.serverIdx,
|
|
45102
45289
|
debugLogger: deps.logger.level === "debug" ? {
|
|
45103
|
-
log: (...
|
|
45104
|
-
group: (...
|
|
45105
|
-
groupEnd: (...
|
|
45290
|
+
log: (...args16) => console.log(...args16),
|
|
45291
|
+
group: (...args16) => console.group(...args16),
|
|
45292
|
+
groupEnd: (...args16) => console.groupEnd(...args16)
|
|
45106
45293
|
} : undefined
|
|
45107
45294
|
}));
|
|
45108
45295
|
const scopes = new Set(deps.scopes);
|
|
@@ -45116,6 +45303,7 @@ function createMCPServer(deps) {
|
|
|
45116
45303
|
tool(tool$healthCheckGetV1Ping);
|
|
45117
45304
|
tool(tool$authGetV1Me);
|
|
45118
45305
|
tool(tool$adminClientsListClients);
|
|
45306
|
+
tool(tool$adminClientsCreateClient);
|
|
45119
45307
|
tool(tool$adminClientsGetClient);
|
|
45120
45308
|
tool(tool$workspacesListWorkspaces);
|
|
45121
45309
|
tool(tool$workspacesGetWorkspace);
|
|
@@ -45136,6 +45324,7 @@ var init_server2 = __esm(() => {
|
|
|
45136
45324
|
init_core();
|
|
45137
45325
|
init_resources();
|
|
45138
45326
|
init_tools();
|
|
45327
|
+
init_adminClientsCreateClient2();
|
|
45139
45328
|
init_adminClientsGetClient2();
|
|
45140
45329
|
init_adminClientsListClients2();
|
|
45141
45330
|
init_authGetV1Me2();
|
|
@@ -46348,7 +46537,7 @@ var routes = ln({
|
|
|
46348
46537
|
var app = _e(routes, {
|
|
46349
46538
|
name: "mcp",
|
|
46350
46539
|
versionInfo: {
|
|
46351
|
-
currentVersion: "0.0.
|
|
46540
|
+
currentVersion: "0.0.7"
|
|
46352
46541
|
}
|
|
46353
46542
|
});
|
|
46354
46543
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -46356,5 +46545,5 @@ export {
|
|
|
46356
46545
|
app
|
|
46357
46546
|
};
|
|
46358
46547
|
|
|
46359
|
-
//# debugId=
|
|
46548
|
+
//# debugId=3CA82B532A53DFEB64756E2164756E21
|
|
46360
46549
|
//# sourceMappingURL=mcp-server.js.map
|