@pipeshub-ai/mcp 2.1.0 → 2.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/README.md +92 -2
- package/bin/mcp-server.js +976 -169
- package/bin/mcp-server.js.map +28 -15
- package/bin/pipeshub.js +946 -0
- package/bin/pipeshub.js.map +14 -0
- package/esm/cli/client.d.ts +54 -0
- package/esm/cli/client.d.ts.map +1 -0
- package/esm/cli/client.js +230 -0
- package/esm/cli/client.js.map +1 -0
- package/esm/cli/commands.d.ts +30 -0
- package/esm/cli/commands.d.ts.map +1 -0
- package/esm/cli/commands.js +321 -0
- package/esm/cli/commands.js.map +1 -0
- package/esm/cli/config.d.ts +73 -0
- package/esm/cli/config.d.ts.map +1 -0
- package/esm/cli/config.js +218 -0
- package/esm/cli/config.js.map +1 -0
- package/esm/cli/init-qm.d.ts +11 -0
- package/esm/cli/init-qm.d.ts.map +1 -0
- package/esm/cli/init-qm.js +170 -0
- package/esm/cli/init-qm.js.map +1 -0
- package/esm/cli/pipeshub.d.ts +2 -0
- package/esm/cli/pipeshub.d.ts.map +1 -0
- package/esm/cli/pipeshub.js +296 -0
- package/esm/cli/pipeshub.js.map +1 -0
- package/esm/funcs/connectorGetRecordContent.d.ts +43 -0
- package/esm/funcs/connectorGetRecordContent.d.ts.map +1 -0
- package/esm/funcs/connectorGetRecordContent.js +114 -0
- package/esm/funcs/connectorGetRecordContent.js.map +1 -0
- package/esm/funcs/connectorLookupRecordByIdentifier.d.ts +68 -0
- package/esm/funcs/connectorLookupRecordByIdentifier.d.ts.map +1 -0
- package/esm/funcs/connectorLookupRecordByIdentifier.js +138 -0
- package/esm/funcs/connectorLookupRecordByIdentifier.js.map +1 -0
- package/esm/funcs/connectorNavigateKnowledgeGraph.d.ts +75 -0
- package/esm/funcs/connectorNavigateKnowledgeGraph.d.ts.map +1 -0
- package/esm/funcs/connectorNavigateKnowledgeGraph.js +152 -0
- package/esm/funcs/connectorNavigateKnowledgeGraph.js.map +1 -0
- package/esm/funcs/conversationsStreamConversation.js +1 -1
- package/esm/funcs/conversationsStreamConversation.js.map +1 -1
- package/esm/funcs/userGroupsGetAllUserGroups.js +1 -1
- package/esm/funcs/userGroupsGetAllUserGroups.js.map +1 -1
- package/esm/hooks/registration.d.ts.map +1 -1
- package/esm/hooks/registration.js +2 -1
- package/esm/hooks/registration.js.map +1 -1
- package/esm/hooks/request-context.d.ts +10 -0
- package/esm/hooks/request-context.d.ts.map +1 -0
- package/esm/hooks/request-context.js +38 -0
- package/esm/hooks/request-context.js.map +1 -0
- package/esm/hooks/requestid.d.ts +5 -0
- package/esm/hooks/requestid.d.ts.map +1 -0
- package/esm/hooks/requestid.js +58 -0
- package/esm/hooks/requestid.js.map +1 -0
- package/esm/lib/base64.d.ts +1 -1
- package/esm/lib/base64.d.ts.map +1 -1
- package/esm/lib/base64.js +6 -3
- package/esm/lib/base64.js.map +1 -1
- package/esm/lib/bytes-to-base64.d.ts +16 -0
- package/esm/lib/bytes-to-base64.d.ts.map +1 -0
- package/esm/lib/bytes-to-base64.js +23 -0
- package/esm/lib/bytes-to-base64.js.map +1 -0
- package/esm/mcp-server/instructions.d.ts +1 -1
- package/esm/mcp-server/instructions.d.ts.map +1 -1
- package/esm/mcp-server/instructions.js +62 -9
- package/esm/mcp-server/instructions.js.map +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +10 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/shared.d.ts +2 -2
- package/esm/mcp-server/shared.d.ts.map +1 -1
- package/esm/mcp-server/shared.js +7 -3
- package/esm/mcp-server/shared.js.map +1 -1
- package/esm/mcp-server/tools/_agui.d.ts +34 -0
- package/esm/mcp-server/tools/_agui.d.ts.map +1 -0
- package/esm/mcp-server/tools/_agui.js +91 -0
- package/esm/mcp-server/tools/_agui.js.map +1 -0
- package/esm/mcp-server/tools/_helpers.d.ts.map +1 -1
- package/esm/mcp-server/tools/_helpers.js +13 -6
- package/esm/mcp-server/tools/_helpers.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubChat.d.ts +0 -3
- package/esm/mcp-server/tools/pipeshubChat.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubChat.js +75 -92
- package/esm/mcp-server/tools/pipeshubChat.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubGetRecordContent.d.ts +125 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.d.ts.map +1 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.js +214 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.js.map +1 -0
- package/esm/mcp-server/tools/pipeshubSearch.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubSearch.js +22 -5
- package/esm/mcp-server/tools/pipeshubSearch.js.map +1 -1
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +13 -1
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/availablemodelsresponse.d.ts +1 -1
- package/esm/models/conversation.d.ts +1 -1
- package/esm/models/getrecordcontentop.d.ts +6 -0
- package/esm/models/getrecordcontentop.d.ts.map +1 -0
- package/esm/models/getrecordcontentop.js +5 -0
- package/esm/models/getrecordcontentop.js.map +1 -0
- package/esm/models/lookuprecordbyidentifierop.d.ts +7 -0
- package/esm/models/lookuprecordbyidentifierop.d.ts.map +1 -0
- package/esm/models/lookuprecordbyidentifierop.js +14 -0
- package/esm/models/lookuprecordbyidentifierop.js.map +1 -0
- package/esm/models/navigateknowledgegraphop.d.ts +14 -0
- package/esm/models/navigateknowledgegraphop.d.ts.map +1 -0
- package/esm/models/navigateknowledgegraphop.js +25 -0
- package/esm/models/navigateknowledgegraphop.js.map +1 -0
- package/esm/models/userteamsresponse.d.ts +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +6 -2
- package/esm/tool-names.js.map +1 -1
- package/package.json +4 -2
- package/qm/README.md +247 -0
- package/qm/SECURITY.md +134 -0
- package/qm/TROUBLESHOOTING.md +218 -0
- package/qm/qm.config.fragment.jsonc +42 -0
- package/qm/sandbox/Dockerfile +22 -0
- package/qm/sandbox/skills/pipeshub/SKILL.md +69 -0
- package/qm/sandbox/tools/pipeshub/tool.json +36 -0
- package/src/cli/client.ts +272 -0
- package/src/cli/commands.ts +403 -0
- package/src/cli/config.ts +229 -0
- package/src/cli/init-qm.ts +215 -0
- package/src/cli/pipeshub.ts +333 -0
- package/src/funcs/connectorGetRecordContent.ts +179 -0
- package/src/funcs/connectorLookupRecordByIdentifier.ts +200 -0
- package/src/funcs/connectorNavigateKnowledgeGraph.ts +215 -0
- package/src/funcs/conversationsStreamConversation.ts +1 -1
- package/src/funcs/userGroupsGetAllUserGroups.ts +1 -1
- package/src/hooks/registration.ts +2 -1
- package/src/hooks/request-context.ts +47 -0
- package/src/hooks/requestid.ts +62 -0
- package/src/lib/base64.ts +6 -3
- package/src/lib/bytes-to-base64.ts +24 -0
- package/src/mcp-server/instructions.ts +62 -9
- package/src/mcp-server/server.ts +11 -3
- package/src/mcp-server/shared.ts +7 -3
- package/src/mcp-server/tools/_agui.ts +138 -0
- package/src/mcp-server/tools/_helpers.ts +13 -6
- package/src/mcp-server/tools/pipeshubChat.ts +78 -91
- package/src/mcp-server/tools/pipeshubGetRecordContent.ts +251 -0
- package/src/mcp-server/tools/pipeshubSearch.ts +22 -5
- package/src/mcp-server/tools.ts +14 -1
- package/src/models/getrecordcontentop.ts +11 -0
- package/src/models/lookuprecordbyidentifierop.ts +26 -0
- package/src/models/navigateknowledgegraphop.ts +56 -0
- package/src/tool-names.ts +6 -2
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# Connecting MCP Clients to PipesHub MCP Server
|
|
2
2
|
|
|
3
|
-
This guide covers how to connect PipesHub's remote MCP server to **Cursor**, **Claude Code**, **Gemini CLI**, **Claude.ai (Web)**, and **LibreChat** using static OAuth credentials.
|
|
3
|
+
This guide covers how to connect PipesHub's remote MCP server to **Cursor**, **Claude Code**, **Gemini CLI**, **Codex CLI**, **Claude.ai (Web)**, and **LibreChat** using static OAuth credentials or bearer tokens.
|
|
4
4
|
|
|
5
5
|
PipesHub exposes a remote MCP endpoint over **Streamable HTTP** at `/mcp`.MCP Clients connect to this endpoint directly -- no local npm packages or stdio processes needed.
|
|
6
6
|
|
|
7
7
|
> **Looking for the tool reference?** See [TOOLS.md](./TOOLS.md) for descriptions, arguments, and a decision guide for each tool the MCP server exposes (`pipeshub_chat`, `pipeshub_search`, `pipeshub_download_record`, `pipeshub_directory`, `pipeshub_sources`).
|
|
8
8
|
|
|
9
|
+
> **Using QM?** QM cannot attach a third-party MCP endpoint — it is an MCP *server* to its own harness, not a client. Install the deployment-layer bundle in [`qm/`](./qm/) instead, which gives QM agents a `pipeshub` command inside their sandbox. This package ships that command as a second bin.
|
|
10
|
+
|
|
9
11
|
## Prerequisites
|
|
10
12
|
|
|
11
13
|
- A running PipesHub instance (self-hosted or cloud)
|
|
@@ -321,6 +323,47 @@ gemini mcp enable pipeshub
|
|
|
321
323
|
|
|
322
324
|
</details>
|
|
323
325
|
|
|
326
|
+
<details>
|
|
327
|
+
<summary><strong>Codex CLI</strong></summary>
|
|
328
|
+
|
|
329
|
+
Codex CLI ([OpenAI Codex](https://developers.openai.com/codex/mcp)) connects to remote MCP servers over **Streamable HTTP**, configured with a `[mcp_servers.<name>]` table in `~/.codex/config.toml` (or `.codex/config.toml` in your project root to scope it per-project). Codex's HTTP transport authenticates with a **bearer token** read from an environment variable, so pass a PipesHub JWT bearer token.
|
|
330
|
+
|
|
331
|
+
```toml
|
|
332
|
+
[mcp_servers.pipeshub]
|
|
333
|
+
url = "PIPESHUB_INSTANCE_URL/mcp"
|
|
334
|
+
bearer_token_env_var = "PIPESHUB_BEARER_TOKEN"
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
`bearer_token_env_var` is the **name** of the environment variable that holds the token — export it before launching Codex:
|
|
338
|
+
|
|
339
|
+
```bash
|
|
340
|
+
export PIPESHUB_BEARER_TOKEN="YOUR_BEARER_TOKEN"
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
> The token is the raw JWT, without the `Bearer` keyword.
|
|
344
|
+
|
|
345
|
+
Or add it with the CLI:
|
|
346
|
+
|
|
347
|
+
```bash
|
|
348
|
+
codex mcp add pipeshub \
|
|
349
|
+
--url PIPESHUB_INSTANCE_URL/mcp \
|
|
350
|
+
--bearer-token-env-var PIPESHUB_BEARER_TOKEN
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
> `--bearer-token-env-var` takes the **name of the environment variable** holding the token, not the token value itself.
|
|
354
|
+
|
|
355
|
+
### Verify
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
# List configured MCP servers
|
|
359
|
+
codex mcp list
|
|
360
|
+
|
|
361
|
+
# Inside the Codex TUI, view server status and available tools
|
|
362
|
+
/mcp
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
</details>
|
|
366
|
+
|
|
324
367
|
<details>
|
|
325
368
|
<summary><strong>Claude.ai (Web)</strong></summary>
|
|
326
369
|
|
|
@@ -606,6 +649,52 @@ gemini mcp add pipeshub -- npx -y @pipeshub-ai/mcp start \
|
|
|
606
649
|
|
|
607
650
|
</details>
|
|
608
651
|
|
|
652
|
+
<details>
|
|
653
|
+
<summary><strong>Codex CLI (Local)</strong></summary>
|
|
654
|
+
|
|
655
|
+
Run the MCP server as a local stdio process, authenticated with an OAuth app's Client ID and Secret (the `client_credentials` grant). Edit `~/.codex/config.toml` (or `.codex/config.toml` in your project root):
|
|
656
|
+
|
|
657
|
+
```toml
|
|
658
|
+
[mcp_servers.pipeshub]
|
|
659
|
+
command = "npx"
|
|
660
|
+
args = [
|
|
661
|
+
"-y",
|
|
662
|
+
"@pipeshub-ai/mcp",
|
|
663
|
+
"start",
|
|
664
|
+
"--server-url",
|
|
665
|
+
"PIPESHUB_INSTANCE_URL/api/v1",
|
|
666
|
+
"--client-id",
|
|
667
|
+
"YOUR_CLIENT_ID",
|
|
668
|
+
"--client-secret",
|
|
669
|
+
"YOUR_CLIENT_SECRET",
|
|
670
|
+
"--token-url",
|
|
671
|
+
"/api/v1/oauth2/token",
|
|
672
|
+
]
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
Notes:
|
|
676
|
+
|
|
677
|
+
- `--server-url` must include `/api/v1`.
|
|
678
|
+
- `--token-url /api/v1/oauth2/token` is required.
|
|
679
|
+
|
|
680
|
+
Or authenticate with a JWT bearer token instead:
|
|
681
|
+
|
|
682
|
+
```toml
|
|
683
|
+
[mcp_servers.pipeshub]
|
|
684
|
+
command = "npx"
|
|
685
|
+
args = [
|
|
686
|
+
"-y",
|
|
687
|
+
"@pipeshub-ai/mcp",
|
|
688
|
+
"start",
|
|
689
|
+
"--server-url",
|
|
690
|
+
"PIPESHUB_INSTANCE_URL/api/v1",
|
|
691
|
+
"--bearer-auth",
|
|
692
|
+
"YOUR_BEARER_TOKEN",
|
|
693
|
+
]
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
</details>
|
|
697
|
+
|
|
609
698
|
<details>
|
|
610
699
|
<summary><strong>VS Code</strong></summary>
|
|
611
700
|
|
|
@@ -712,7 +801,7 @@ npx @pipeshub-ai/mcp --help
|
|
|
712
801
|
### Architecture
|
|
713
802
|
|
|
714
803
|
```
|
|
715
|
-
AI Client (Cursor / Claude Code / Gemini CLI / Claude.ai / LibreChat)
|
|
804
|
+
AI Client (Cursor / Claude Code / Gemini CLI / Codex CLI / Claude.ai / LibreChat)
|
|
716
805
|
│
|
|
717
806
|
│ HTTP POST (JSON-RPC)
|
|
718
807
|
│ Authorization: Bearer <token>
|
|
@@ -779,6 +868,7 @@ Then connect to `PIPESHUB_INSTANCE_URL/mcp` with a Bearer token to test the endp
|
|
|
779
868
|
- **Cursor**: Remove and re-add the MCP server, or clear the cached OAuth token and reconnect.
|
|
780
869
|
- **Claude Code**: Run `/mcp` and complete the browser login flow again.
|
|
781
870
|
- **Gemini CLI**: Run `/mcp auth pipeshub` to re-authenticate.
|
|
871
|
+
- **Codex CLI**: Update `PIPESHUB_BEARER_TOKEN` with a fresh token and restart Codex.
|
|
782
872
|
- **Claude.ai**: Disconnect and reconnect the connector in **Settings > Connectors**.
|
|
783
873
|
|
|
784
874
|
</details>
|