@steuerboard/mcp 0.0.1 → 0.1.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/README.md +29 -46
- package/bin/mcp-server.js +1197 -442
- package/bin/mcp-server.js.map +63 -47
- 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 +89 -0
- package/esm/src/funcs/adminClientsCreateClient.js.map +1 -0
- package/esm/src/funcs/adminClientsGetClient.js +4 -6
- package/esm/src/funcs/adminClientsGetClient.js.map +1 -1
- package/esm/src/funcs/adminClientsListClients.d.ts.map +1 -1
- package/esm/src/funcs/adminClientsListClients.js +24 -18
- package/esm/src/funcs/adminClientsListClients.js.map +1 -1
- package/esm/src/funcs/{authGetV1Me.d.ts → authMe.d.ts} +3 -3
- package/esm/src/funcs/authMe.d.ts.map +1 -0
- package/esm/src/funcs/{authGetV1Me.js → authMe.js} +5 -5
- package/esm/src/funcs/authMe.js.map +1 -0
- package/esm/src/funcs/filesCreateFile.js +31 -33
- package/esm/src/funcs/filesCreateFile.js.map +1 -1
- package/esm/src/funcs/filesDeleteFile.js +4 -6
- package/esm/src/funcs/filesDeleteFile.js.map +1 -1
- package/esm/src/funcs/filesGetFile.js +4 -4
- package/esm/src/funcs/filesGetFile.js.map +1 -1
- package/esm/src/funcs/filesListFiles.d.ts.map +1 -1
- package/esm/src/funcs/filesListFiles.js +19 -13
- package/esm/src/funcs/filesListFiles.js.map +1 -1
- package/esm/src/funcs/filesUpdateFile.js +4 -4
- package/esm/src/funcs/filesUpdateFile.js.map +1 -1
- package/esm/src/funcs/{healthCheckGetV1.d.ts → healthIndex.d.ts} +3 -3
- package/esm/src/funcs/{authGetV1Me.d.ts.map → healthIndex.d.ts.map} +1 -1
- package/esm/src/funcs/{healthCheckGetV1.js → healthIndex.js} +5 -5
- package/esm/src/funcs/healthIndex.js.map +1 -0
- package/esm/src/funcs/{healthCheckGetV1Ping.d.ts → healthPing.d.ts} +4 -4
- package/esm/src/funcs/healthPing.d.ts.map +1 -0
- package/esm/src/funcs/{healthCheckGetV1Ping.js → healthPing.js} +8 -12
- package/esm/src/funcs/healthPing.js.map +1 -0
- package/esm/src/funcs/tasksCreateTask.js +5 -1
- package/esm/src/funcs/tasksCreateTask.js.map +1 -1
- package/esm/src/funcs/tasksDeleteTask.js +8 -4
- package/esm/src/funcs/tasksDeleteTask.js.map +1 -1
- package/esm/src/funcs/tasksGetTask.js +8 -4
- package/esm/src/funcs/tasksGetTask.js.map +1 -1
- package/esm/src/funcs/tasksListTasks.d.ts +1 -1
- package/esm/src/funcs/tasksListTasks.d.ts.map +1 -1
- package/esm/src/funcs/tasksListTasks.js +27 -14
- package/esm/src/funcs/tasksListTasks.js.map +1 -1
- package/esm/src/funcs/tasksUpdateTask.js +5 -1
- package/esm/src/funcs/tasksUpdateTask.js.map +1 -1
- package/esm/src/funcs/workspacesCreateWorkspace.d.ts +16 -0
- package/esm/src/funcs/workspacesCreateWorkspace.d.ts.map +1 -0
- package/esm/src/funcs/workspacesCreateWorkspace.js +92 -0
- package/esm/src/funcs/workspacesCreateWorkspace.js.map +1 -0
- package/esm/src/funcs/workspacesGetWorkspace.js +4 -6
- package/esm/src/funcs/workspacesGetWorkspace.js.map +1 -1
- package/esm/src/funcs/workspacesListWorkspaces.d.ts.map +1 -1
- package/esm/src/funcs/workspacesListWorkspaces.js +19 -11
- 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 +4 -6
- package/esm/src/lib/config.js.map +1 -1
- package/esm/src/mcp-server/mcp-server.js +1 -1
- package/esm/src/mcp-server/mcp-server.js.map +1 -1
- package/esm/src/mcp-server/server.d.ts.map +1 -1
- package/esm/src/mcp-server/server.js +24 -19
- 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/authMe.d.ts +3 -0
- package/esm/src/mcp-server/tools/authMe.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/{healthCheckGetV1.js → authMe.js} +6 -6
- package/esm/src/mcp-server/tools/authMe.js.map +1 -0
- package/esm/src/mcp-server/tools/healthIndex.d.ts +3 -0
- package/esm/src/mcp-server/tools/healthIndex.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/{authGetV1Me.js → healthIndex.js} +6 -6
- package/esm/src/mcp-server/tools/healthIndex.js.map +1 -0
- package/esm/src/mcp-server/tools/healthPing.d.ts +3 -0
- package/esm/src/mcp-server/tools/healthPing.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/{healthCheckGetV1Ping.js → healthPing.js} +6 -6
- package/esm/src/mcp-server/tools/healthPing.js.map +1 -0
- package/esm/src/mcp-server/tools/tasksListTasks.d.ts +1 -1
- package/esm/src/mcp-server/tools/tasksListTasks.js +1 -1
- package/esm/src/mcp-server/tools/tasksListTasks.js.map +1 -1
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts +7 -0
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js +28 -0
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js.map +1 -0
- 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/autherror.d.ts +13 -0
- package/esm/src/models/autherror.d.ts.map +1 -0
- package/esm/src/models/autherror.js +17 -0
- package/esm/src/models/autherror.js.map +1 -0
- package/esm/src/models/badrequest.d.ts +13 -0
- package/esm/src/models/badrequest.d.ts.map +1 -0
- package/esm/src/models/badrequest.js +17 -0
- package/esm/src/models/badrequest.js.map +1 -0
- 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 +51 -0
- package/esm/src/models/createclientop.d.ts.map +1 -0
- package/esm/src/models/createclientop.js +50 -0
- package/esm/src/models/createclientop.js.map +1 -0
- package/esm/src/models/createfileop.d.ts +29 -9
- package/esm/src/models/createfileop.d.ts.map +1 -1
- package/esm/src/models/createfileop.js +29 -5
- package/esm/src/models/createfileop.js.map +1 -1
- package/esm/src/models/createtaskop.d.ts +25 -4
- package/esm/src/models/createtaskop.d.ts.map +1 -1
- package/esm/src/models/createtaskop.js +22 -3
- package/esm/src/models/createtaskop.js.map +1 -1
- package/esm/src/models/createworkspaceop.d.ts +59 -0
- package/esm/src/models/createworkspaceop.d.ts.map +1 -0
- package/esm/src/models/createworkspaceop.js +57 -0
- package/esm/src/models/createworkspaceop.js.map +1 -0
- package/esm/src/models/deletefileop.d.ts +19 -12
- package/esm/src/models/deletefileop.d.ts.map +1 -1
- package/esm/src/models/deletefileop.js +20 -7
- package/esm/src/models/deletefileop.js.map +1 -1
- package/esm/src/models/deletetaskop.d.ts +20 -4
- package/esm/src/models/deletetaskop.d.ts.map +1 -1
- package/esm/src/models/deletetaskop.js +21 -3
- package/esm/src/models/deletetaskop.js.map +1 -1
- package/esm/src/models/getclientop.d.ts +17 -12
- package/esm/src/models/getclientop.d.ts.map +1 -1
- package/esm/src/models/getclientop.js +18 -7
- package/esm/src/models/getclientop.js.map +1 -1
- package/esm/src/models/getfileop.d.ts +21 -8
- package/esm/src/models/getfileop.d.ts.map +1 -1
- package/esm/src/models/getfileop.js +19 -4
- package/esm/src/models/getfileop.js.map +1 -1
- package/esm/src/models/gettaskop.d.ts +20 -4
- package/esm/src/models/gettaskop.d.ts.map +1 -1
- package/esm/src/models/gettaskop.js +21 -3
- package/esm/src/models/gettaskop.js.map +1 -1
- package/esm/src/models/getworkspaceop.d.ts +19 -12
- package/esm/src/models/getworkspaceop.d.ts.map +1 -1
- package/esm/src/models/getworkspaceop.js +20 -7
- package/esm/src/models/getworkspaceop.js.map +1 -1
- package/esm/src/models/indexop.d.ts +18 -0
- package/esm/src/models/indexop.d.ts.map +1 -0
- package/esm/src/models/indexop.js +16 -0
- package/esm/src/models/indexop.js.map +1 -0
- package/esm/src/models/listclientsop.d.ts +28 -26
- package/esm/src/models/listclientsop.d.ts.map +1 -1
- package/esm/src/models/listclientsop.js +27 -19
- package/esm/src/models/listclientsop.js.map +1 -1
- package/esm/src/models/listfilesop.d.ts +20 -16
- package/esm/src/models/listfilesop.d.ts.map +1 -1
- package/esm/src/models/listfilesop.js +21 -12
- package/esm/src/models/listfilesop.js.map +1 -1
- package/esm/src/models/listtasksop.d.ts +33 -9
- package/esm/src/models/listtasksop.d.ts.map +1 -1
- package/esm/src/models/listtasksop.js +41 -9
- package/esm/src/models/listtasksop.js.map +1 -1
- package/esm/src/models/listworkspacesop.d.ts +20 -16
- package/esm/src/models/listworkspacesop.d.ts.map +1 -1
- package/esm/src/models/listworkspacesop.js +21 -11
- package/esm/src/models/listworkspacesop.js.map +1 -1
- package/esm/src/models/meop.d.ts +41 -0
- package/esm/src/models/meop.d.ts.map +1 -0
- package/esm/src/models/meop.js +38 -0
- package/esm/src/models/meop.js.map +1 -0
- package/esm/src/models/notfound.d.ts +13 -0
- package/esm/src/models/notfound.d.ts.map +1 -0
- package/esm/src/models/notfound.js +18 -0
- package/esm/src/models/notfound.js.map +1 -0
- package/esm/src/models/paginatedclients.d.ts +9 -0
- package/esm/src/models/paginatedclients.d.ts.map +1 -0
- package/esm/src/models/paginatedclients.js +11 -0
- package/esm/src/models/paginatedclients.js.map +1 -0
- package/esm/src/models/paginatedfiles.d.ts +9 -0
- package/esm/src/models/paginatedfiles.d.ts.map +1 -0
- package/esm/src/models/paginatedfiles.js +11 -0
- package/esm/src/models/paginatedfiles.js.map +1 -0
- package/esm/src/models/paginatedtasks.d.ts +9 -0
- package/esm/src/models/paginatedtasks.d.ts.map +1 -0
- package/esm/src/models/paginatedtasks.js +11 -0
- package/esm/src/models/paginatedtasks.js.map +1 -0
- package/esm/src/models/paginatedworkspaces.d.ts +9 -0
- package/esm/src/models/paginatedworkspaces.d.ts.map +1 -0
- package/esm/src/models/paginatedworkspaces.js +11 -0
- package/esm/src/models/paginatedworkspaces.js.map +1 -0
- package/esm/src/models/pingop.d.ts +18 -0
- package/esm/src/models/pingop.d.ts.map +1 -0
- package/esm/src/models/pingop.js +16 -0
- package/esm/src/models/pingop.js.map +1 -0
- package/esm/src/models/ratelimit.d.ts +13 -0
- package/esm/src/models/ratelimit.d.ts.map +1 -0
- package/esm/src/models/ratelimit.js +17 -0
- package/esm/src/models/ratelimit.js.map +1 -0
- package/esm/src/models/updatefileop.d.ts +22 -9
- package/esm/src/models/updatefileop.d.ts.map +1 -1
- package/esm/src/models/updatefileop.js +20 -5
- package/esm/src/models/updatefileop.js.map +1 -1
- package/esm/src/models/updatetaskop.d.ts +20 -4
- package/esm/src/models/updatetaskop.d.ts.map +1 -1
- package/esm/src/models/updatetaskop.js +21 -3
- package/esm/src/models/updatetaskop.js.map +1 -1
- package/esm/src/models/workspacecreate.d.ts +6 -0
- package/esm/src/models/workspacecreate.d.ts.map +1 -0
- package/esm/src/models/workspacecreate.js +8 -0
- package/esm/src/models/workspacecreate.js.map +1 -0
- package/manifest.json +17 -9
- 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 +172 -0
- package/src/funcs/adminClientsGetClient.ts +6 -5
- package/src/funcs/adminClientsListClients.ts +138 -131
- package/src/funcs/{authGetV1Me.ts → authMe.ts} +11 -10
- package/src/funcs/filesCreateFile.ts +41 -39
- package/src/funcs/filesDeleteFile.ts +7 -5
- package/src/funcs/filesGetFile.ts +7 -3
- package/src/funcs/filesListFiles.ts +138 -130
- package/src/funcs/filesUpdateFile.ts +7 -3
- package/src/funcs/{healthCheckGetV1.ts → healthIndex.ts} +9 -7
- package/src/funcs/{healthCheckGetV1Ping.ts → healthPing.ts} +12 -17
- package/src/funcs/tasksCreateTask.ts +10 -1
- package/src/funcs/tasksDeleteTask.ts +11 -2
- package/src/funcs/tasksGetTask.ts +11 -2
- package/src/funcs/tasksListTasks.ts +141 -125
- package/src/funcs/tasksUpdateTask.ts +10 -1
- package/src/funcs/workspacesCreateWorkspace.ts +175 -0
- package/src/funcs/workspacesGetWorkspace.ts +7 -5
- package/src/funcs/workspacesListWorkspaces.ts +139 -129
- package/src/lib/config.ts +41 -42
- package/src/mcp-server/mcp-server.ts +10 -10
- package/src/mcp-server/server.ts +78 -71
- package/src/mcp-server/tools/adminClientsCreateClient.ts +37 -0
- package/src/mcp-server/tools/adminClientsListClients.ts +22 -24
- package/src/mcp-server/tools/{authGetV1Me.ts → authMe.ts} +4 -4
- package/src/mcp-server/tools/{healthCheckGetV1.ts → healthIndex.ts} +4 -4
- package/src/mcp-server/tools/{healthCheckGetV1Ping.ts → healthPing.ts} +5 -5
- package/src/mcp-server/tools/tasksListTasks.ts +1 -1
- package/src/mcp-server/tools/workspacesCreateWorkspace.ts +37 -0
- package/src/mcp-server/tools.ts +96 -98
- package/src/models/autherror.ts +32 -0
- package/src/models/badrequest.ts +35 -0
- package/src/models/client.ts +8 -6
- package/src/models/clientcreate.ts +58 -0
- package/src/models/createclientop.ts +136 -0
- package/src/models/createfileop.ts +78 -26
- package/src/models/createtaskop.ts +59 -10
- package/src/models/createworkspaceop.ts +158 -0
- package/src/models/deletefileop.ts +41 -30
- package/src/models/deletetaskop.ts +43 -10
- package/src/models/getclientop.ts +38 -30
- package/src/models/getfileop.ts +47 -20
- package/src/models/gettaskop.ts +43 -10
- package/src/models/getworkspaceop.ts +41 -30
- package/src/models/indexop.ts +39 -0
- package/src/models/listclientsop.ts +60 -49
- package/src/models/listfilesop.ts +42 -34
- package/src/models/listtasksop.ts +72 -16
- package/src/models/listworkspacesop.ts +45 -35
- package/src/models/meop.ts +96 -0
- package/src/models/notfound.ts +32 -0
- package/src/models/paginatedclients.ts +18 -0
- package/src/models/paginatedfiles.ts +18 -0
- package/src/models/paginatedtasks.ts +18 -0
- package/src/models/paginatedworkspaces.ts +21 -0
- package/src/models/pingop.ts +39 -0
- package/src/models/ratelimit.ts +32 -0
- package/src/models/updatefileop.ts +49 -22
- package/src/models/updatetaskop.ts +41 -7
- package/src/models/workspacecreate.ts +15 -0
- package/worker-configuration.d.ts +7024 -6203
- package/esm/src/funcs/authGetV1Me.js.map +0 -1
- package/esm/src/funcs/healthCheckGetV1.d.ts.map +0 -1
- package/esm/src/funcs/healthCheckGetV1.js.map +0 -1
- package/esm/src/funcs/healthCheckGetV1Ping.d.ts.map +0 -1
- package/esm/src/funcs/healthCheckGetV1Ping.js.map +0 -1
- package/esm/src/mcp-server/tools/authGetV1Me.d.ts +0 -3
- package/esm/src/mcp-server/tools/authGetV1Me.d.ts.map +0 -1
- package/esm/src/mcp-server/tools/authGetV1Me.js.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts +0 -3
- package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1.js.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts +0 -3
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.js.map +0 -1
- package/esm/src/models/getv1meop.d.ts +0 -21
- package/esm/src/models/getv1meop.d.ts.map +0 -1
- package/esm/src/models/getv1meop.js +0 -19
- package/esm/src/models/getv1meop.js.map +0 -1
- package/esm/src/models/getv1op.d.ts +0 -16
- package/esm/src/models/getv1op.d.ts.map +0 -1
- package/esm/src/models/getv1op.js +0 -14
- package/esm/src/models/getv1op.js.map +0 -1
- package/esm/src/models/getv1pingop.d.ts +0 -16
- package/esm/src/models/getv1pingop.d.ts.map +0 -1
- package/esm/src/models/getv1pingop.js +0 -14
- package/esm/src/models/getv1pingop.js.map +0 -1
- package/src/models/getv1meop.ts +0 -48
- package/src/models/getv1op.ts +0 -36
- package/src/models/getv1pingop.ts +0 -36
|
@@ -12,18 +12,18 @@ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
|
12
12
|
import { pathToFunc } from "../lib/url.js";
|
|
13
13
|
import { APIError } from "../models/errors/apierror.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
ListWorkspacesRequest,
|
|
24
|
+
ListWorkspacesRequest$zodSchema,
|
|
25
|
+
ListWorkspacesResponse,
|
|
26
|
+
ListWorkspacesResponse$zodSchema,
|
|
27
27
|
} from "../models/listworkspacesop.js";
|
|
28
28
|
import { APICall, APIPromise } from "../types/async.js";
|
|
29
29
|
import { Result } from "../types/fp.js";
|
|
@@ -35,137 +35,147 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* Returns a paginated list of workspaces.
|
|
36
36
|
*/
|
|
37
37
|
export function workspacesListWorkspaces(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
client$: SteuerboardCore,
|
|
39
|
+
request: ListWorkspacesRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
41
|
): APIPromise<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
Result<
|
|
43
|
+
ListWorkspacesResponse,
|
|
44
|
+
| APIError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| ConnectionError
|
|
51
|
+
>
|
|
52
52
|
> {
|
|
53
|
-
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client$,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
async function $do(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
client$: SteuerboardCore,
|
|
62
|
+
request: ListWorkspacesRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
60
64
|
): Promise<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
ListWorkspacesResponse,
|
|
68
|
+
| APIError
|
|
69
|
+
| SDKValidationError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
74
78
|
> {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
const parsed$ = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value$) => ListWorkspacesRequest$zodSchema.parse(value$),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed$.ok) {
|
|
85
|
+
return [parsed$, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload$ = parsed$.value;
|
|
88
|
+
const body$ = null;
|
|
89
|
+
const path$ = pathToFunc("/v1/workspaces")();
|
|
90
|
+
const query$ = encodeFormQuery({
|
|
91
|
+
"cursor": payload$.cursor,
|
|
92
|
+
"limit": payload$.limit,
|
|
93
|
+
});
|
|
90
94
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
101
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
95
|
+
const headers$ = new Headers(compactMap({
|
|
96
|
+
Accept: "application/json",
|
|
97
|
+
"x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
|
|
98
|
+
explode: false,
|
|
99
|
+
charEncoding: "none",
|
|
100
|
+
}),
|
|
101
|
+
}));
|
|
102
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
103
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
102
104
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
105
|
+
const context = {
|
|
106
|
+
options: client$._options,
|
|
107
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
108
|
+
operationID: "listWorkspaces",
|
|
109
|
+
oAuth2Scopes: [],
|
|
110
|
+
resolvedSecurity: requestSecurity,
|
|
111
|
+
securitySource: client$._options.security,
|
|
112
|
+
retryConfig: options?.retries
|
|
113
|
+
|| client$._options.retryConfig
|
|
114
|
+
|| { strategy: "none" },
|
|
115
|
+
retryCodes: options?.retryCodes || [
|
|
116
|
+
"429",
|
|
117
|
+
"500",
|
|
118
|
+
"502",
|
|
119
|
+
"503",
|
|
120
|
+
"504",
|
|
121
|
+
],
|
|
122
|
+
};
|
|
114
123
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
return [requestRes, { status: "invalid" }];
|
|
132
|
-
}
|
|
133
|
-
const req$ = requestRes.value;
|
|
124
|
+
const requestRes = client$._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "GET",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path$,
|
|
129
|
+
headers: headers$,
|
|
130
|
+
query: query$,
|
|
131
|
+
body: body$,
|
|
132
|
+
userAgent: client$._options.userAgent,
|
|
133
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
134
|
+
|| -1,
|
|
135
|
+
}, options);
|
|
136
|
+
if (!requestRes.ok) {
|
|
137
|
+
return [requestRes, { status: "invalid" }];
|
|
138
|
+
}
|
|
139
|
+
const req$ = requestRes.value;
|
|
134
140
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
const doResult = await client$._do(req$, {
|
|
142
|
+
context,
|
|
143
|
+
errorCodes: [],
|
|
144
|
+
retryConfig: context.retryConfig,
|
|
145
|
+
retryCodes: context.retryCodes,
|
|
146
|
+
});
|
|
147
|
+
if (!doResult.ok) {
|
|
148
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
149
|
+
}
|
|
150
|
+
const response = doResult.value;
|
|
151
|
+
const responseFields$ = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req$ },
|
|
153
|
+
};
|
|
148
154
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
155
|
+
const [result$] = await M.match<
|
|
156
|
+
ListWorkspacesResponse,
|
|
157
|
+
| APIError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| InvalidRequestError
|
|
161
|
+
| RequestAbortedError
|
|
162
|
+
| RequestTimeoutError
|
|
163
|
+
| ConnectionError
|
|
164
|
+
>(
|
|
165
|
+
M.json(200, ListWorkspacesResponse$zodSchema, {
|
|
166
|
+
key: "PaginatedWorkspaces",
|
|
167
|
+
}),
|
|
168
|
+
M.json(400, ListWorkspacesResponse$zodSchema, { key: "bad_request" }),
|
|
169
|
+
M.json(401, ListWorkspacesResponse$zodSchema, { key: "auth_error" }),
|
|
170
|
+
M.json(403, ListWorkspacesResponse$zodSchema, {
|
|
171
|
+
key: "403_application/json_object",
|
|
172
|
+
}),
|
|
173
|
+
M.json(422, ListWorkspacesResponse$zodSchema, {
|
|
174
|
+
key: "422_application/json_object",
|
|
175
|
+
}),
|
|
176
|
+
M.json(429, ListWorkspacesResponse$zodSchema, { key: "rate_limit" }),
|
|
177
|
+
M.nil(500, ListWorkspacesResponse$zodSchema),
|
|
178
|
+
)(response, req$, { extraFields: responseFields$ });
|
|
169
179
|
|
|
170
|
-
|
|
180
|
+
return [result$, { status: "complete", request: req$, response }];
|
|
171
181
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -11,58 +11,57 @@ import { Params, pathToFunc } from "./url.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Contains the list of servers available to the SDK
|
|
13
13
|
*/
|
|
14
|
-
export const ServerList = [
|
|
15
|
-
"https://api.steuerboard.com",
|
|
16
|
-
] as const;
|
|
14
|
+
export const ServerList = ["https://api.steuerboard.com"] as const;
|
|
17
15
|
|
|
18
16
|
export type SDKOptions = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The security details required to authenticate the SDK
|
|
19
|
+
*/
|
|
20
|
+
security?: Security | (() => Promise<Security>) | undefined;
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
httpClient?: HTTPClient;
|
|
23
|
+
/**
|
|
24
|
+
* Allows overriding the default server used by the SDK
|
|
25
|
+
*/
|
|
26
|
+
serverIdx?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Allows overriding the default server URL used by the SDK
|
|
29
|
+
*/
|
|
30
|
+
serverURL?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Allows overriding the default user agent used by the SDK
|
|
33
|
+
*/
|
|
34
|
+
userAgent?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Allows overriding the default retry config used by the SDK
|
|
37
|
+
*/
|
|
38
|
+
retryConfig?: RetryConfig;
|
|
39
|
+
timeoutMs?: number;
|
|
40
|
+
debugLogger?: Logger | undefined;
|
|
43
41
|
};
|
|
44
42
|
|
|
45
43
|
export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
46
|
-
|
|
44
|
+
let serverURL = options.serverURL;
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
const params: Params = {};
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
if (!serverURL) {
|
|
49
|
+
const serverIdx = options.serverIdx ?? 0;
|
|
50
|
+
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
51
|
+
throw new Error(`Invalid server index ${serverIdx}`);
|
|
52
|
+
}
|
|
53
|
+
serverURL = ServerList[serverIdx] || "";
|
|
54
|
+
}
|
|
57
55
|
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
const u = pathToFunc(serverURL)(params);
|
|
57
|
+
return new URL(u);
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
export const SDK_METADATA = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
language: "typescript",
|
|
62
|
+
openapiDocVersion: "0.1.0",
|
|
63
|
+
sdkVersion: "0.1.0",
|
|
64
|
+
genVersion: "2.709.0",
|
|
65
|
+
userAgent:
|
|
66
|
+
"speakeasy-sdk/mcp-typescript 0.1.0 2.709.0 0.1.0 @steuerboard/mcp",
|
|
68
67
|
} as const;
|
|
@@ -8,19 +8,19 @@ import { buildContext } from "./cli.js";
|
|
|
8
8
|
import { startCommand } from "./cli/start/command.js";
|
|
9
9
|
|
|
10
10
|
const routes = buildRouteMap({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
routes: {
|
|
12
|
+
start: startCommand,
|
|
13
|
+
},
|
|
14
|
+
docs: {
|
|
15
|
+
brief: "MCP server CLI",
|
|
16
|
+
},
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
export const app = buildApplication(routes, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
name: "mcp",
|
|
21
|
+
versionInfo: {
|
|
22
|
+
currentVersion: "0.1.0",
|
|
23
|
+
},
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
run(app, process.argv.slice(2), buildContext(process));
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -8,100 +8,107 @@ import { SDKOptions } from "../lib/config.js";
|
|
|
8
8
|
import type { ConsoleLogger } from "./console-logger.js";
|
|
9
9
|
import { createRegisterPrompt } from "./prompts.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
createRegisterResource,
|
|
12
|
+
createRegisterResourceTemplate,
|
|
13
13
|
} from "./resources.js";
|
|
14
14
|
import { MCPScope } from "./scopes.js";
|
|
15
15
|
import { createRegisterTool } from "./tools.js";
|
|
16
|
+
import { tool$adminClientsCreateClient } from "./tools/adminClientsCreateClient.js";
|
|
16
17
|
import { tool$adminClientsGetClient } from "./tools/adminClientsGetClient.js";
|
|
17
18
|
import { tool$adminClientsListClients } from "./tools/adminClientsListClients.js";
|
|
18
|
-
import { tool$
|
|
19
|
+
import { tool$authMe } from "./tools/authMe.js";
|
|
19
20
|
import { tool$filesCreateFile } from "./tools/filesCreateFile.js";
|
|
20
21
|
import { tool$filesDeleteFile } from "./tools/filesDeleteFile.js";
|
|
21
22
|
import { tool$filesGetFile } from "./tools/filesGetFile.js";
|
|
22
23
|
import { tool$filesListFiles } from "./tools/filesListFiles.js";
|
|
23
24
|
import { tool$filesUpdateFile } from "./tools/filesUpdateFile.js";
|
|
24
|
-
import { tool$
|
|
25
|
-
import { tool$
|
|
25
|
+
import { tool$healthIndex } from "./tools/healthIndex.js";
|
|
26
|
+
import { tool$healthPing } from "./tools/healthPing.js";
|
|
26
27
|
import { tool$tasksCreateTask } from "./tools/tasksCreateTask.js";
|
|
27
28
|
import { tool$tasksDeleteTask } from "./tools/tasksDeleteTask.js";
|
|
28
29
|
import { tool$tasksGetTask } from "./tools/tasksGetTask.js";
|
|
29
30
|
import { tool$tasksListTasks } from "./tools/tasksListTasks.js";
|
|
30
31
|
import { tool$tasksUpdateTask } from "./tools/tasksUpdateTask.js";
|
|
32
|
+
import { tool$workspacesCreateWorkspace } from "./tools/workspacesCreateWorkspace.js";
|
|
31
33
|
import { tool$workspacesGetWorkspace } from "./tools/workspacesGetWorkspace.js";
|
|
32
34
|
import { tool$workspacesListWorkspaces } from "./tools/workspacesListWorkspaces.js";
|
|
33
35
|
|
|
34
36
|
export function createMCPServer(deps: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
logger: ConsoleLogger;
|
|
38
|
+
allowedTools?: string[] | undefined;
|
|
39
|
+
scopes?: MCPScope[] | undefined;
|
|
40
|
+
getSDK?: () => SteuerboardCore;
|
|
41
|
+
serverURL?: string | undefined;
|
|
42
|
+
security?: SDKOptions["security"] | undefined;
|
|
43
|
+
serverIdx?: SDKOptions["serverIdx"] | undefined;
|
|
42
44
|
}) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
const server = new McpServer({
|
|
46
|
+
name: "Steuerboard",
|
|
47
|
+
version: "0.1.0",
|
|
48
|
+
});
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
const getClient =
|
|
51
|
+
deps.getSDK ||
|
|
52
|
+
(() =>
|
|
53
|
+
new SteuerboardCore({
|
|
54
|
+
security: deps.security,
|
|
55
|
+
serverURL: deps.serverURL,
|
|
56
|
+
serverIdx: deps.serverIdx,
|
|
57
|
+
debugLogger:
|
|
58
|
+
deps.logger.level === "debug"
|
|
59
|
+
? {
|
|
60
|
+
log: (...args) => console.log(...args),
|
|
61
|
+
group: (...args) => console.group(...args),
|
|
62
|
+
groupEnd: (...args) => console.groupEnd(...args),
|
|
63
|
+
}
|
|
64
|
+
: undefined,
|
|
65
|
+
}));
|
|
61
66
|
|
|
62
|
-
|
|
67
|
+
const scopes = new Set(deps.scopes);
|
|
63
68
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
70
|
+
const tool = createRegisterTool(
|
|
71
|
+
deps.logger,
|
|
72
|
+
server,
|
|
73
|
+
getClient,
|
|
74
|
+
scopes,
|
|
75
|
+
allowedTools,
|
|
76
|
+
);
|
|
77
|
+
const resource = createRegisterResource(
|
|
78
|
+
deps.logger,
|
|
79
|
+
server,
|
|
80
|
+
getClient,
|
|
81
|
+
scopes,
|
|
82
|
+
);
|
|
83
|
+
const resourceTemplate = createRegisterResourceTemplate(
|
|
84
|
+
deps.logger,
|
|
85
|
+
server,
|
|
86
|
+
getClient,
|
|
87
|
+
scopes,
|
|
88
|
+
);
|
|
89
|
+
const prompt = createRegisterPrompt(deps.logger, server, getClient, scopes);
|
|
90
|
+
const register = { tool, resource, resourceTemplate, prompt };
|
|
91
|
+
void register; // suppress unused warnings
|
|
87
92
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
93
|
+
tool(tool$healthIndex);
|
|
94
|
+
tool(tool$healthPing);
|
|
95
|
+
tool(tool$authMe);
|
|
96
|
+
tool(tool$adminClientsListClients);
|
|
97
|
+
tool(tool$adminClientsCreateClient);
|
|
98
|
+
tool(tool$adminClientsGetClient);
|
|
99
|
+
tool(tool$workspacesListWorkspaces);
|
|
100
|
+
tool(tool$workspacesCreateWorkspace);
|
|
101
|
+
tool(tool$workspacesGetWorkspace);
|
|
102
|
+
tool(tool$filesListFiles);
|
|
103
|
+
tool(tool$filesCreateFile);
|
|
104
|
+
tool(tool$filesGetFile);
|
|
105
|
+
tool(tool$filesUpdateFile);
|
|
106
|
+
tool(tool$filesDeleteFile);
|
|
107
|
+
tool(tool$tasksListTasks);
|
|
108
|
+
tool(tool$tasksCreateTask);
|
|
109
|
+
tool(tool$tasksGetTask);
|
|
110
|
+
tool(tool$tasksUpdateTask);
|
|
111
|
+
tool(tool$tasksDeleteTask);
|
|
105
112
|
|
|
106
|
-
|
|
113
|
+
return server;
|
|
107
114
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { adminClientsCreateClient } from "../../funcs/adminClientsCreateClient.js";
|
|
6
|
+
import { ClientCreate$zodSchema } from "../../models/clientcreate.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: ClientCreate$zodSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$adminClientsCreateClient: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "admin-clients-create-client",
|
|
15
|
+
description: `Create a client
|
|
16
|
+
|
|
17
|
+
Creates a new client for the accountant and returns the created client object.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await adminClientsCreateClient(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|