@pipeshub-ai/mcp 2.1.0 → 2.2.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 +90 -2
- package/bin/mcp-server.js +408 -74
- package/bin/mcp-server.js.map +19 -12
- 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/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/mcp-server/instructions.d.ts +1 -1
- package/esm/mcp-server/instructions.d.ts.map +1 -1
- package/esm/mcp-server/instructions.js +32 -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/tools/pipeshubChat.d.ts.map +1 -1
- package/esm/mcp-server/tools/pipeshubChat.js +8 -2
- package/esm/mcp-server/tools/pipeshubChat.js.map +1 -1
- package/esm/mcp-server/tools/pipeshubGetRecordContent.d.ts +8 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.d.ts.map +1 -0
- package/esm/mcp-server/tools/pipeshubGetRecordContent.js +63 -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 +8 -4
- 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/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/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 +2 -1
- package/src/funcs/connectorGetRecordContent.ts +179 -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/mcp-server/instructions.ts +32 -9
- package/src/mcp-server/server.ts +11 -3
- package/src/mcp-server/tools/pipeshubChat.ts +8 -2
- package/src/mcp-server/tools/pipeshubGetRecordContent.ts +67 -0
- package/src/mcp-server/tools/pipeshubSearch.ts +8 -4
- package/src/mcp-server/tools.ts +14 -1
- package/src/models/getrecordcontentop.ts +11 -0
- package/src/tool-names.ts +6 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
|
@@ -321,6 +321,47 @@ gemini mcp enable pipeshub
|
|
|
321
321
|
|
|
322
322
|
</details>
|
|
323
323
|
|
|
324
|
+
<details>
|
|
325
|
+
<summary><strong>Codex CLI</strong></summary>
|
|
326
|
+
|
|
327
|
+
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.
|
|
328
|
+
|
|
329
|
+
```toml
|
|
330
|
+
[mcp_servers.pipeshub]
|
|
331
|
+
url = "PIPESHUB_INSTANCE_URL/mcp"
|
|
332
|
+
bearer_token_env_var = "PIPESHUB_BEARER_TOKEN"
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
`bearer_token_env_var` is the **name** of the environment variable that holds the token — export it before launching Codex:
|
|
336
|
+
|
|
337
|
+
```bash
|
|
338
|
+
export PIPESHUB_BEARER_TOKEN="YOUR_BEARER_TOKEN"
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
> The token is the raw JWT, without the `Bearer` keyword.
|
|
342
|
+
|
|
343
|
+
Or add it with the CLI:
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
codex mcp add pipeshub \
|
|
347
|
+
--url PIPESHUB_INSTANCE_URL/mcp \
|
|
348
|
+
--bearer-token-env-var PIPESHUB_BEARER_TOKEN
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
> `--bearer-token-env-var` takes the **name of the environment variable** holding the token, not the token value itself.
|
|
352
|
+
|
|
353
|
+
### Verify
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
# List configured MCP servers
|
|
357
|
+
codex mcp list
|
|
358
|
+
|
|
359
|
+
# Inside the Codex TUI, view server status and available tools
|
|
360
|
+
/mcp
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
</details>
|
|
364
|
+
|
|
324
365
|
<details>
|
|
325
366
|
<summary><strong>Claude.ai (Web)</strong></summary>
|
|
326
367
|
|
|
@@ -606,6 +647,52 @@ gemini mcp add pipeshub -- npx -y @pipeshub-ai/mcp start \
|
|
|
606
647
|
|
|
607
648
|
</details>
|
|
608
649
|
|
|
650
|
+
<details>
|
|
651
|
+
<summary><strong>Codex CLI (Local)</strong></summary>
|
|
652
|
+
|
|
653
|
+
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):
|
|
654
|
+
|
|
655
|
+
```toml
|
|
656
|
+
[mcp_servers.pipeshub]
|
|
657
|
+
command = "npx"
|
|
658
|
+
args = [
|
|
659
|
+
"-y",
|
|
660
|
+
"@pipeshub-ai/mcp",
|
|
661
|
+
"start",
|
|
662
|
+
"--server-url",
|
|
663
|
+
"PIPESHUB_INSTANCE_URL/api/v1",
|
|
664
|
+
"--client-id",
|
|
665
|
+
"YOUR_CLIENT_ID",
|
|
666
|
+
"--client-secret",
|
|
667
|
+
"YOUR_CLIENT_SECRET",
|
|
668
|
+
"--token-url",
|
|
669
|
+
"/api/v1/oauth2/token",
|
|
670
|
+
]
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
Notes:
|
|
674
|
+
|
|
675
|
+
- `--server-url` must include `/api/v1`.
|
|
676
|
+
- `--token-url /api/v1/oauth2/token` is required.
|
|
677
|
+
|
|
678
|
+
Or authenticate with a JWT bearer token instead:
|
|
679
|
+
|
|
680
|
+
```toml
|
|
681
|
+
[mcp_servers.pipeshub]
|
|
682
|
+
command = "npx"
|
|
683
|
+
args = [
|
|
684
|
+
"-y",
|
|
685
|
+
"@pipeshub-ai/mcp",
|
|
686
|
+
"start",
|
|
687
|
+
"--server-url",
|
|
688
|
+
"PIPESHUB_INSTANCE_URL/api/v1",
|
|
689
|
+
"--bearer-auth",
|
|
690
|
+
"YOUR_BEARER_TOKEN",
|
|
691
|
+
]
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
</details>
|
|
695
|
+
|
|
609
696
|
<details>
|
|
610
697
|
<summary><strong>VS Code</strong></summary>
|
|
611
698
|
|
|
@@ -712,7 +799,7 @@ npx @pipeshub-ai/mcp --help
|
|
|
712
799
|
### Architecture
|
|
713
800
|
|
|
714
801
|
```
|
|
715
|
-
AI Client (Cursor / Claude Code / Gemini CLI / Claude.ai / LibreChat)
|
|
802
|
+
AI Client (Cursor / Claude Code / Gemini CLI / Codex CLI / Claude.ai / LibreChat)
|
|
716
803
|
│
|
|
717
804
|
│ HTTP POST (JSON-RPC)
|
|
718
805
|
│ Authorization: Bearer <token>
|
|
@@ -779,6 +866,7 @@ Then connect to `PIPESHUB_INSTANCE_URL/mcp` with a Bearer token to test the endp
|
|
|
779
866
|
- **Cursor**: Remove and re-add the MCP server, or clear the cached OAuth token and reconnect.
|
|
780
867
|
- **Claude Code**: Run `/mcp` and complete the browser login flow again.
|
|
781
868
|
- **Gemini CLI**: Run `/mcp auth pipeshub` to re-authenticate.
|
|
869
|
+
- **Codex CLI**: Update `PIPESHUB_BEARER_TOKEN` with a fresh token and restart Codex.
|
|
782
870
|
- **Claude.ai**: Disconnect and reconnect the connector in **Settings > Connectors**.
|
|
783
871
|
|
|
784
872
|
</details>
|