PipesHub MCP Server
OfficialConexión de clientes MCP al servidor MCP de PipesHub
Esta guía cubre cómo conectar el servidor MCP remoto de PipesHub a Cursor, Claude Code, Gemini CLI, Codex CLI, Claude.ai (Web) y LibreChat usando credenciales OAuth estáticas o tokens de portador.
PipesHub expone un endpoint MCP remoto sobre Streamable HTTP en /mcp. Los clientes MCP se conectan directamente a este endpoint — sin necesidad de paquetes npm locales ni procesos stdio.
¿Agente de codificación? Comienza en Para agentes de codificación. Instala la habilidad en el repositorio del usuario con
npx skills add pipeshub-ai/mcp-server(verskills/pipeshub). Colaboradores que trabajan en este repositorio: lee AGENTS.md.¿Buscas la referencia de herramientas? Ver TOOLS.md para descripciones, argumentos y una guía de decisión para cada herramienta que expone el servidor MCP (
pipeshub_chat,pipeshub_search,pipeshub_get_record_content,pipeshub_download_record,pipeshub_directory,pipeshub_sources,pipeshub_agents).¿Usas QM? QM no puede adjuntar un endpoint MCP de terceros — es un servidor MCP para su propio harness, no un cliente. Sigue Usar PipesHub con QM. El paquete de capa de despliegue en
qm/da a los agentes un comandopipeshubdentro de su sandbox; este paquete envía ese comando como un segundo bin.
Requisitos previos
Una instancia de PipesHub en ejecución (autoalojada o en la nube)
Una aplicación OAuth creada en PipesHub (ver Paso 1)
Related MCP server: ai-assistant
Paso 1: Crear una aplicación OAuth en PipesHub
Inicia sesión en tu instancia de PipesHub como administrador
Navega a Configuración > Configuración de desarrollador > Aplicaciones OAuth
Haz clic en Crear aplicación OAuth
Completa los detalles de la aplicación:
Nombre: por ejemplo,
Integración MCPURIs de redirección: Añade todas las URIs de redirección para los clientes que planeas usar:
Cliente
URI de redirección
Cursor
cursor://anysphere.cursor-mcp/oauth/callbackClaude Code
http://localhost:<PORT>/callback(por ejemplo,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
Importante: Los ámbitos en
MCP_SCOPESdeben coincidir con los ámbitos otorgados a tu aplicación OAuth — una discrepancia resultará en un error de autorización.
Guarda la aplicación y copia el ID de cliente y el Secreto de cliente
Personalización de ámbitos predeterminados
Por defecto, PipesHub expone algunos ámbitos predeterminados en su endpoint de descubrimiento /.well-known/oauth-protected-resource/mcp. Puedes personalizar qué ámbitos se exponen configurando la variable de entorno MCP_SCOPES en tu instancia de PipesHub. Esto es útil para clientes como Claude Code que solicitan automáticamente todos los ámbitos expuestos.
Marcadores de posición
Reemplaza estos en todas las configuraciones a continuación:
Marcador de posición | Descripción | Ejemplo |
| URL de tu instancia de PipesHub |
|
| ID de cliente de la aplicación OAuth |
|
| Secreto de cliente de la aplicación OAuth |
|
La URL del endpoint MCP remoto es: PIPESHUB_INSTANCE_URL/mcp
Configuración MCP remota
Cursor admite OAuth estático para servidores MCP remotos mediante el objeto auth en mcp.json.
Configuración
Abre Configuración de Cursor > Herramientas e Integraciones > Nuevo servidor MCP, o edita el archivo .cursor/mcp.json de tu proyecto:
{
"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 descubrirá automáticamente los endpoints de autorización y token a través de los metadatos /.well-known/oauth-protected-resource/mcp de PipesHub.
Nota: Si se omite el campo
scopes, Cursor obtiene/.well-known/oauth-protected-resource/mcpy solicita todos losscopes_supportedlistados allí. Para limitar el acceso, lista explícitamente solo los ámbitos que necesitas. También puedes controlar qué ámbitos se exponen en el lado del servidor — ver Personalización de ámbitos predeterminados.
Uso de variables de entorno
Usa la interpolación ${env:VAR} de Cursor para mantener los secretos fuera de los archivos de configuración:
{
"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 de redirección
Cursor usa una URI de redirección fija para todos los servidores MCP:
cursor://anysphere.cursor-mcp/oauth/callbackRegistra esta como la URI de redirección permitida al crear la aplicación OAuth en PipesHub.
Solución de problemas de inicio de sesión OAuth
Si el navegador interno de Cursor no carga la página de inicio de sesión OAuth, copia la URL de autorización del navegador interno y pégala en tu navegador normal para completar el flujo de inicio de sesión.
Claude Code admite servidores MCP HTTP remotos con credenciales OAuth estáticas mediante --client-id, --client-secret y --callback-port.
PipesHub expone el descubrimiento en /.well-known/oauth-protected-resource/mcp, por lo que Claude Code descubre automáticamente los endpoints de autorización y token.
Importante: Claude Code no admite configurar ámbitos específicos. Obtiene
/.well-known/oauth-protected-resource/mcp, lee la listascopes_supportedy solicita todos ellos. Tu aplicación OAuth en PipesHub debe tener acceso a todos los ámbitos listados en el endpoint de descubrimiento, de lo contrario la solicitud de autorización fallará. Para limitar los ámbitos expuestos, ver Personalización de ámbitos predeterminados.
Añadir con CLI
claude mcp add --transport http \
--client-id YOUR_CLIENT_ID \
--client-secret \
--callback-port 8080 \
pipeshub PIPESHUB_INSTANCE_URL/mcp
--client-secretsin valor solicita entrada enmascarada. Para omitir la solicitud, configura la variable de entornoMCP_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
Para que esté disponible en todos los proyectos:
claude mcp add --transport http --scope user \
--client-id YOUR_CLIENT_ID \
--client-secret \
--callback-port 8080 \
pipeshub PIPESHUB_INSTANCE_URL/mcpAñadir con JSON
claude mcp add-json pipeshub '{
"type": "http",
"url": "PIPESHUB_INSTANCE_URL/mcp",
"oauth": {
"clientId": "YOUR_CLIENT_ID",
"callbackPort": 8080
}
}' --client-secretÁmbito de proyecto (.mcp.json)
Crea un archivo .mcp.json en la raíz de tu proyecto. Este puede ser confirmado en el control de versiones (los secretos se mantienen fuera mediante variables de entorno):
{
"mcpServers": {
"pipeshub": {
"type": "http",
"url": "${PIPESHUB_INSTANCE_URL}/mcp",
"oauth": {
"clientId": "${PIPESHUB_CLIENT_ID}",
"callbackPort": 8080
}
}
}
}Configura las variables de entorno antes de lanzar Claude Code:
export PIPESHUB_INSTANCE_URL="https://app.pipeshub.com"
export PIPESHUB_CLIENT_ID="your-client-id"Nota: El secreto de cliente se almacena en el llavero del sistema, no en archivos de configuración. Se te pedirá que lo ingreses cuando te autentiques por primera vez mediante
/mcp.
Autenticarse
Después de añadir el servidor, ejecuta /mcp dentro de Claude Code y sigue el flujo de inicio de sesión en el navegador. Los tokens se almacenan de forma segura y se renuevan automáticamente.
Verificar
claude mcp list
claude mcp get pipeshubGemini CLI admite servidores MCP remotos con OAuth mediante dynamic_discovery (el predeterminado), que descubre automáticamente los endpoints de autorización y token desde /.well-known/oauth-protected-resource/mcp de PipesHub.
Opción A: Archivo de configuración
Edita ~/.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"
]
}
}
}
}Nota: Ajusta la lista
scopespara que coincida con lo que se otorgó a tu aplicación OAuth. Si solo necesitas un subconjunto de herramientas, puedes limitar los ámbitos en consecuencia.
Opción B: Comando CLI
gemini mcp add --transport http pipeshub PIPESHUB_INSTANCE_URL/mcpLuego edita ~/.gemini/settings.json para añadir el bloque oauth como se muestra arriba.
Autenticarse
Dentro de Gemini CLI, usa los comandos /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 pipeshubEn la primera conexión, Gemini detectará automáticamente la respuesta 401, descubrirá los endpoints OAuth y abrirá un navegador para el inicio de sesión. Los tokens se almacenan de forma segura en ~/.gemini/mcp-oauth-tokens.json y se renuevan automáticamente.
Gestionar servidores
# List all configured servers
gemini mcp list
# Remove the server
gemini mcp remove pipeshub
# Temporarily disable/enable
gemini mcp disable pipeshub
gemini mcp enable pipeshubPropiedades de configuración OAuth
Propiedad | Requerida | Descripción |
| Sí | ID de cliente OAuth 2.0 de PipesHub |
| No | Secreto de cliente OAuth 2.0 (para clientes confidenciales) |
| No | Ámbitos OAuth a solicitar |
| No | Anular el endpoint de autorización (descubierto automáticamente por defecto) |
| No | Anular el endpoint de token (descubierto automáticamente por defecto) |
| No | Anular la URI de redirección (por defecto |
Nota: OAuth requiere un navegador local. No funcionará en entornos sin interfaz gráfica, SSH remoto sin reenvío X11, o contenedores sin acceso a navegador.
Codex CLI (OpenAI Codex) se conecta a servidores MCP remotos sobre Streamable HTTP, configurado con una tabla [mcp_servers.<name>] en ~/.codex/config.toml (o .codex/config.toml en la raíz de tu proyecto para limitarlo por proyecto). El transporte HTTP de Codex se autentica con un token de portador leído de una variable de entorno, así que pasa un token de portador JWT de PipesHub.
[mcp_servers.pipeshub]
url = "PIPESHUB_INSTANCE_URL/mcp"
bearer_token_env_var = "PIPESHUB_BEARER_TOKEN"bearer_token_env_var es el nombre de la variable de entorno que contiene el token — expórtala antes de lanzar Codex:
export PIPESHUB_BEARER_TOKEN="YOUR_BEARER_TOKEN"El token es el JWT crudo, sin la palabra clave
Bearer.
O añádelo con la CLI:
codex mcp add pipeshub \
--url PIPESHUB_INSTANCE_URL/mcp \
--bearer-token-env-var PIPESHUB_BEARER_TOKEN
--bearer-token-env-vartoma el nombre de la variable de entorno que contiene el token, no el valor del token en sí.
Verificar
# List configured MCP servers
codex mcp list
# Inside the Codex TUI, view server status and available tools
/mcpClaude.ai admite conectores personalizados mediante servidores MCP remotos. Esto te permite usar las herramientas de PipesHub directamente en la interfaz web de Claude.ai sin configuración local.
Nota: Esta función está actualmente en beta. Los usuarios del plan gratuito están limitados a un conector personalizado.


Para usuarios individuales (planes Pro / Max)
Ve a claude.ai y navega a Configuración > Conectores
Haz clic en Añadir conector personalizado en la parte inferior de la sección de Conectores
Ingresa la URL del servidor MCP:
PIPESHUB_INSTANCE_URL/mcpHaz clic en Configuración avanzada e ingresa tus credenciales OAuth:
ID de cliente OAuth:
YOUR_CLIENT_IDSecreto de cliente OAuth:
YOUR_CLIENT_SECRET
Haz clic en Añadir
Serás redirigido a la página de inicio de sesión de PipesHub para autenticarte y otorgar permisos
Después de autenticarte, el conector estará activo y las herramientas de PipesHub estarán disponibles en tus conversaciones de Claude.ai
Para planes de equipo / empresa
Los propietarios de la organización deben primero añadir el conector:
Navega a Configuración de la organización > Conectores
Haz clic en Añadir conector personalizado
Ingresa la URL del servidor MCP:
PIPESHUB_INSTANCE_URL/mcpHaz clic en Configuración avanzada e ingresa el ID de cliente OAuth y el Secreto de cliente
Haz clic en Añadir
Los miembros del equipo pueden entonces conectarse:
Ve a Configuración > Conectores
Encuentra el conector de PipesHub (marcado con una etiqueta "Personalizado")
Haz clic en Conectar para autenticarte mediante el inicio de sesión OAuth de PipesHub
URI de redirección
Claude.ai usa la siguiente URI de redirección para OAuth:
https://claude.ai/api/mcp/auth_callbackRegistra esta como una URI de redirección permitida en tu aplicación OAuth de PipesHub.
Notas de seguridad
Solo conéctate a servidores MCP de confianza
Revisa los permisos solicitados durante el flujo de autenticación OAuth
Claude.ai interactúa con PipesHub en tu nombre usando el token OAuth otorgado — tu contraseña nunca se comparte
LibreChat admite servidores MCP remotos con autenticación OAuth mediante su interfaz de conectores personalizados. Esto te permite conectar las herramientas de PipesHub a cualquier modelo disponible en tu instancia de LibreChat.

Configuración
Inicia sesión en tu instancia de LibreChat
Navega al panel de configuración de MCP Servers
Haz clic en Add para crear un nuevo conector MCP personalizado
Rellena los detalles del conector:
Name:
Pipeshub(o cualquier nombre que prefieras)MCP Server URL:
PIPESHUB_INSTANCE_URL/mcpTransport: Selecciona Streamable HTTPS
Authentication: Selecciona OAuth
Introduce tus credenciales 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(o ámbitos adicionales según sea necesario)
Marca I trust this application
Haz clic en Add para guardar el conector
Después de añadirlo, LibreChat generará un Redirect URI que se mostrará en el panel de configuración del conector (junto al botón de copiar). Sigue este formato:
http://localhost:3080/api/mcp/<server-identifier>/oauth/callbackCopia el Redirect URI y regístralo como URI de redirección permitida en tu aplicación OAuth de PipesHub (consulta Paso 1)
Vuelve al conector de LibreChat y haz clic en Update para iniciar el flujo OAuth: serás redirigido a la página de inicio de sesión de PipesHub para autenticarte y conceder permisos
Redirect URI
LibreChat genera el redirect URI después de que se cree el conector. El URI sigue este formato:
http://localhost:3080/api/mcp/<server-identifier>/oauth/callbackDonde <server-identifier> es el identificador único asignado por LibreChat (visible en la parte superior de la configuración del conector como "Unique Server Identifier"). Debes copiar este URI y añadirlo a los URI de redirección permitidos de tu aplicación OAuth de PipesHub antes de autenticarte.
Nota: Si tu instancia de LibreChat se ejecuta en un host o puerto diferente, el URI lo reflejará (por ejemplo,
https://chat.example.com/api/mcp/pipeshub/oauth/callback).
Scopes
LibreChat te permite especificar los scopes de OAuth en el campo Scope. Usa una lista separada por espacios:
openid emailPara solicitar scopes específicos de PipesHub, añádelos al campo de scope:
openid email org:read kb:read kb:write semantic:read conversation:read conversation:write conversation:chat agent:read agent:executeNota: Los scopes que solicites deben coincidir con los scopes concedidos a tu aplicación OAuth en PipesHub. Consulta Customizing Default Scopes para más detalles.
Servidor MCP Local (Stdio)
En lugar de conectarte al endpoint MCP remoto de PipesHub, puedes ejecutar el servidor MCP localmente como un proceso stdio usando el paquete npm @pipeshub-ai/mcp. Esto es útil cuando prefieres una configuración local o necesitas trabajar en entornos donde las conexiones HTTP directas al endpoint MCP remoto no son prácticas.
Requisitos previos
Node.js 18+ instalado
Una URL de instancia de PipesHub
Credenciales de autenticación: ya sea un Bearer token (JWT) o un OAuth Client ID + Secret
Marcadores de posición
Reemplaza estos valores en todas las configuraciones siguientes:
Placeholder | Descripción | Ejemplo |
| URL de tu instancia de PipesHub |
|
| Token Bearer JWT para autenticación |
|
| ID de cliente de la aplicación OAuth |
|
| Secreto de cliente de la aplicación OAuth |
|
Configúralo en la configuración de 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"
]
}
}
}Con credenciales 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"
]
}
}
}Abre Cursor Settings > Tools and Integrations > New MCP Server, o edita el archivo .cursor/mcp.json de tu proyecto:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}Con credenciales 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_TOKENCon credenciales OAuth:
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_TOKENCon credenciales OAuth:
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/tokenEjecuta el servidor MCP como un proceso stdio local, autenticado con el Client ID y Secret de una aplicación OAuth (la concesión client_credentials). Edita ~/.codex/config.toml (o .codex/config.toml en la raíz de tu proyecto):
[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",
]Notas:
--server-urldebe incluir/api/v1.--token-url /api/v1/oauth2/tokenes obligatorio.
O autentícate con un token Bearer JWT en su lugar:
[mcp_servers.pipeshub]
command = "npx"
args = [
"-y",
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL/api/v1",
"--bearer-auth",
"YOUR_BEARER_TOKEN",
]Abre Command Palette > MCP: Open User Configuration y luego añade:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}Abre Windsurf Settings > Cascade > Manage MCPs > View raw config y luego añade:
{
"mcpServers": {
"pipeshub": {
"command": "npx",
"args": [
"@pipeshub-ai/mcp",
"start",
"--server-url",
"PIPESHUB_INSTANCE_URL",
"--bearer-auth",
"YOUR_BEARER_TOKEN"
]
}
}
}Para ejecutar el servidor MCP local desde un repositorio clonado en lugar del paquete npm:
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_TOKENPara la configuración del cliente MCP, reemplaza npx @pipeshub-ai/mcp con 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"
]
}
}
}Para depurar con MCP Inspector:
npx @modelcontextprotocol/inspector node ./bin/mcp-server.js start --server-url PIPESHUB_INSTANCE_URL --bearer-auth YOUR_BEARER_TOKENAyuda de CLI
Para obtener una lista completa de los argumentos del servidor:
npx @pipeshub-ai/mcp --helpCómo Funciona
Arquitectura
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)Descubrimiento de Recursos Protegidos por OAuth
PipesHub expone el descubrimiento de recursos protegidos por OAuth en:
PIPESHUB_INSTANCE_URL/.well-known/oauth-protected-resource/mcpEsto devuelve automáticamente todos los endpoints OAuth:
Authorization:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/authorizeToken:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/tokenRevocation:
PIPESHUB_INSTANCE_URL/api/v1/oauth2/revokeJWKS:
PIPESHUB_INSTANCE_URL/.well-known/jwks.json
Solución de Problemas
"Incompatible auth server: does not support dynamic client registration"
Esto significa que el cliente está intentando un registro dinámico en lugar de usar tus credenciales preconfiguradas. Asegúrate de haber pasado --client-id y --client-secret (Claude Code) o el objeto auth (Cursor) correctamente.
La autenticación falla / error de redirección
Asegúrate de que el Redirect URI en tu aplicación OAuth coincida exactamente con el que usa el cliente:
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
Asegúrate de que la aplicación OAuth esté activa (no suspendida) en PipesHub
No se puede acceder al endpoint MCP
Verifica que el endpoint sea accesible:
curl -X POST PIPESHUB_INSTANCE_URL/mcp(debería devolver 401, no un error de conexión)Comprueba que tu instancia de PipesHub tenga MCP habilitado
Depuración con MCP Inspector
npx @modelcontextprotocol/inspectorLuego conéctate a PIPESHUB_INSTANCE_URL/mcp con un token Bearer para probar el endpoint directamente.
Preguntas Frecuentes
Actualiza la variable de entorno
MCP_SCOPESen tu instancia de PipesHub para incluir los nuevos scopes que quieras exponer a través del endpoint de descubrimiento.Actualiza los scopes de la aplicación OAuth en PipesHub: ve a Settings > Developer Settings > OAuth Apps, selecciona tu aplicación OAuth y añade o elimina scopes según sea necesario.
Vuelve a autenticar el cliente: los tokens existentes llevan los scopes antiguos, por lo que necesitas reautenticarte para obtener un token nuevo con los scopes actualizados. Por ejemplo:
Cursor: Elimina y vuelve a añadir el servidor MCP, o borra el token OAuth en caché y vuelve a conectarte.
Claude Code: Ejecuta
/mcpy completa el flujo de inicio de sesión en el navegador de nuevo.Gemini CLI: Ejecuta
/mcp auth pipeshubpara reautenticarte.Codex CLI: Actualiza
PIPESHUB_BEARER_TOKENcon un token nuevo y reinicia Codex.Claude.ai: Desconecta y vuelve a conectar el conector en 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