@pipeshub-ai/mcp 2.0.0 → 2.0.1
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 +36 -26
- package/bin/mcp-server.js.map +4 -4
- package/esm/mcp-server/tools/pipeshubChat.d.ts +2 -2
- package/esm/mcp-server/tools/pipeshubChat.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubChat.js +26 -14
- package/esm/mcp-server/tools/pipeshubChat.js.map +1 -1
- package/esm/tool-names.js +1 -1
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/mcp-server/tools/pipeshubChat.ts +27 -15
- package/src/tool-names.ts +1 -1
|
@@ -11,8 +11,8 @@ declare const args: {
|
|
|
11
11
|
modelName: z.ZodOptional<z.ZodString>;
|
|
12
12
|
modelFriendlyName: z.ZodOptional<z.ZodString>;
|
|
13
13
|
chatMode: z.ZodOptional<z.ZodEnum<{
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
web_search: "web_search";
|
|
15
|
+
internal_search: "internal_search";
|
|
16
16
|
}>>;
|
|
17
17
|
};
|
|
18
18
|
export declare const tool$pipeshubChat: ToolDefinition<typeof args>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeshubChat.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/pipeshubChat.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAmB7C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"pipeshubChat.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/pipeshubChat.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAmB7C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;CA+BT,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,OAAO,IAAI,CAwJzD,CAAC"}
|
|
@@ -47,25 +47,37 @@ const args = {
|
|
|
47
47
|
+ "Defaults to the org's default LLM."),
|
|
48
48
|
modelName: z.string().optional(),
|
|
49
49
|
modelFriendlyName: z.string().optional(),
|
|
50
|
-
chatMode: z.enum(["
|
|
51
|
-
+ "
|
|
50
|
+
chatMode: z.enum(["web_search", "internal_search"]).optional().describe("Controls retrieval source. "
|
|
51
|
+
+ "`internal_search` (default) — searches the org's indexed knowledge "
|
|
52
|
+
+ "bases (Drive, Confluence, Slack, Gmail, Jira, Box, etc.) and returns "
|
|
53
|
+
+ "citations. Use this for questions about internal docs, policies, or "
|
|
54
|
+
+ "company data. "
|
|
55
|
+
+ "`web_search` — searches the public web instead of internal sources. "
|
|
56
|
+
+ "Use only when the user explicitly asks about current events, public "
|
|
57
|
+
+ "information, or anything not expected to be in the org's KB. "
|
|
58
|
+
+ "Omit this field (or pass `internal_search`) for all normal queries."),
|
|
52
59
|
};
|
|
53
60
|
export const tool$pipeshubChat = {
|
|
54
61
|
name: "pipeshub_chat",
|
|
55
|
-
description: `**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
returns citations.
|
|
62
|
+
description: `**Primary chat tool — handles both internal knowledge queries and web search.**
|
|
63
|
+
|
|
64
|
+
**Internal search** (default, \`chatMode: "internal_search"\`): Use whenever
|
|
65
|
+
the user asks about their documents, files, knowledge base, company policies,
|
|
66
|
+
or anything that could plausibly be answered by content in their PipesHub-indexed
|
|
67
|
+
sources (Drive, Box, Confluence, Slack, Gmail, Jira, the org's KB, ...).
|
|
68
|
+
Grounds the answer in the user's actual data and returns citations.
|
|
69
|
+
|
|
70
|
+
**Web search** (\`chatMode: "web_search"\`): Use when the user asks about
|
|
71
|
+
current events, public information, or anything unlikely to be in the org's
|
|
72
|
+
internal knowledge base. Pass \`chatMode: "web_search"\` and this tool will
|
|
73
|
+
search the public web instead.
|
|
62
74
|
|
|
63
75
|
**When to pick this over other tools:**
|
|
64
|
-
- "What does <document> say about X?" → \`pipeshub_chat\` (
|
|
65
|
-
|
|
66
|
-
- "
|
|
67
|
-
- "What's
|
|
68
|
-
- "What
|
|
76
|
+
- "What does <document> say about X?" → \`pipeshub_chat\` (internal_search)
|
|
77
|
+
- "Summarize <topic / doc>." → \`pipeshub_chat\` (internal_search)
|
|
78
|
+
- "What's our policy on Y?" → \`pipeshub_chat\` (internal_search)
|
|
79
|
+
- "What's in the news about Z?" → \`pipeshub_chat\` (web_search)
|
|
80
|
+
- "What is the latest version of <library>?" → \`pipeshub_chat\` (web_search)
|
|
69
81
|
- "Find / locate the file named X" → \`pipeshub_search\` (then
|
|
70
82
|
\`pipeshub_download_record\` if the user wants the bytes).
|
|
71
83
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeshubChat.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/pipeshubChat.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,0EAA0E;AAC1E,0EAA0E;AAC1E,EAAE;AACF,0EAA0E;AAC1E,6CAA6C;AAC7C,oCAAoC;AACpC,0EAA0E;AAC1E,uEAAuE;AACvE,qEAAqE;AACrE,kBAAkB;AAClB,EAAE;AACF,qDAAqD;AACrD,4CAA4C;AAC5C,0EAA0E;AAC1E,wEAAwE;AACxE,2EAA2E;AAC3E,wEAAwE;AACxE,yDAAyD;AACzD,0EAA0E;AAC1E,0EAA0E;AAC1E,6CAA6C;AAC7C,+DAA+D;AAC/D,wEAAwE;AACxE,uEAAuE;AACvE,wEAAwE;AACxE,sEAAsE;AAEtE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,OAAO,EACL,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AI,YAAY;YAAE,OAAO,WAAW,CAAC,YAAY,CAAC,CAAC;QAEnD,IAAI,iBAAiB,EAAE,CAAC;YACtB,OAAO,UAAU,CAAC;gBAChB,GAAG,gBAAgB,CAAC,iBAAiB,CAAC;gBACtC,WAAW;aACZ,CAAC,CAAC;QACL,CAAC;QAED,oEAAoE;QACpE,wDAAwD;QACxD,IAAI,eAAe,EAAE,CAAC;YACpB,OAAO,UAAU,CAAC;gBAChB,cAAc,EAAE,IAAI;gBACpB,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,YAAY;gBACpB,MAAM,EAAE,eAAe;gBACvB,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,EAAE;gBACb,iBAAiB,EAAE,EAAE;gBACrB,YAAY,EAAE,CAAC;gBACf,WAAW;gBACX,OAAO,EAAE,qDAAqD;sBAC1D,2DAA2D;aAChE,CAAC,CAAC;QACL,CAAC;QAED,OAAO,WAAW,CAAC,yCAAyC,CAAC,CAAC;IAChE,CAAC;CACF,CAAC"}
|
package/esm/tool-names.js
CHANGED
|
@@ -6,7 +6,7 @@ export const toolNames = [
|
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "pipeshub_chat",
|
|
9
|
-
"description": "**
|
|
9
|
+
"description": "**Primary chat tool — handles both internal knowledge queries and web search.**\n\n**Internal search** (default, `chatMode: \"internal_search\"`): Use whenever\nthe user asks about their documents, files, knowledge base, company policies,\nor anything that could plausibly be answered by content in their PipesHub-indexed\nsources (Drive, Box, Confluence, Slack, Gmail, Jira, the org's KB, ...).\nGrounds the answer in the user's actual data and returns citations.\n\n**Web search** (`chatMode: \"web_search\"`): Use when the user asks about\ncurrent events, public information, or anything unlikely to be in the org's\ninternal knowledge base. Pass `chatMode: \"web_search\"` and this tool will\nsearch the public web instead.\n\n**When to pick this over other tools:**\n- \"What does <document> say about X?\" → `pipeshub_chat` (internal_search)\n- \"Summarize <topic / doc>.\" → `pipeshub_chat` (internal_search)\n- \"What's our policy on Y?\" → `pipeshub_chat` (internal_search)\n- \"What's in the news about Z?\" → `pipeshub_chat` (web_search)\n- \"What is the latest version of <library>?\" → `pipeshub_chat` (web_search)\n- \"Find / locate the file named X\" → `pipeshub_search` (then\n `pipeshub_download_record` if the user wants the bytes).\n\n**Conversation lifecycle** — one tool, both start and continue:\n\n- **First turn**: omit `conversationId`. The server creates a new\n conversation; capture `conversationId` from the response.\n- **Follow-up turn**: pass the `conversationId` from the previous\n response. Server-side context is preserved — do NOT replay earlier\n messages, and `filters` is ignored on follow-ups (set once at\n creation).\n\nOnly re-omit `conversationId` (start a fresh conversation) when the\nuser explicitly asks to start over / clear context.\n\nThe response contains the AI's `answer` plus `citations`. To download a\ncited document, take `citations[*].recordId` and call\n`pipeshub_download_record`."
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "pipeshub_search",
|
package/esm/tool-names.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,kBAAkB;QAC1B,aAAa,EAAE,80BAA80B;KAC91B;IACD;QACE,MAAM,EAAE,eAAe;QACvB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,kBAAkB;QAC1B,aAAa,EAAE,80BAA80B;KAC91B;IACD;QACE,MAAM,EAAE,eAAe;QACvB,aAAa,EAAE,65DAA65D;KAC76D;IACD;QACE,MAAM,EAAE,iBAAiB;QACzB,aAAa,EAAE,uvBAAuvB;KACvwB;IACD;QACE,MAAM,EAAE,0BAA0B;QAClC,aAAa,EAAE,8dAA8d;KAC9e;IACD;QACE,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,onBAAonB;KACpoB;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -68,29 +68,41 @@ const args = {
|
|
|
68
68
|
),
|
|
69
69
|
modelName: z.string().optional(),
|
|
70
70
|
modelFriendlyName: z.string().optional(),
|
|
71
|
-
chatMode: z.enum(["
|
|
72
|
-
"
|
|
73
|
-
+ "
|
|
71
|
+
chatMode: z.enum(["web_search", "internal_search"]).optional().describe(
|
|
72
|
+
"Controls retrieval source. "
|
|
73
|
+
+ "`internal_search` (default) — searches the org's indexed knowledge "
|
|
74
|
+
+ "bases (Drive, Confluence, Slack, Gmail, Jira, Box, etc.) and returns "
|
|
75
|
+
+ "citations. Use this for questions about internal docs, policies, or "
|
|
76
|
+
+ "company data. "
|
|
77
|
+
+ "`web_search` — searches the public web instead of internal sources. "
|
|
78
|
+
+ "Use only when the user explicitly asks about current events, public "
|
|
79
|
+
+ "information, or anything not expected to be in the org's KB. "
|
|
80
|
+
+ "Omit this field (or pass `internal_search`) for all normal queries.",
|
|
74
81
|
),
|
|
75
82
|
};
|
|
76
83
|
|
|
77
84
|
export const tool$pipeshubChat: ToolDefinition<typeof args> = {
|
|
78
85
|
name: "pipeshub_chat",
|
|
79
86
|
description:
|
|
80
|
-
`**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
returns citations.
|
|
87
|
+
`**Primary chat tool — handles both internal knowledge queries and web search.**
|
|
88
|
+
|
|
89
|
+
**Internal search** (default, \`chatMode: "internal_search"\`): Use whenever
|
|
90
|
+
the user asks about their documents, files, knowledge base, company policies,
|
|
91
|
+
or anything that could plausibly be answered by content in their PipesHub-indexed
|
|
92
|
+
sources (Drive, Box, Confluence, Slack, Gmail, Jira, the org's KB, ...).
|
|
93
|
+
Grounds the answer in the user's actual data and returns citations.
|
|
94
|
+
|
|
95
|
+
**Web search** (\`chatMode: "web_search"\`): Use when the user asks about
|
|
96
|
+
current events, public information, or anything unlikely to be in the org's
|
|
97
|
+
internal knowledge base. Pass \`chatMode: "web_search"\` and this tool will
|
|
98
|
+
search the public web instead.
|
|
87
99
|
|
|
88
100
|
**When to pick this over other tools:**
|
|
89
|
-
- "What does <document> say about X?" → \`pipeshub_chat\` (
|
|
90
|
-
|
|
91
|
-
- "
|
|
92
|
-
- "What's
|
|
93
|
-
- "What
|
|
101
|
+
- "What does <document> say about X?" → \`pipeshub_chat\` (internal_search)
|
|
102
|
+
- "Summarize <topic / doc>." → \`pipeshub_chat\` (internal_search)
|
|
103
|
+
- "What's our policy on Y?" → \`pipeshub_chat\` (internal_search)
|
|
104
|
+
- "What's in the news about Z?" → \`pipeshub_chat\` (web_search)
|
|
105
|
+
- "What is the latest version of <library>?" → \`pipeshub_chat\` (web_search)
|
|
94
106
|
- "Find / locate the file named X" → \`pipeshub_search\` (then
|
|
95
107
|
\`pipeshub_download_record\` if the user wants the bytes).
|
|
96
108
|
|
package/src/tool-names.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "pipeshub_chat",
|
|
9
|
-
"description": "**
|
|
9
|
+
"description": "**Primary chat tool — handles both internal knowledge queries and web search.**\n\n**Internal search** (default, `chatMode: \"internal_search\"`): Use whenever\nthe user asks about their documents, files, knowledge base, company policies,\nor anything that could plausibly be answered by content in their PipesHub-indexed\nsources (Drive, Box, Confluence, Slack, Gmail, Jira, the org's KB, ...).\nGrounds the answer in the user's actual data and returns citations.\n\n**Web search** (`chatMode: \"web_search\"`): Use when the user asks about\ncurrent events, public information, or anything unlikely to be in the org's\ninternal knowledge base. Pass `chatMode: \"web_search\"` and this tool will\nsearch the public web instead.\n\n**When to pick this over other tools:**\n- \"What does <document> say about X?\" → `pipeshub_chat` (internal_search)\n- \"Summarize <topic / doc>.\" → `pipeshub_chat` (internal_search)\n- \"What's our policy on Y?\" → `pipeshub_chat` (internal_search)\n- \"What's in the news about Z?\" → `pipeshub_chat` (web_search)\n- \"What is the latest version of <library>?\" → `pipeshub_chat` (web_search)\n- \"Find / locate the file named X\" → `pipeshub_search` (then\n `pipeshub_download_record` if the user wants the bytes).\n\n**Conversation lifecycle** — one tool, both start and continue:\n\n- **First turn**: omit `conversationId`. The server creates a new\n conversation; capture `conversationId` from the response.\n- **Follow-up turn**: pass the `conversationId` from the previous\n response. Server-side context is preserved — do NOT replay earlier\n messages, and `filters` is ignored on follow-ups (set once at\n creation).\n\nOnly re-omit `conversationId` (start a fresh conversation) when the\nuser explicitly asks to start over / clear context.\n\nThe response contains the AI's `answer` plus `citations`. To download a\ncited document, take `citations[*].recordId` and call\n`pipeshub_download_record`."
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "pipeshub_search",
|