PipesHub MCP Server
OfficialMCPクライアントをPipesHub MCPサーバーに接続する
このガイドでは、PipesHubのリモートMCPサーバーをCursor、Claude Code、Gemini CLI、Codex CLI、Claude.ai(Web)、LibreChatに、静的OAuth認証情報またはベアラートークンを使用して接続する方法を説明します。
PipesHubは、Streamable HTTPを介して/mcpにリモートMCPエンドポイントを公開します。MCPクライアントはこのエンドポイントに直接接続します。ローカルのnpmパッケージやstdioプロセスは不要です。
コーディングエージェントですか? コーディングエージェント向けから始めてください。
npx skills add pipeshub-ai/mcp-serverでスキルをユーザーのリポジトリにインストールします(skills/pipeshubを参照)。このリポジトリのコントリビューターは、AGENTS.mdをお読みください。ツールリファレンスをお探しですか? TOOLS.mdで、MCPサーバーが公開する各ツール(
pipeshub_chat、pipeshub_search、pipeshub_get_record_content、pipeshub_download_record、pipeshub_directory、pipeshub_sources、pipeshub_agents)の説明、引数、および判断ガイドを参照してください。QMを使用していますか? QMはサードパーティのMCPエンドポイントを接続できません。QMは独自のハーネスに対するMCPサーバーであり、クライアントではないためです。QMでPipesHubを使用するに従ってください。
qm/内のデプロイメント層バンドルは、エージェントのサンドボックス内でpipeshubコマンドを提供します。このパッケージはそのコマンドを2番目のbinとして同梱しています。
前提条件
実行中のPipesHubインスタンス(セルフホストまたはクラウド)
PipesHubで作成したOAuthアプリ(ステップ1を参照)
Related MCP server: ai-assistant
ステップ1: PipesHubでOAuthアプリを作成する
管理者としてPipesHubインスタンスにログインします
設定 > 開発者設定 > OAuthアプリに移動します
OAuthアプリを作成をクリックします
アプリの詳細を入力します:
名前:例:
MCP IntegrationリダイレクトURI:使用予定のクライアントのリダイレクトURIをすべて追加します:
クライアント
リダイレクトURI
Cursor
cursor://anysphere.cursor-mcp/oauth/callbackClaude Code
http://localhost:<PORT>/callback(例:http://localhost:8080/callback)Claude.ai(Web)
https://claude.ai/api/mcp/auth_callbackGemini CLI
http://localhost:7777/oauth/callbackLibreChat
http://localhost:3080/api/mcp/<server-identifier>/oauth/callback
重要:
MCP_SCOPESのスコープは、OAuthアプリに付与されたスコープと一致している必要があります。不一致があると認可エラーが発生します。
アプリを保存し、クライアントIDとクライアントシークレットをコピーします
デフォルトスコープのカスタマイズ
デフォルトでは、PipesHubは/.well-known/oauth-protected-resource/mcpディスカバリーエンドポイントでいくつかのデフォルトスコープを公開します。公開するスコープは、PipesHubインスタンスでMCP_SCOPES環境変数を設定することでカスタマイズできます。これは、公開されているすべてのスコープを自動的に要求するClaude Codeなどのクライアントに役立ちます。
プレースホルダー
以下のすべての設定で、これらを置き換えてください:
プレースホルダー | 説明 | 例 |
| PipesHubインスタンスのURL |
|
| OAuthアプリのクライアントID |
|
| OAuthアプリのクライアントシークレット |
|
リモートMCPエンドポイントのURLは次のとおりです:PIPESHUB_INSTANCE_URL/mcp
リモートMCPのセットアップ
Cursorは、mcp.jsonのauthオブジェクトを介してリモートMCPサーバーの静的OAuthをサポートしています。
設定
Cursor設定 > ツールとインテグレーション > 新しいMCPサーバーを開くか、プロジェクトの.cursor/mcp.jsonを編集します:
{
"mcpServers": {
"pipeshub": {
"url": "PIPESHUB_INSTANCE_URL/mcp",
"auth": {
"CLIENT_ID": "YOUR_CLIENT_ID",
"CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"scopes": [
"org:read", "org:write", "org:admin",
"user:read", "user:write", "user:invite", "user:delete",
"usergroup:read", "usergroup:write",
"team:read", "team:write",
"kb:read", "kb:write", "kb:delete", "kb:upload",
"semantic:read", "semantic:write", "semantic:delete",
"conversation:read", "conversation:write", "conversation:chat",
"agent:read", "agent:write", "agent:execute",
"connector:read", "connector:write", "connector:sync", "connector:delete",
"config:read", "config:write",
"document:read", "document:write", "document:delete",
"crawl:read", "crawl:write", "crawl:delete"
]
}
}
}
}Cursorは、PipesHubの/.well-known/oauth-protected-resource/mcpメタデータを介して認可エンドポイントとトークンエンドポイントを自動検出します。
注:
scopesフィールドを省略すると、Cursorは/.well-known/oauth-protected-resource/mcpを取得し、そこにリストされているすべてのscopes_supportedを要求します。アクセスを制限するには、必要なスコープのみを明示的にリストしてください。サーバー側で公開するスコープを制御することもできます。デフォルトスコープのカスタマイズを参照してください。
環境変数の使用
Cursorの${env:VAR}補間を使用して、設定ファイルからシークレットを除外します:
{
"mcpServers": {
"pipeshub": {
"url": "${env:PIPESHUB_INSTANCE_URL}/mcp",
"auth": {
"CLIENT_ID": "${env:PIPESHUB_CLIENT_ID}",
"CLIENT_SECRET": "${env:PIPESHUB_CLIENT_SECRET}",
"scopes": [
"kb:read", "kb:write",
"semantic:read", "semantic:write",
"conversation:read", "conversation:write", "conversation:chat",
"agent:read", "agent:write", "agent:execute",
"connector:read", "connector:write",
"config:read", "user:read"
]
}
}
}
}リダイレクトURI
Cursorは、すべてのMCPサーバーに対して固定のリダイレクトURIを使用します:
cursor://anysphere.cursor-mcp/oauth/callbackPipesHubでOAuthアプリを作成する際に、これを許可されたリダイレクトURIとして登録してください。
OAuthログインのトラブルシューティング
Cursorの内部ブラウザがOAuthログインページを読み込めない場合は、内部ブラウザから認可URLをコピーして通常のブラウザに貼り付け、ログインフローを完了してください。
Claude Codeは、--client-id、--client-secret、--callback-portを介して、静的OAuth認証情報を使用したリモートHTTP MCPサーバーをサポートしています。
PipesHubは/.well-known/oauth-protected-resource/mcpでディスカバリーを公開しているため、Claude Codeは認可エンドポイントとトークンエンドポイントを自動検出します。
重要: Claude Codeは特定のスコープの設定をサポートしていません。
/.well-known/oauth-protected-resource/mcpを取得し、scopes_supportedリストを読み取り、すべてを要求します。PipesHubのOAuthアプリは、ディスカバリーエンドポイントにリストされているすべてのスコープにアクセスできる必要があります。そうしないと、認可リクエストは失敗します。公開するスコープを制限するには、デフォルトスコープのカスタマイズを参照してください。
CLIで追加
claude mcp add --transport http \
--client-id YOUR_CLIENT_ID \
--client-secret \
--callback-port 8080 \
pipeshub PIPESHUB_INSTANCE_URL/mcp
--client-secretを値なしで指定すると、マスクされた入力が求められます。プロンプトをスキップするには、MCP_CLIENT_SECRET環境変数を設定します:MCP_CLIENT_SECRET=YOUR_CLIENT_SECRET claude mcp add --transport http \ --client-id YOUR_CLIENT_ID \ --client-secret \ --callback-port 8080 \ pipeshub PIPESHUB_INSTANCE_URL/mcp
すべてのプロジェクトで使用できるようにするには:
claude mcp add --transport http --scope user \
--client-id YOUR_CLIENT_ID \
--client-secret \
--callback-port 8080 \
pipeshub PIPESHUB_INSTANCE_URL/mcpJSONで追加
claude mcp add-json pipeshub '{
"type": "http",
"url": "PIPESHUB_INSTANCE_URL/mcp",
"oauth": {
"clientId": "YOUR_CLIENT_ID",
"callbackPort": 8080
}
}' --client-secretプロジェクトスコープ(.mcp.json)
プロジェクトのルートに.mcp.jsonファイルを作成します。これはバージョン管理にコミットできます(シークレットは環境変数で外部に保持されます):
{
"mcpServers": {
"pipeshub": {
"type": "http",
"url": "${PIPESHUB_INSTANCE_URL}/mcp",
"oauth": {
"clientId": "${PIPESHUB_CLIENT_ID}",
"callbackPort": 8080
}
}
}
}Claude Codeを起動する前に環境変数を設定します:
export PIPESHUB_INSTANCE_URL="https://app.pipeshub.com"
export PIPESHUB_CLIENT_ID="your-client-id"注: クライアントシークレットは設定ファイルではなく、システムのキーチェーンに保存されます。
/mcpで初めて認証する際に入力を求められます。
認証
サーバーを追加した後、Claude Code内で/mcpを実行し、ブラウザのログインフローに従います。トークンは安全に保存され、自動的に更新されます。
確認
claude mcp list
claude mcp get pipeshubGemini CLIは、dynamic_discovery(デフォルト)を介してOAuthを使用したリモートMCPサーバーをサポートしています。これは、PipesHubの/.well-known/oauth-protected-resource/mcpから認可エンドポイントとトークンエンドポイントを自動検出します。
オプションA:設定ファイル
~/.gemini/settings.jsonを編集します:
{
"mcpServers": {
"pipeshub": {
"url": "PIPESHUB_INSTANCE_URL/mcp",
"oauth": {
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET",
"scopes": [
"org:read", "org:write", "org:admin",
"user:read", "user:write", "user:invite", "user:delete",
"usergroup:read", "usergroup:write",
"team:read", "team:write",
"kb:read", "kb:write", "kb:delete", "kb:upload",
"semantic:read", "semantic:write", "semantic:delete",
"conversation:read", "conversation:write", "conversation:chat",
"agent:read", "agent:write", "agent:execute",
"connector:read", "connector:write", "connector:sync", "connector:delete",
"config:read", "config:write",
"document:read", "document:write", "document:delete",
"crawl:read", "crawl:write", "crawl:delete"
]
}
}
}
}注:
scopesリストを、OAuthアプリに付与されたスコープに合わせて調整してください。ツールのサブセットのみが必要な場合は、それに応じてスコープを制限できます。
オプションB:CLIコマンド
gemini mcp add --transport http pipeshub PIPESHUB_INSTANCE_URL/mcp次に、~/.gemini/settings.jsonを編集して、上記のようにoauthブロックを追加します。
認証
Gemini CLI内で、/mcp authコマンドを使用します:
# List servers and their auth status
/mcp auth
# Authenticate with PipesHub (opens browser for login)
/mcp auth pipeshub
# Re-authenticate if tokens expire
/mcp auth pipeshub初回接続時に、Geminiは401レスポンスを自動的に検出し、OAuthエンドポイントを発見して、ログイン用のブラウザを開きます。トークンは~/.gemini/mcp-oauth-tokens.jsonに安全に保存され、自動的に更新されます。
サーバーの管理
# List all configured servers
gemini mcp list
# Remove the server
gemini mcp remove pipeshub
# Temporarily disable/enable
gemini mcp disable pipeshub
gemini mcp enable pipeshubOAuth設定プロパティ
プロパティ | 必須 | 説明 |
| はい | PipesHubのOAuth 2.0クライアントID |
| いいえ | OAuth 2.0クライアントシークレット(機密クライアント用) |
| いいえ | 要求するOAuthスコープ |
| いいえ | 認可エンドポイントの上書き(デフォルトでは自動検出) |
| いいえ | トークンエンドポイントの上書き(デフォルトでは自動検出) |
| いいえ | リダイレクトURIの上書き(デフォルトは |
注: OAuthにはローカルブラウザが必要です。ヘッドレス環境、X11転送のないリモートSSH、ブラウザアクセスのないコンテナでは機能しません。
Codex CLI(OpenAI Codex)は、Streamable HTTPを介してリモートMCPサーバーに接続します。~/.codex/config.toml(またはプロジェクトルートの.codex/config.tomlでプロジェクト単位にスコープ)の[mcp_servers.<name>]テーブルで設定します。CodexのHTTPトランスポートは、環境変数から読み取られるベアラートークンで認証するため、PipesHubのJWTベアラートークンを渡します。
[mcp_servers.pipeshub]
url = "PIPESHUB_INSTANCE_URL/mcp"
bearer_token_env_var = "PIPESHUB_BEARER_TOKEN"bearer_token_env_varは、トークンを保持する環境変数の名前です。Codexを起動する前にエクスポートします:
export PIPESHUB_BEARER_TOKEN="YOUR_BEARER_TOKEN"トークンは
Bearerキーワードなしの生のJWTです。
または、CLIで追加します:
codex mcp add pipeshub \
--url PIPESHUB_INSTANCE_URL/mcp \
--bearer-token-env-var PIPESHUB_BEARER_TOKEN
--bearer-token-env-varは、トークン値そのものではなく、トークンを保持する環境変数の名前を受け取ります。
確認
# List configured MCP servers
codex mcp list
# Inside the Codex TUI, view server status and available tools
/mcpClaude.aiは、リモートMCPサーバーを介したカスタムコネクタをサポートしています。これにより、ローカル設定なしでClaude.aiのWebインターフェースでPipesHubツールを直接使用できます。
注: この機能は現在ベータ版です。無料プランのユーザーはカスタムコネクタを1つに制限されています。


個人ユーザー向け(Pro / Maxプラン)
claude.aiにアクセスし、設定 > コネクタに移動します
コネクタセクションの下部にあるカスタムコネクタを追加をクリックします
MCPサーバーのURLを入力します:
PIPESHUB_INSTANCE_URL/mcp詳細設定をクリックし、OAuth認証情報を入力します:
OAuthクライアントID:
YOUR_CLIENT_IDOAuthクライアントシークレット:
YOUR_CLIENT_SECRET
追加をクリックします
PipesHubのログインページにリダイレクトされ、認証と権限の付与を行います
認証後、コネクタがアクティブになり、PipesHubツールがClaude.aiの会話で利用できるようになります
チーム / エンタープライズプラン向け
組織のオーナーが最初にコネクタを追加する必要があります:
組織設定 > コネクタに移動します
カスタムコネクタを追加をクリックします
MCPサーバーのURLを入力します:
PIPESHUB_INSTANCE_URL/mcp詳細設定をクリックし、OAuthクライアントIDとクライアントシークレットを入力します
追加をクリックします
チームメンバーはその後接続できます:
設定 > コネクタに移動します
PipesHubコネクタ(「カスタム」ラベル付き)を見つけます
接続をクリックして、PipesHubのOAuthログインで認証します
リダイレクトURI
Claude.aiはOAuthに次のリダイレクトURIを使用します:
https://claude.ai/api/mcp/auth_callbackこれをPipesHubのOAuthアプリで許可されたリダイレクトURIとして登録してください。
セキュリティに関する注意事項
信頼できるMCPサーバーにのみ接続してください
OAuth認証フロー中に要求される権限を確認してください
Claude.aiは付与されたOAuthトークンを使用してあなたの代わりにPipesHubとやり取りします。パスワードが共有されることはありません
LibreChatは、カスタムコネクタUIを介してOAuth認証を使用したリモートMCPサーバーをサポートしています。これにより、LibreChatインスタンスで利用可能な任意のモデルにPipesHubツールを接続できます。

設定
LibreChatインスタンスにログインします
MCP Servers設定パネルに移動します
Addをクリックして新しいカスタムMCPコネクタを作成します
コネクタの詳細を入力します:
Name:
Pipeshub(または任意の名前)MCP Server URL:
PIPESHUB_INSTANCE_URL/mcpTransport:Streamable HTTPSを選択
Authentication:OAuthを選択
OAuth認証情報を入力します:
Client ID:
YOUR_CLIENT_IDClient Secret:
YOUR_CLIENT_SECRETAuthorization URL:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/authorizeToken URL:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/tokenScope:
openid email(または必要に応じて追加のスコープ)
I trust this applicationにチェックを入れます
Addをクリックしてコネクタを保存します
追加後、LibreChatはコネクタ設定パネル(コピーボタンの横)にRedirect URIを生成して表示します。形式は次のとおりです:
http://localhost:3080/api/mcp/<server-identifier>/oauth/callbackRedirect URIをコピーし、PipesHub OAuthアプリの許可されたリダイレクトURIとして登録します(ステップ1を参照)
LibreChatのコネクタに戻り、UpdateをクリックしてOAuthフローを開始します — PipesHubのログインページにリダイレクトされ、認証と権限の付与を行います
Redirect URI
LibreChatはコネクタ作成後にリダイレクトURIを生成します。URIの形式は次のとおりです:
http://localhost:3080/api/mcp/<server-identifier>/oauth/callback<server-identifier>はLibreChatが割り当てる一意の識別子です(コネクタ設定の上部に「Unique Server Identifier」として表示されます)。このURIをコピーし、認証前にPipesHub OAuthアプリの許可されたリダイレクトURIに追加する必要があります。
注: LibreChatインスタンスが別のホストやポートで実行されている場合、URIはそれを反映します(例:
https://chat.example.com/api/mcp/pipeshub/oauth/callback)。
Scopes
LibreChatでは、ScopeフィールドでOAuthスコープを指定できます。スペース区切りのリストを使用します:
openid emailPipesHub固有のスコープを要求するには、スコープフィールドに追加します:
openid email org:read kb:read kb:write semantic:read conversation:read conversation:write conversation:chat agent:read agent:execute注: 要求するスコープは、PipesHubでOAuthアプリに付与されたスコープと一致している必要があります。詳細はデフォルトスコープのカスタマイズを参照してください。
ローカルMCPサーバー(Stdio)
PipesHubのリモートMCPエンドポイントに接続する代わりに、@pipeshub-ai/mcp npmパッケージを使用してMCPサーバーをローカルのstdioプロセスとして実行できます。これは、ローカルセットアップを好む場合や、リモートMCPエンドポイントへの直接HTTP接続が現実的でない環境で作業する必要がある場合に便利です。
前提条件
Node.js 18以上がインストールされていること
PipesHubインスタンスのURL
認証情報:Bearerトークン(JWT)またはOAuth Client ID + Secret
プレースホルダー
以下のすべての設定で、これらを置き換えてください:
プレースホルダー | 説明 | 例 |
| PipesHubインスタンスのURL |
|
| 認証用のJWT Bearerトークン |
|
| OAuthアプリのクライアントID |
|
| OAuthアプリのクライアントシークレット |
|
Claude Desktopの設定(claude_desktop_config.json)で構成します:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}OAuth認証情報を使用する場合:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--client-id",
"YOUR_CLIENT_ID",
"--client-secret",
"YOUR_CLIENT_SECRET",
"--token-url",
"/api/v1/oauth2/token"
]
}
}
}Cursor Settings > Tools and Integrations > New MCP Serverを開くか、プロジェクトの.cursor/mcp.jsonを編集します:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}OAuth認証情報を使用する場合:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--client-id",
"YOUR_CLIENT_ID",
"--client-secret",
"YOUR_CLIENT_SECRET",
"--token-url",
"/api/v1/oauth2/token"
]
}
}
}claude mcp add pipeshub -- npx -y @pipeshub-ai/mcp start \
--server-url PIPESHUB_INSTANCE_URL \
--bearer-auth YOUR_BEARER_TOKENOAuth認証情報を使用する場合:
claude mcp add pipeshub -- npx -y @pipeshub-ai/mcp start \
--server-url PIPESHUB_INSTANCE_URL \
--client-id YOUR_CLIENT_ID \
--client-secret YOUR_CLIENT_SECRET \
--token-url /api/v1/oauth2/tokengemini mcp add pipeshub -- npx -y @pipeshub-ai/mcp start \
--server-url PIPESHUB_INSTANCE_URL \
--bearer-auth YOUR_BEARER_TOKENOAuth認証情報を使用する場合:
gemini mcp add pipeshub -- npx -y @pipeshub-ai/mcp start \
--server-url PIPESHUB_INSTANCE_URL \
--client-id YOUR_CLIENT_ID \
--client-secret YOUR_CLIENT_SECRET \
--token-url /api/v1/oauth2/tokenMCPサーバーをローカルのstdioプロセスとして実行し、OAuthアプリのClient IDとSecret(client_credentialsグラント)で認証します。~/.codex/config.toml(またはプロジェクトルートの.codex/config.toml)を編集します:
[mcp_servers.pipeshub]
command = "npx"
args = [
"-y",
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL/api/v1",
"--client-id",
"YOUR_CLIENT_ID",
"--client-secret",
"YOUR_CLIENT_SECRET",
"--token-url",
"/api/v1/oauth2/token",
]注意:
--server-urlには/api/v1を含める必要があります。--token-url /api/v1/oauth2/tokenが必要です。
または、代わりにJWT Bearerトークンで認証します:
[mcp_servers.pipeshub]
command = "npx"
args = [
"-y",
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL/api/v1",
"--bearer-auth",
"YOUR_BEARER_TOKEN",
]コマンドパレット > MCP: Open User Configurationを開き、次を追加します:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}Windsurf Settings > Cascade > Manage MCPs > View raw configを開き、次を追加します:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}npmパッケージの代わりにクローンしたリポジトリからローカルMCPサーバーを実行する場合:
git clone https://github.com/pipeshub-ai/pipeshub-ai.git
cd pipeshub-ai
npm install
npm run build
node ./bin/mcp-server.js start --server-url PIPESHUB_INSTANCE_URL --bearer-auth YOUR_BEARER_TOKENMCPクライアント設定では、npx @pipeshub-ai/mcpをnode ./bin/mcp-server.jsに置き換えます:
{
"mcpServers": {
"pipeshub": {
"command": "node",
"args": [
"./bin/mcp-server.js",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}MCP Inspectorでデバッグする場合:
npx @modelcontextprotocol/inspector node ./bin/mcp-server.js start --server-url PIPESHUB_INSTANCE_URL --bearer-auth YOUR_BEARER_TOKENCLIヘルプ
サーバー引数の完全なリスト:
npx @pipeshub-ai/mcp --help動作の仕組み
アーキテクチャ
AI Client (Cursor / Claude Code / Gemini CLI / Codex CLI / Claude.ai / LibreChat)
│
│ HTTP POST (JSON-RPC)
│ Authorization: Bearer <token>
▼
PIPESHUB_INSTANCE_URL/mcp
│
│ StreamableHTTP Transport
│ (stateless, per-request MCP server)
▼
PipesHub API (curated tool set — see TOOLS.md)OAuth保護リソースのディスカバリー
PipesHubは、次の場所でOAuth保護リソースのディスカバリーを公開しています:
PIPESHUB_INSTANCE_URL/.well-known/oauth-protected-resource/mcpこれにより、すべてのOAuthエンドポイントが自動的に返されます:
認可:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/authorizeトークン:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/token失効:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/revokeJWKS:
PIPESHUB_INSTANCE_URL/.well-known/jwks.json
トラブルシューティング
「Incompatible auth server: does not support dynamic client registration」
これは、クライアントが事前設定された認証情報を使用する代わりに動的登録を試みていることを意味します。--client-idと--client-secret(Claude Code)またはauthオブジェクト(Cursor)を正しく渡したことを確認してください。
認証失敗 / リダイレクトエラー
OAuthアプリのRedirect URIがクライアントが使用するものと完全に一致していることを確認してください:
Cursor:
cursor://anysphere.cursor-mcp/oauth/callbackClaude Code:
http://localhost:<callbackPort>/callbackClaude.ai:
https://claude.ai/api/mcp/auth_callbackGemini CLI:
http://localhost:7777/oauth/callbackLibreChat:
http://localhost:3080/api/mcp/<server-identifier>/oauth/callback
OAuthアプリがPipesHubでアクティブ(停止されていない)であることを確認してください
MCPエンドポイントに到達できない
エンドポイントにアクセスできることを確認します:
curl -X POST PIPESHUB_INSTANCE_URL/mcp(接続エラーではなく401が返されるはずです)PipesHubインスタンスでMCPが有効になっていることを確認します
MCP Inspectorでのデバッグ
npx @modelcontextprotocol/inspector次に、Bearerトークンを使用してPIPESHUB_INSTANCE_URL/mcpに接続し、エンドポイントを直接テストします。
FAQ
PipesHubインスタンスの
MCP_SCOPES環境変数を更新して、ディスカバリーエンドポイント経由で公開する新しいスコープを含めます。PipesHubでOAuthアプリのスコープを更新します:Settings > Developer Settings > OAuth Appsに移動し、OAuthアプリを選択して、必要に応じてスコープを追加または削除します。
クライアントを再認証します — 既存のトークンには古いスコープが含まれているため、更新されたスコープで新しいトークンを取得するには再認証が必要です。例:
Cursor:MCPサーバーを削除して再追加するか、キャッシュされたOAuthトークンをクリアして再接続します。
Claude Code:
/mcpを実行し、ブラウザのログインフローを再度完了します。Gemini CLI:
/mcp auth pipeshubを実行して再認証します。Codex CLI:
PIPESHUB_BEARER_TOKENを新しいトークンで更新し、Codexを再起動します。Claude.ai:Settings > Connectorsでコネクタを切断して再接続します。
Available Tools
7 toolspipeshub_agentsARead-onlyIdempotent
List the PipesHub agents configured for this org, each with its capabilities.
Agents are specialized assistants (custom system prompt, tools, knowledge
scope). To converse with one, take its agentId and pass it to
pipeshub_chat's agentId argument.
Each agent is returned as:
{ agentId, name, description, systemPrompt, startMessage, tags, webSearch, isActive, toolsets, knowledge }.
toolsets— what the agent can DO: each{ name, tools }wherenameis the connector (e.g.jira,gmail) andtoolsare the runnable tool ids (e.g.jira.create_issue,gmail.send_email).knowledge— what the agent can READ: each{ name, type }(e.g.Confluence-2/Confluence).
Route on toolsets/knowledge, not the name — names and descriptions
are often generic or misleading. Match the request to the agent whose tools can
actually perform it (e.g. "create a Jira ticket" → the agent whose toolset is
jira and whose tools include jira.create_issue). If NO agent has a tool
for the requested action, say so — don't force an unrelated agent.
The list may be empty (no agents configured). For plain Q&A when no
specific agent is needed, use pipeshub_chat WITHOUT agentId and pick a
chatMode: internal_search (org's indexed knowledge) or web_search
(live web). Use agentId everywhere an agent is referenced.
Inputs: search.
pipeshub_chatA
Ask a question, get an answer grounded in the org's indexed data with citations. It reads a few retrieved passages — never a whole document, never a complete list.
Three questions this tool gets WRONG. Check them first:
Structure — "what's under this epic?", "which pages are in this space?", "what links to this ticket?", "what's in this folder?" →
pipeshub_get_record_contentmode:"navigate". Ranking cannot see how records relate.Exhaustive — "how many X?", "list ALL the Y", "every Z" →
mode:"navigate", which reports the group's real total. This tool undercounts and will not say so.One named document — summarize it, extract from it, what does it say about X →
pipeshub_searchfor therecordId, thenmode:"content".
Everything else about the org's knowledge belongs here: policies, processes, decisions, history, "what do we know about X", and any question spanning several documents.
Internal search (default, chatMode: "internal_search"): the user's
documents, files, knowledge base, company policies — anything in their
PipesHub-indexed sources (Drive, Box, Confluence, Slack, Gmail, Jira, the
org's KB, ...).
Web search (chatMode: "web_search"): current events or public
information unlikely to be in the org's knowledge base.
Both are plain-chat modes. Agent chat — pass an agentId from
pipeshub_agents — runs against that agent's own prompt, tools and knowledge;
quick is its only mode, requires the agentId, and is sent automatically.
"What's our policy on Y?" →
pipeshub_chat(internal_search)"What's in the news about Z?" →
pipeshub_chat(web_search)"Find / locate the file named X" →
pipeshub_search(thenpipeshub_download_recordif the user wants the bytes).
Conversation lifecycle — one tool, both start and continue:
First turn: omit
conversationId. The server creates a new conversation; captureconversationIdfrom the response.Follow-up turn: pass the
conversationIdfrom the previous response. Server-side context is preserved — do NOT replay earlier messages, andfiltersis ignored on follow-ups (set once at creation).
Only re-omit conversationId (start a fresh conversation) when the
user explicitly asks to start over / clear context.
The response contains the AI's answer plus citations. To download a
cited document, take citations[*].recordId and call
pipeshub_download_record.
Inputs: query (required), agentId, filters, chatMode, +4 more.
pipeshub_directoryARead-onlyIdempotent
Look up people, groups, and teams in PipesHub. Five actions — pick
action. Not for documents or files: that is pipeshub_search.
whoami— the caller's id, email, full name. Use beforeget_useron yourself. Errors if the credential is expired or revoked.list_users— page org users;searchmatches name or email.get_user— fullUserfor oneuserId.list_groups— org groups withuserCount;searchmatches name.list_my_teams— teams the caller is on, withcanEdit/canDelete/canManageMembers;searchmatches name.
Omit page/limit for the first page (page 1). No match is an
empty users/groups/teams array, not an error.
pagination.hasNextPage (teams: hasNext) says whether to request
the next page.
Inputs: action (required), page, limit, search, +1 more.
pipeshub_download_recordARead-onlyIdempotent
Download the file as stored for one record — not PipesHub's parsed content, metadata header, or summary.
Use this when the user wants the file itself (download, attach, open).
Get recordId from a chat citation or a pipeshub_search hit.
Do not use this to read, summarize, or answer "what does this doc
say?" regardless of format. That is pipeshub_get_record_content
mode:"content". Text formats come back inline; images, audio, and
binary as base64.
convertTo accepts only application/pdf; anything else is ignored.
Inputs: recordId (required), convertTo.
pipeshub_get_record_contentARead-onlyIdempotent
Three operations on the org's records. Pick by what you hold:
mode:"lookup" — a URL, issue key (PA-1787), or external ID
→ its recordId plus the record's metadata
mode:"navigate" — a question about structure: what is under X,
what links to Y → browses the hierarchy
mode:"content" — a recordId, and you need the document's COMPLETE text
mode:"content" (default) — the only way to see a document's complete
text. Use it whenever missing part of the document could make the answer
wrong: summarize, extract or list ALL of something, check whether or where
a doc mentions X, review, or compare named docs. pipeshub_chat cannot do
these — it never sees a whole document.
Judge by the user's INTENT, not their keywords: "what's this doc about?",
"walk me through the report", "anything in here about Y?" are all
full-content tasks. Get the recordId from a pipeshub_search top hit, a
chat citation, or mode:"lookup".
Returns one content string: a metadata header (title, source, key fields,
pre-generated summary) then the full parsed text. A record with no
extractable content returns the literal No record found. Use
pipeshub_download_record only for the original file bytes.
mode:"navigate" — browse the hierarchy: RecordGroup (project /
space / drive / folder) → Record (epic / story / page / file) → children,
with breadcrumbs, related links and record IDs.
Use it when the question depends on structure rather than wording: what is under this epic, which pages sit in this space, what is linked to this ticket, what is in this folder — and every "how many" / "all of" / "every" question. Search ranks by content; only this shows how records relate, and only this gives a count you can trust.
Omit nodeId for a flat listing of everything reachable, most recently
updated first — the usual starting point. A URL, an issue key, or a
pipeshub_sources id also works and resolves automatically.
Pass depth:2 or depth:3 to see several levels in ONE call — an epic's
stories AND their subtasks, a space's pages AND their children — instead of
one call per level. Use it whenever the question needs an overview of a
hierarchy rather than a single node.
Opening a record also prints that record's own metadata — for a ticket,
status, assignee, priority and dates — so a question about one record is
often answered by this call alone. It returns no document text; for that,
re-call with mode:"content".
Returns Path breadcrumbs, the current node's metadata, a children listing
carrying record_id= or node_id= per row plus the group's total
(Children 1-50 of 61), Related cross-references, and a Next: line.
One page is usually every child, so only pass page:2 when that Next:
line says more exist.
mode:"lookup" — turn an external reference into a recordId, the first
step whenever the question names one. Returns that record's metadata (for a
ticket: status, assignee, priority, dates) plus its recordId, which
mode:"navigate" takes to list what is under it and mode:"content" takes
to read it.
Handles Jira keys and URLs, Confluence, Drive, Slack permalinks, Linear, Notion, ServiceNow sys_id, SharePoint, Gmail/Outlook, and any connector whose records index a web URL. Resolution searches ALL connectors you can access, regardless of any source filter you used elsewhere.
A miss is a 200 with empty matches and the input echoed in
not_found_identifiers — that may mean no-access, not non-existence. Use
mode:"navigate" to confirm the record exists before telling the user it
does not. If ambiguous is true, pick from matches rather than taking
the first.
Navigate and lookup return a rendered text view whose closing Next: line
names the exact follow-up call — follow it. When presenting a record, link
it using the Web URL from its metadata header (when present).
Inputs: mode, page, depth, limit, +9 more.
pipeshub_searchAIdempotent
Vector / semantic search across the org's indexed documents.
Use this when the user wants to LOCATE a document — by name, topic,
or a phrase to grep for — and to resolve it to a recordId. For
open-ended questions across many documents, use pipeshub_chat
instead, which does the retrieval internally and grounds the answer in
citations.
Typical uses:
Resolve a doc name / topic into a
recordIdforpipeshub_get_record_content— step 1 of any full-document task (summarize, extract, review, "what does the doc say?").Resolve a filename / phrase into a
recordIdforpipeshub_download_record.Show the user a ranked list of matching files when they ask "find / search for X".
Not for structural questions — what is under this epic, which pages are
in this space, what links to this ticket. Ranking by content cannot show
how records relate; use pipeshub_get_record_content mode:"navigate".
A ranked sample, never a complete list. Hits are the top-scoring blocks from the best-matching records — not all blocks of any record, and not every record that matches. Never count them to answer "how many" / "all" / "every"; navigate the record group instead, which reports its real total.
By default it searches everything. To search only some sources, pass
connector ids in apps and collection ids in kb.
Each hit is one matching passage, best match first:
{ recordId, recordName, score, snippet, mimeType, webUrl, ... }.
One record can appear in several hits. Link a record by its webUrl.
Inputs: query (required), kb, apps, limit.
pipeshub_sourcesARead-onlyIdempotent
Discover available chat sources and AI models in one call.
Returns up to three sections:
sources— connectors (kind: "connector") and collections (kind: "knowledgeBase"). Forpipeshub_searchandpipeshub_chat, put a connectoridinappsand a collectionidinkb.sourcesTruncated: truemeans the list stopped at 1,000 sources.llmModels— chat / generation models. Each item'smodelKeyis the value to pass onpipeshub_chatasmodelKey. PickisDefault: trueunless the user asks for a specific model.embeddingModels— vector embedding models (only fetched when explicitly requested viainclude).
Call this once at the start of a session and cache the result — sources and models change infrequently.
Inputs: include.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct operation: search locates records, chat answers grounded questions, get_record_content reads full text/navigates/looks up, download_record fetches original bytes, and agents/directory/sources handle their own domains. The descriptions explicitly cross-reference and warn against misuse, so an agent can reliably select the right tool.
All tools share the pipeshub_ prefix, but the pattern after it is inconsistent: some are verb_noun (download_record, get_record_content), some are bare verbs (search, chat), and some are bare nouns (agents, directory, sources). This makes names individually readable but not predictably derivable.
Seven tools is a well-scoped size for a knowledge retrieval and chat server. Each tool covers a major capability without unnecessary fragmentation, and no tool feels redundant.
The surface covers the full read-side workflow: discover sources, search, chat with citations, resolve external references, read full content, navigate hierarchy, download files, and look up agents and people. There are no obvious gaps or dead ends for the server's apparent purpose.
Maintenance
Related MCP Connectors
Agent communication platform for agent to agent messaging via MCP. Messages, channels, skills.
Discover MCP servers and A2A agents; verify, message, post, follow, react, and receive webhooks.
Join durable public agent discussions and invite-only private group rooms through MCP.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and people to exchange direct messages, channels, push-to-talk, mail, SMS, searchable memory, and portable agent identities through a hosted MCP endpoint.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables chat, document search (RAG), and a declarative SQL tool builder over MCP so any client can use these capabilities.AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents that speak MCP to obtain identities, exchange direct messages and threaded replies, check inboxes, long-poll for new messages, and manage agent access across a shared hub.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and MCP clients to find active support conversations and inspect selected conversations through one PipMCP API key, with hosted schemas, policy decisions, and governed execution.MIT