@steuerboard/mcp 0.2.0 → 0.3.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/bin/mcp-server.js +238 -12
- package/bin/mcp-server.js.map +42 -42
- package/esm/src/lib/config.d.ts +3 -3
- 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.js +1 -1
- package/esm/src/mcp-server/tools/adminClientsCreateClient.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsCreateClient.js +6 -0
- package/esm/src/mcp-server/tools/adminClientsCreateClient.js.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsGetClient.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsGetClient.js +6 -0
- package/esm/src/mcp-server/tools/adminClientsGetClient.js.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsListClients.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsListClients.js +6 -0
- package/esm/src/mcp-server/tools/adminClientsListClients.js.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsUpdateClient.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsUpdateClient.js +6 -0
- package/esm/src/mcp-server/tools/adminClientsUpdateClient.js.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersDeleteAccountantUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersDeleteAccountantUser.js +6 -0
- package/esm/src/mcp-server/tools/adminUsersDeleteAccountantUser.js.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersGetAccountantUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersGetAccountantUser.js +6 -0
- package/esm/src/mcp-server/tools/adminUsersGetAccountantUser.js.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersInviteAccountantUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersInviteAccountantUser.js +6 -0
- package/esm/src/mcp-server/tools/adminUsersInviteAccountantUser.js.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersListAccountantUsers.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersListAccountantUsers.js +6 -0
- package/esm/src/mcp-server/tools/adminUsersListAccountantUsers.js.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersUpdateAccountantUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/adminUsersUpdateAccountantUser.js +6 -0
- package/esm/src/mcp-server/tools/adminUsersUpdateAccountantUser.js.map +1 -1
- package/esm/src/mcp-server/tools/authMe.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/authMe.js +6 -0
- package/esm/src/mcp-server/tools/authMe.js.map +1 -1
- package/esm/src/mcp-server/tools/filesCreateFile.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/filesCreateFile.js +6 -0
- package/esm/src/mcp-server/tools/filesCreateFile.js.map +1 -1
- package/esm/src/mcp-server/tools/filesDeleteFile.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/filesDeleteFile.js +6 -0
- package/esm/src/mcp-server/tools/filesDeleteFile.js.map +1 -1
- package/esm/src/mcp-server/tools/filesGetFile.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/filesGetFile.js +6 -0
- package/esm/src/mcp-server/tools/filesGetFile.js.map +1 -1
- package/esm/src/mcp-server/tools/filesListFiles.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/filesListFiles.js +6 -0
- package/esm/src/mcp-server/tools/filesListFiles.js.map +1 -1
- package/esm/src/mcp-server/tools/filesUpdateFile.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/filesUpdateFile.js +6 -0
- package/esm/src/mcp-server/tools/filesUpdateFile.js.map +1 -1
- package/esm/src/mcp-server/tools/healthIndex.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/healthIndex.js +6 -0
- package/esm/src/mcp-server/tools/healthIndex.js.map +1 -1
- package/esm/src/mcp-server/tools/healthPing.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/healthPing.js +6 -0
- package/esm/src/mcp-server/tools/healthPing.js.map +1 -1
- package/esm/src/mcp-server/tools/tasksCreateTask.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/tasksCreateTask.js +6 -0
- package/esm/src/mcp-server/tools/tasksCreateTask.js.map +1 -1
- package/esm/src/mcp-server/tools/tasksDeleteTask.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/tasksDeleteTask.js +6 -0
- package/esm/src/mcp-server/tools/tasksDeleteTask.js.map +1 -1
- package/esm/src/mcp-server/tools/tasksGetTask.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/tasksGetTask.js +6 -0
- package/esm/src/mcp-server/tools/tasksGetTask.js.map +1 -1
- package/esm/src/mcp-server/tools/tasksListTasks.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/tasksListTasks.js +6 -0
- package/esm/src/mcp-server/tools/tasksListTasks.js.map +1 -1
- package/esm/src/mcp-server/tools/tasksUpdateTask.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/tasksUpdateTask.js +6 -0
- package/esm/src/mcp-server/tools/tasksUpdateTask.js.map +1 -1
- package/esm/src/mcp-server/tools/usersDeleteUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/usersDeleteUser.js +6 -0
- package/esm/src/mcp-server/tools/usersDeleteUser.js.map +1 -1
- package/esm/src/mcp-server/tools/usersGetUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/usersGetUser.js +6 -0
- package/esm/src/mcp-server/tools/usersGetUser.js.map +1 -1
- package/esm/src/mcp-server/tools/usersInviteUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/usersInviteUser.js +6 -0
- package/esm/src/mcp-server/tools/usersInviteUser.js.map +1 -1
- package/esm/src/mcp-server/tools/usersListUsers.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/usersListUsers.js +6 -0
- package/esm/src/mcp-server/tools/usersListUsers.js.map +1 -1
- package/esm/src/mcp-server/tools/usersUpdateUser.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/usersUpdateUser.js +6 -0
- package/esm/src/mcp-server/tools/usersUpdateUser.js.map +1 -1
- package/esm/src/mcp-server/tools/workspaceMembersCreateWorkspaceMember.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/workspaceMembersCreateWorkspaceMember.js +6 -0
- package/esm/src/mcp-server/tools/workspaceMembersCreateWorkspaceMember.js.map +1 -1
- package/esm/src/mcp-server/tools/workspaceMembersListWorkspaceMembers.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/workspaceMembersListWorkspaceMembers.js +6 -0
- package/esm/src/mcp-server/tools/workspaceMembersListWorkspaceMembers.js.map +1 -1
- package/esm/src/mcp-server/tools/workspaceMembersRemoveWorkspaceMember.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/workspaceMembersRemoveWorkspaceMember.js +6 -0
- package/esm/src/mcp-server/tools/workspaceMembersRemoveWorkspaceMember.js.map +1 -1
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js +6 -0
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js.map +1 -1
- package/esm/src/mcp-server/tools/workspacesGetWorkspace.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/workspacesGetWorkspace.js +6 -0
- package/esm/src/mcp-server/tools/workspacesGetWorkspace.js.map +1 -1
- package/esm/src/mcp-server/tools/workspacesListWorkspaces.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/workspacesListWorkspaces.js +6 -0
- package/esm/src/mcp-server/tools/workspacesListWorkspaces.js.map +1 -1
- package/esm/src/mcp-server/tools/workspacesUpdateWorkspace.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/workspacesUpdateWorkspace.js +6 -0
- package/esm/src/mcp-server/tools/workspacesUpdateWorkspace.js.map +1 -1
- package/esm/src/mcp-server/tools.d.ts +12 -0
- package/esm/src/mcp-server/tools.d.ts.map +1 -1
- package/esm/src/mcp-server/tools.js +2 -2
- package/esm/src/mcp-server/tools.js.map +1 -1
- package/esm/src/models/inviteaccountantuser.d.ts +8 -1
- package/esm/src/models/inviteaccountantuser.d.ts.map +1 -1
- package/esm/src/models/inviteaccountantuser.js +12 -1
- package/esm/src/models/inviteaccountantuser.js.map +1 -1
- package/esm/src/models/updateaccountantuser.d.ts +8 -1
- package/esm/src/models/updateaccountantuser.d.ts.map +1 -1
- package/esm/src/models/updateaccountantuser.js +12 -1
- package/esm/src/models/updateaccountantuser.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/adminClientsCreateClient.ts +6 -0
- package/src/mcp-server/tools/adminClientsGetClient.ts +6 -0
- package/src/mcp-server/tools/adminClientsListClients.ts +6 -0
- package/src/mcp-server/tools/adminClientsUpdateClient.ts +6 -0
- package/src/mcp-server/tools/adminUsersDeleteAccountantUser.ts +6 -0
- package/src/mcp-server/tools/adminUsersGetAccountantUser.ts +6 -0
- package/src/mcp-server/tools/adminUsersInviteAccountantUser.ts +6 -0
- package/src/mcp-server/tools/adminUsersListAccountantUsers.ts +6 -0
- package/src/mcp-server/tools/adminUsersUpdateAccountantUser.ts +6 -0
- package/src/mcp-server/tools/authMe.ts +6 -0
- package/src/mcp-server/tools/filesCreateFile.ts +6 -0
- package/src/mcp-server/tools/filesDeleteFile.ts +6 -0
- package/src/mcp-server/tools/filesGetFile.ts +6 -0
- package/src/mcp-server/tools/filesListFiles.ts +6 -0
- package/src/mcp-server/tools/filesUpdateFile.ts +6 -0
- package/src/mcp-server/tools/healthIndex.ts +6 -0
- package/src/mcp-server/tools/healthPing.ts +6 -0
- package/src/mcp-server/tools/tasksCreateTask.ts +6 -0
- package/src/mcp-server/tools/tasksDeleteTask.ts +6 -0
- package/src/mcp-server/tools/tasksGetTask.ts +6 -0
- package/src/mcp-server/tools/tasksListTasks.ts +6 -0
- package/src/mcp-server/tools/tasksUpdateTask.ts +6 -0
- package/src/mcp-server/tools/usersDeleteUser.ts +6 -0
- package/src/mcp-server/tools/usersGetUser.ts +6 -0
- package/src/mcp-server/tools/usersInviteUser.ts +6 -0
- package/src/mcp-server/tools/usersListUsers.ts +6 -0
- package/src/mcp-server/tools/usersUpdateUser.ts +6 -0
- package/src/mcp-server/tools/workspaceMembersCreateWorkspaceMember.ts +6 -0
- package/src/mcp-server/tools/workspaceMembersListWorkspaceMembers.ts +6 -0
- package/src/mcp-server/tools/workspaceMembersRemoveWorkspaceMember.ts +6 -0
- package/src/mcp-server/tools/workspacesCreateWorkspace.ts +6 -0
- package/src/mcp-server/tools/workspacesGetWorkspace.ts +6 -0
- package/src/mcp-server/tools/workspacesListWorkspaces.ts +6 -0
- package/src/mcp-server/tools/workspacesUpdateWorkspace.ts +6 -0
- package/src/mcp-server/tools.ts +29 -6
- package/src/models/inviteaccountantuser.ts +35 -2
- package/src/models/updateaccountantuser.ts +34 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateaccountantuser.js","sourceRoot":"","sources":["../../../src/models/updateaccountantuser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"updateaccountantuser.js","sourceRoot":"","sources":["../../../src/models/updateaccountantuser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,OAAO;IACP,MAAM;CACP,CAAC,CAAC;AAaH,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,KAAK,CAAC;IACV,sCAAsC;IACtC,CAAC,CAAC,MAAM,EAAE;CACX,CAAC,CAAC,QAAQ,CACT,0EAA0E,CAC3E,CAAC;AAMF,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;QACZ,sCAAsC;QACtC,CAAC,CAAC,MAAM,EAAE;KACX,CAAC;CACH,CAAC,CAAC"}
|
package/manifest.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,8 +62,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
64
|
openapiDocVersion: "0.1.0",
|
|
65
|
-
sdkVersion: "0.
|
|
66
|
-
genVersion: "2.
|
|
65
|
+
sdkVersion: "0.3.0",
|
|
66
|
+
genVersion: "2.721.3",
|
|
67
67
|
userAgent:
|
|
68
|
-
"speakeasy-sdk/mcp-typescript 0.
|
|
68
|
+
"speakeasy-sdk/mcp-typescript 0.3.0 2.721.3 0.1.0 @steuerboard/mcp",
|
|
69
69
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -15,6 +15,12 @@ export const tool$adminClientsCreateClient: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Create a client
|
|
16
16
|
|
|
17
17
|
Creates a new client for the accountant and returns the created client.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await adminClientsCreateClient(
|
|
@@ -15,6 +15,12 @@ export const tool$adminClientsGetClient: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Get a client
|
|
16
16
|
|
|
17
17
|
Returns a single client by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await adminClientsGetClient(
|
|
@@ -15,6 +15,12 @@ export const tool$adminClientsListClients: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List clients
|
|
16
16
|
|
|
17
17
|
Returns a paginated list of clients.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await adminClientsListClients(
|
|
@@ -15,6 +15,12 @@ export const tool$adminClientsUpdateClient: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Update a client
|
|
16
16
|
|
|
17
17
|
Updates a client by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await adminClientsUpdateClient(
|
|
@@ -16,6 +16,12 @@ export const tool$adminUsersDeleteAccountantUser: ToolDefinition<typeof args> =
|
|
|
16
16
|
description: `Delete an accountant user
|
|
17
17
|
|
|
18
18
|
Deletes an accountant user by ID.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"destructiveHint": true,
|
|
21
|
+
"idempotentHint": false,
|
|
22
|
+
"openWorldHint": false,
|
|
23
|
+
"readOnlyHint": false,
|
|
24
|
+
},
|
|
19
25
|
args,
|
|
20
26
|
tool: async (client, args, ctx) => {
|
|
21
27
|
const [result, apiCall] = await adminUsersDeleteAccountantUser(
|
|
@@ -15,6 +15,12 @@ export const tool$adminUsersGetAccountantUser: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Get an accountant user
|
|
16
16
|
|
|
17
17
|
Returns a single accountant user by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await adminUsersGetAccountantUser(
|
|
@@ -16,6 +16,12 @@ export const tool$adminUsersInviteAccountantUser: ToolDefinition<typeof args> =
|
|
|
16
16
|
description: `Invite an accountant user
|
|
17
17
|
|
|
18
18
|
Invites a new accountant user and returns the created record.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"destructiveHint": false,
|
|
21
|
+
"idempotentHint": false,
|
|
22
|
+
"openWorldHint": false,
|
|
23
|
+
"readOnlyHint": false,
|
|
24
|
+
},
|
|
19
25
|
args,
|
|
20
26
|
tool: async (client, args, ctx) => {
|
|
21
27
|
const [result, apiCall] = await adminUsersInviteAccountantUser(
|
|
@@ -15,6 +15,12 @@ export const tool$adminUsersListAccountantUsers: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List accountant users
|
|
16
16
|
|
|
17
17
|
Returns a paginated list of accountant users.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await adminUsersListAccountantUsers(
|
|
@@ -16,6 +16,12 @@ export const tool$adminUsersUpdateAccountantUser: ToolDefinition<typeof args> =
|
|
|
16
16
|
description: `Update an accountant user
|
|
17
17
|
|
|
18
18
|
Updates an accountant user by ID.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"destructiveHint": false,
|
|
21
|
+
"idempotentHint": false,
|
|
22
|
+
"openWorldHint": false,
|
|
23
|
+
"readOnlyHint": false,
|
|
24
|
+
},
|
|
19
25
|
args,
|
|
20
26
|
tool: async (client, args, ctx) => {
|
|
21
27
|
const [result, apiCall] = await adminUsersUpdateAccountantUser(
|
|
@@ -10,6 +10,12 @@ export const tool$authMe: ToolDefinition = {
|
|
|
10
10
|
description: `Me
|
|
11
11
|
|
|
12
12
|
Returns information about the authenticated principal.`,
|
|
13
|
+
annotations: {
|
|
14
|
+
"destructiveHint": false,
|
|
15
|
+
"idempotentHint": false,
|
|
16
|
+
"openWorldHint": false,
|
|
17
|
+
"readOnlyHint": true,
|
|
18
|
+
},
|
|
13
19
|
tool: async (client, ctx) => {
|
|
14
20
|
const [result, apiCall] = await authMe(
|
|
15
21
|
client,
|
|
@@ -15,6 +15,12 @@ export const tool$filesCreateFile: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Upload a file
|
|
16
16
|
|
|
17
17
|
Uploads a new file. Maximum file size is 500MB.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await filesCreateFile(
|
|
@@ -15,6 +15,12 @@ export const tool$filesDeleteFile: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Delete a file
|
|
16
16
|
|
|
17
17
|
Deletes a file by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": true,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await filesDeleteFile(
|
|
@@ -15,6 +15,12 @@ export const tool$filesGetFile: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Get a file
|
|
16
16
|
|
|
17
17
|
Returns a single file by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await filesGetFile(
|
|
@@ -15,6 +15,12 @@ export const tool$filesListFiles: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List files
|
|
16
16
|
|
|
17
17
|
Returns a paginated list of files with optional workspace filters.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await filesListFiles(
|
|
@@ -15,6 +15,12 @@ export const tool$filesUpdateFile: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Update a file
|
|
16
16
|
|
|
17
17
|
Updates a file by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await filesUpdateFile(
|
|
@@ -10,6 +10,12 @@ export const tool$healthIndex: ToolDefinition = {
|
|
|
10
10
|
description: `Get API index
|
|
11
11
|
|
|
12
12
|
Returns API information.`,
|
|
13
|
+
annotations: {
|
|
14
|
+
"destructiveHint": false,
|
|
15
|
+
"idempotentHint": false,
|
|
16
|
+
"openWorldHint": false,
|
|
17
|
+
"readOnlyHint": true,
|
|
18
|
+
},
|
|
13
19
|
tool: async (client, ctx) => {
|
|
14
20
|
const [result, apiCall] = await healthIndex(
|
|
15
21
|
client,
|
|
@@ -10,6 +10,12 @@ export const tool$healthPing: ToolDefinition = {
|
|
|
10
10
|
description: `Ping Pong
|
|
11
11
|
|
|
12
12
|
Returns a pong response for health checks.`,
|
|
13
|
+
annotations: {
|
|
14
|
+
"destructiveHint": false,
|
|
15
|
+
"idempotentHint": false,
|
|
16
|
+
"openWorldHint": false,
|
|
17
|
+
"readOnlyHint": true,
|
|
18
|
+
},
|
|
13
19
|
tool: async (client, ctx) => {
|
|
14
20
|
const [result, apiCall] = await healthPing(
|
|
15
21
|
client,
|
|
@@ -15,6 +15,12 @@ export const tool$tasksCreateTask: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Create a task
|
|
16
16
|
|
|
17
17
|
Creates a new task and returns the created task.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await tasksCreateTask(
|
|
@@ -15,6 +15,12 @@ export const tool$tasksDeleteTask: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Delete a task
|
|
16
16
|
|
|
17
17
|
Deletes a task by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": true,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await tasksDeleteTask(
|
|
@@ -15,6 +15,12 @@ export const tool$tasksGetTask: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Get a task
|
|
16
16
|
|
|
17
17
|
Returns a single task by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await tasksGetTask(
|
|
@@ -15,6 +15,12 @@ export const tool$tasksListTasks: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List tasks
|
|
16
16
|
|
|
17
17
|
Returns a paginated list of tasks with optional client and workspace filters.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await tasksListTasks(
|
|
@@ -15,6 +15,12 @@ export const tool$tasksUpdateTask: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Update a task
|
|
16
16
|
|
|
17
17
|
Updates a task by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await tasksUpdateTask(
|
|
@@ -15,6 +15,12 @@ export const tool$usersDeleteUser: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Delete a user
|
|
16
16
|
|
|
17
17
|
Deletes a client user from the client by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": true,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await usersDeleteUser(
|
|
@@ -15,6 +15,12 @@ export const tool$usersGetUser: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Get a user
|
|
16
16
|
|
|
17
17
|
Returns a single client user by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await usersGetUser(
|
|
@@ -15,6 +15,12 @@ export const tool$usersInviteUser: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Invite a user
|
|
16
16
|
|
|
17
17
|
Invites a new client user and returns the created record.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await usersInviteUser(
|
|
@@ -15,6 +15,12 @@ export const tool$usersListUsers: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List users
|
|
16
16
|
|
|
17
17
|
Returns a paginated list of client users.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await usersListUsers(
|
|
@@ -15,6 +15,12 @@ export const tool$usersUpdateUser: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Update a user
|
|
16
16
|
|
|
17
17
|
Updates a client user by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await usersUpdateUser(
|
|
@@ -17,6 +17,12 @@ export const tool$workspaceMembersCreateWorkspaceMember: ToolDefinition<
|
|
|
17
17
|
description: `Create a workspace member
|
|
18
18
|
|
|
19
19
|
Creates a new workspace member.`,
|
|
20
|
+
annotations: {
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": false,
|
|
25
|
+
},
|
|
20
26
|
args,
|
|
21
27
|
tool: async (client, args, ctx) => {
|
|
22
28
|
const [result, apiCall] = await workspaceMembersCreateWorkspaceMember(
|
|
@@ -17,6 +17,12 @@ export const tool$workspaceMembersListWorkspaceMembers: ToolDefinition<
|
|
|
17
17
|
description: `List workspace members
|
|
18
18
|
|
|
19
19
|
Returns workspace members for a workspace.`,
|
|
20
|
+
annotations: {
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": true,
|
|
25
|
+
},
|
|
20
26
|
args,
|
|
21
27
|
tool: async (client, args, ctx) => {
|
|
22
28
|
const [result, apiCall] = await workspaceMembersListWorkspaceMembers(
|
|
@@ -17,6 +17,12 @@ export const tool$workspaceMembersRemoveWorkspaceMember: ToolDefinition<
|
|
|
17
17
|
description: `Remove a workspace member
|
|
18
18
|
|
|
19
19
|
Removes a workspace member from a workspace.`,
|
|
20
|
+
annotations: {
|
|
21
|
+
"destructiveHint": true,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": false,
|
|
25
|
+
},
|
|
20
26
|
args,
|
|
21
27
|
tool: async (client, args, ctx) => {
|
|
22
28
|
const [result, apiCall] = await workspaceMembersRemoveWorkspaceMember(
|
|
@@ -15,6 +15,12 @@ export const tool$workspacesCreateWorkspace: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Create a workspace
|
|
16
16
|
|
|
17
17
|
Creates a new workspace and returns the created workspace.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await workspacesCreateWorkspace(
|
|
@@ -15,6 +15,12 @@ export const tool$workspacesGetWorkspace: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Get a workspace
|
|
16
16
|
|
|
17
17
|
Returns a single workspace by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await workspacesGetWorkspace(
|
|
@@ -15,6 +15,12 @@ export const tool$workspacesListWorkspaces: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List workspaces
|
|
16
16
|
|
|
17
17
|
Returns a paginated list of workspaces.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await workspacesListWorkspaces(
|
|
@@ -15,6 +15,12 @@ export const tool$workspacesUpdateWorkspace: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Update a workspace
|
|
16
16
|
|
|
17
17
|
Updates a workspace by ID.`,
|
|
18
|
+
annotations: {
|
|
19
|
+
"destructiveHint": false,
|
|
20
|
+
"idempotentHint": false,
|
|
21
|
+
"openWorldHint": false,
|
|
22
|
+
"readOnlyHint": false,
|
|
23
|
+
},
|
|
18
24
|
args,
|
|
19
25
|
tool: async (client, args, ctx) => {
|
|
20
26
|
const [result, apiCall] = await workspacesUpdateWorkspace(
|
package/src/mcp-server/tools.ts
CHANGED
|
@@ -21,6 +21,12 @@ export type ToolDefinition<Args extends undefined | ZodRawShape = undefined> =
|
|
|
21
21
|
description: string;
|
|
22
22
|
scopes?: MCPScope[];
|
|
23
23
|
args: Args;
|
|
24
|
+
annotations: {
|
|
25
|
+
destructiveHint: boolean;
|
|
26
|
+
idempotentHint: boolean;
|
|
27
|
+
openWorldHint: boolean;
|
|
28
|
+
readOnlyHint: boolean;
|
|
29
|
+
};
|
|
24
30
|
tool: (
|
|
25
31
|
client: SteuerboardCore,
|
|
26
32
|
args: objectOutputType<Args, ZodTypeAny>,
|
|
@@ -32,6 +38,12 @@ export type ToolDefinition<Args extends undefined | ZodRawShape = undefined> =
|
|
|
32
38
|
description: string;
|
|
33
39
|
scopes?: MCPScope[];
|
|
34
40
|
args?: undefined;
|
|
41
|
+
annotations: {
|
|
42
|
+
destructiveHint: boolean;
|
|
43
|
+
idempotentHint: boolean;
|
|
44
|
+
openWorldHint: boolean;
|
|
45
|
+
readOnlyHint: boolean;
|
|
46
|
+
};
|
|
35
47
|
tool: (
|
|
36
48
|
client: SteuerboardCore,
|
|
37
49
|
extra: RequestHandlerExtra<ServerRequest, ServerNotification>,
|
|
@@ -119,13 +131,24 @@ export function createRegisterTool(
|
|
|
119
131
|
}
|
|
120
132
|
|
|
121
133
|
if (tool.args) {
|
|
122
|
-
server.tool(
|
|
123
|
-
|
|
124
|
-
|
|
134
|
+
server.tool(
|
|
135
|
+
tool.name,
|
|
136
|
+
tool.description,
|
|
137
|
+
tool.args,
|
|
138
|
+
tool.annotations,
|
|
139
|
+
async (args, ctx) => {
|
|
140
|
+
return tool.tool(getSDK(), args, ctx);
|
|
141
|
+
},
|
|
142
|
+
);
|
|
125
143
|
} else {
|
|
126
|
-
server.tool(
|
|
127
|
-
|
|
128
|
-
|
|
144
|
+
server.tool(
|
|
145
|
+
tool.name,
|
|
146
|
+
tool.description,
|
|
147
|
+
tool.annotations,
|
|
148
|
+
async (_, ctx) => {
|
|
149
|
+
return tool.tool(getSDK(), ctx);
|
|
150
|
+
},
|
|
151
|
+
);
|
|
129
152
|
}
|
|
130
153
|
|
|
131
154
|
logger.debug("Registered tool", { name: tool.name });
|
|
@@ -4,7 +4,37 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export const InviteAccountantUserRoleEnum$zodSchema = z.enum([
|
|
8
|
+
"admin",
|
|
9
|
+
"user",
|
|
10
|
+
]);
|
|
11
|
+
|
|
12
|
+
export type InviteAccountantUserRoleEnum = z.infer<
|
|
13
|
+
typeof InviteAccountantUserRoleEnum$zodSchema
|
|
14
|
+
>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Role to assign to the invited user. Can be 'admin', 'user', or a custom role ID.
|
|
18
|
+
*/
|
|
19
|
+
export type InviteAccountantUserRoleUnion =
|
|
20
|
+
| InviteAccountantUserRoleEnum
|
|
21
|
+
| string;
|
|
22
|
+
|
|
23
|
+
export const InviteAccountantUserRoleUnion$zodSchema: z.ZodType<
|
|
24
|
+
InviteAccountantUserRoleUnion,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.union([
|
|
28
|
+
InviteAccountantUserRoleEnum$zodSchema,
|
|
29
|
+
z.string(),
|
|
30
|
+
]).describe(
|
|
31
|
+
"Role to assign to the invited user. Can be 'admin', 'user', or a custom role ID.",
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export type InviteAccountantUser = {
|
|
35
|
+
email: string;
|
|
36
|
+
role: InviteAccountantUserRoleEnum | string;
|
|
37
|
+
};
|
|
8
38
|
|
|
9
39
|
export const InviteAccountantUser$zodSchema: z.ZodType<
|
|
10
40
|
InviteAccountantUser,
|
|
@@ -12,5 +42,8 @@ export const InviteAccountantUser$zodSchema: z.ZodType<
|
|
|
12
42
|
unknown
|
|
13
43
|
> = z.object({
|
|
14
44
|
email: z.string(),
|
|
15
|
-
|
|
45
|
+
role: z.union([
|
|
46
|
+
InviteAccountantUserRoleEnum$zodSchema,
|
|
47
|
+
z.string(),
|
|
48
|
+
]),
|
|
16
49
|
});
|