@slyswiss/infinity-mcp 1.0.1 → 1.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/dist/tools/workspaces.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { run } from "./util.js";
|
|
2
3
|
export function registerWorkspaceTools(server, client) {
|
|
3
4
|
server.tool("list_workspaces", "List all Infinity workspaces the authenticated user can access. Returns workspace id and name for each. Call this first when the user has not specified a workspace — Claude needs a workspace_id to use any other tool.", {}, () => run(() => client.get("/workspaces")));
|
|
5
|
+
server.tool("list_members", "List the members of a workspace. Returns each member's id, name, and email. Use this to resolve numeric user ids to real people — for example, ids that appear in an item's 'created_by' field or in the value of a 'members'/'created by' attribute. Call this once and keep the id→name map, then apply it when presenting items so the user sees names instead of ids. Use list_workspaces first if you don't have the workspace_id.", {
|
|
6
|
+
workspace_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.describe("The workspace id (from list_workspaces)."),
|
|
9
|
+
}, ({ workspace_id }) => run(() => client.get(`/workspaces/${workspace_id}/members`)));
|
|
4
10
|
server.tool("get_profile", "Return the profile (id, name, email) of the user who owns the Infinity API token. Use this when you need to know who 'I' or 'me' refers to — for example, to filter items assigned to the current user.", {}, () => run(() => client.get("/profile")));
|
|
5
11
|
}
|
|
6
12
|
//# sourceMappingURL=workspaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/tools/workspaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/tools/workspaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhC,MAAM,UAAU,sBAAsB,CACpC,MAAiB,EACjB,MAAsB;IAEtB,MAAM,CAAC,IAAI,CACT,iBAAiB,EACjB,0NAA0N,EAC1N,EAAE,EACF,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAC3C,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,cAAc,EACd,yaAAya,EACza;QACE,YAAY,EAAE,CAAC;aACZ,MAAM,EAAE;aACR,QAAQ,CAAC,0CAA0C,CAAC;KACxD,EACD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CACnB,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,YAAY,UAAU,CAAC,CAAC,CAC/D,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,aAAa,EACb,yMAAyM,EACzM,EAAE,EACF,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CACxC,CAAC;AACJ,CAAC"}
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED