@pipeshub-ai/mcp 2.4.1 → 2.4.2

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 CHANGED
@@ -50452,7 +50452,7 @@ the user can verify.
50452
50452
  the document's text) without downloading the original file. Prefer this
50453
50453
  over download when the question is about what the record says.
50454
50454
  - \`pipeshub_directory\` — people, groups, teams, and \`whoami\` lookups.
50455
- Not for documents.
50455
+ Not for documents or files — that is \`pipeshub_search\`.
50456
50456
  - \`pipeshub_sources\` — call once at the start of a session to discover
50457
50457
  which connectors / KB / models are available, then cache the result.
50458
50458
  - \`pipeshub_agents\` — list the org's configured **agents** (specialized
@@ -55054,14 +55054,27 @@ var init_teamsGetUserTeams = __esm(() => {
55054
55054
  });
55055
55055
 
55056
55056
  // src/mcp-server/tools/pipeshubDirectory.ts
55057
- var args5, tool$pipeshubDirectory;
55057
+ function defaultLimit(schema) {
55058
+ const limit = schema.parse({}).limit;
55059
+ if (typeof limit !== "number") {
55060
+ throw new Error("list request schema is missing a numeric limit default");
55061
+ }
55062
+ return limit;
55063
+ }
55064
+ var listUsersLimit, listGroupsLimit, listTeamsLimit, args5, tool$pipeshubDirectory;
55058
55065
  var init_pipeshubDirectory = __esm(() => {
55059
55066
  init_zod();
55060
55067
  init_usersGetAllUsers();
55061
55068
  init_usersGetUserById();
55062
55069
  init_userGroupsGetAllUserGroups();
55063
55070
  init_teamsGetUserTeams();
55071
+ init_getallusersop();
55072
+ init_getallusergroupsop();
55073
+ init_getuserteamsop();
55064
55074
  init__helpers();
55075
+ listUsersLimit = defaultLimit(GetAllUsersRequest$zodSchema);
55076
+ listGroupsLimit = defaultLimit(GetAllUserGroupsRequest$zodSchema);
55077
+ listTeamsLimit = defaultLimit(GetUserTeamsRequest$zodSchema);
55065
55078
  args5 = {
55066
55079
  action: _enum([
55067
55080
  "whoami",
@@ -55071,28 +55084,29 @@ var init_pipeshubDirectory = __esm(() => {
55071
55084
  "list_my_teams"
55072
55085
  ]).describe(`What to do:
55073
55086
  ` + "- `whoami` — return the authenticated user's identity, confirmed " + `against the server. No other args needed.
55074
- ` + "- `list_users` — paginated list of org users. Optional `page`, " + "`limit`, `search` (substring match against name or email).\n" + "- `get_user` — full profile for one user. Required `userId`. " + "Use `whoami` to find your own id first if needed.\n" + "- `list_groups` — paginated list of user groups (with `userCount`).\n" + "- `list_my_teams` — teams the authenticated user belongs to, with " + "capability flags."),
55075
- userId: string2().optional().describe("Required when `action` is `get_user`. 24-character ObjectId."),
55076
- page: number2().int().min(1).optional().describe("Pagination — 1-based page number. Used by list_* actions."),
55077
- limit: number2().int().min(1).max(100).optional().describe("Pagination — items per page. Used by list_* actions."),
55078
- search: string2().optional().describe("Substring match against name / email. Used by list_users.")
55087
+ ` + "- `list_users` — paginated list of org users. Optional `page`, " + "`limit`, `search` (substring match against name or email).\n" + "- `get_user` — full profile for one user. Required `userId`. " + "Use `whoami` to find your own id first if needed.\n" + "- `list_groups` — paginated list of user groups (with `userCount`). " + "Optional `search` matches group name.\n" + "- `list_my_teams` — teams the authenticated user belongs to, with " + "capability flags. Optional `search` matches team name."),
55088
+ userId: string2().optional().describe("Required when `action` is `get_user`. 24-character ObjectId. " + "Take it from `whoami` (yourself) or from a `list_users` hit."),
55089
+ page: number2().int().min(1).optional().describe("1-based page for list_* actions. Omit for page 1."),
55090
+ limit: number2().int().min(1).max(100).optional().describe("Items per page for list_* (1–100). Omit for the action default: " + `${listUsersLimit} users, ${listGroupsLimit} groups, ` + `${listTeamsLimit} teams.`),
55091
+ search: string2().optional().describe("Substring match on list_users (name or email), list_groups (name), " + "and list_my_teams (name). An empty list means no match, not an error.")
55079
55092
  };
55080
55093
  tool$pipeshubDirectory = {
55081
55094
  name: "pipeshub_directory",
55082
- description: `Look up people, groups, and teams in PipesHub. One tool with five
55083
- actions — pick the right \`action\`:
55084
-
55085
- - \`whoami\` — who is the caller? Use this whenever you need the
55086
- authenticated user's own id, email, or full name (e.g. before
55087
- \`get_user\` on themselves). Errors if the credential is expired
55088
- or revoked.
55089
- - \`list_users\` — search / page through org users.
55090
- - \`get_user\` — full \`User\` document for one user (requires \`userId\`).
55091
- - \`list_groups\` — list user groups with \`userCount\`.
55092
- - \`list_my_teams\` — teams the caller belongs to, with capability flags
55093
- (\`canEdit\` / \`canDelete\` / \`canManageMembers\`).
55094
-
55095
- Output shape varies by action; see each action's docs above.`,
55095
+ description: `Look up people, groups, and teams in PipesHub. Five actions — pick
55096
+ \`action\`. Not for documents or files: that is \`pipeshub_search\`.
55097
+
55098
+ - \`whoami\` — the caller's id, email, full name. Use before \`get_user\`
55099
+ on yourself. Errors if the credential is expired or revoked.
55100
+ - \`list_users\` — page org users; \`search\` matches name or email.
55101
+ - \`get_user\` — full \`User\` for one \`userId\`.
55102
+ - \`list_groups\` — org groups with \`userCount\`; \`search\` matches name.
55103
+ - \`list_my_teams\` — teams the caller is on, with \`canEdit\` /
55104
+ \`canDelete\` / \`canManageMembers\`; \`search\` matches name.
55105
+
55106
+ Omit \`page\`/\`limit\` for the first page (\`page\` 1). No match is an
55107
+ empty \`users\`/\`groups\`/\`teams\` array, not an error.
55108
+ \`pagination.hasNextPage\` (teams: \`hasNext\`) says whether to request
55109
+ the next page.`,
55096
55110
  scopes: ["read"],
55097
55111
  annotations: {
55098
55112
  title: "PipesHub directory (users / groups / teams / whoami)",
@@ -55719,7 +55733,7 @@ it using the \`Web URL\` from its metadata header (when present).`
55719
55733
  },
55720
55734
  {
55721
55735
  name: "pipeshub_directory",
55722
- description: "Look up people, groups, and teams in PipesHub. One tool with five\nactions — pick the right `action`:\n\n- `whoami` — who is the caller? Use this whenever you need the\n authenticated user's own id, email, or full name (e.g. before\n `get_user` on themselves). Errors if the credential is expired\n or revoked.\n- `list_users` — search / page through org users.\n- `get_user` — full `User` document for one user (requires `userId`).\n- `list_groups` — list user groups with `userCount`.\n- `list_my_teams` — teams the caller belongs to, with capability flags\n (`canEdit` / `canDelete` / `canManageMembers`).\n\nOutput shape varies by action; see each action's docs above."
55736
+ description: "Look up people, groups, and teams in PipesHub. Five actions — pick\n`action`. Not for documents or files: that is `pipeshub_search`.\n\n- `whoami` — the caller's id, email, full name. Use before `get_user`\n on yourself. Errors if the credential is expired or revoked.\n- `list_users` — page org users; `search` matches name or email.\n- `get_user` — full `User` for one `userId`.\n- `list_groups` — org groups with `userCount`; `search` matches name.\n- `list_my_teams` — teams the caller is on, with `canEdit` /\n `canDelete` / `canManageMembers`; `search` matches name.\n\nOmit `page`/`limit` for the first page (`page` 1). No match is an\nempty `users`/`groups`/`teams` array, not an error.\n`pagination.hasNextPage` (teams: `hasNext`) says whether to request\nthe next page."
55723
55737
  },
55724
55738
  {
55725
55739
  name: "pipeshub_agents",
@@ -59352,5 +59366,5 @@ export {
59352
59366
  app
59353
59367
  };
59354
59368
 
59355
- //# debugId=DDE3715978A747DC64756E2164756E21
59369
+ //# debugId=8B63F04DA907BD3C64756E2164756E21
59356
59370
  //# sourceMappingURL=mcp-server.js.map