Saltar al contenido
Menú

Configura una conexión

Connect your AI in minutes.

Copia un ajuste, pega un prompt y tu IA trabajará con MatterSpace Duplex desde la siguiente solicitud. Añade hooks dondequiera que un paso deba comprobarse antes de ejecutarse.

.md

Empieza por tu clave.

Crea una clave en tu consola y guárdala en tu entorno. Todos los ajustes de abajo la leen de ahí, así que nunca acaba en un archivo que subas al repositorio.

Tu clave y tu ámbitomacOS y Linux. En Windows, define las mismas variables en tu entorno de usuario.
export DUPLEX_API_KEY="<your key>"
export DUPLEX_SCOPE="eng:platform/you"   # optional

On the hosted service, the address is https://api.duplex.matterspace.ai/mcp. In a dedicated environment or your own cloud, use the address your console shows.

Qué conexión usa cada IA.

Los clientes funcionan en macOS, Linux y Windows.

Tu IAConsultar reglas y métodosComprobar pasos seleccionadosSe configura con
Claude CodeMCPHooks de DuplexUn comando, o .mcp.json para el equipo
CodexMCPHooks de DuplexUn comando, o config.toml
CursorMCPHooks de Duplex.cursor/mcp.json
GitHub CopilotMCPHooks de Duplex en la CLI, o hooks del repositorio.vscode/mcp.json, or the CLI package
claude.ai, Claude Desktop, ChatGPTMCPNo solo con MCPUn conector: la dirección y un inicio de sesión
Cualquier MCP clientMCPNo solo con MCPLa dirección y tu clave
Tus propios agentesMCP, o la API y los SDKNo solo con MCPUna clave limitada a un espacio de trabajo

Claude Code.

Para ti, con un solo comando
claude mcp add --transport http duplex https://api.duplex.matterspace.ai/mcp --header "Authorization: Bearer ${DUPLEX_API_KEY}"
Para todo tu equipo: .mcp.json en la raíz del proyectoLa clave y el ámbito de cada persona se leen de su propio entorno.
{
  "mcpServers": {
    "duplex": {
      "type": "http",
      "url": "https://api.duplex.matterspace.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${DUPLEX_API_KEY}",
        "x-duplex-scope": "${DUPLEX_SCOPE:-}"
      }
    }
  }
}

Codex.

Con un solo comando
codex mcp add duplex --url https://api.duplex.matterspace.ai/mcp --bearer-token-env-var DUPLEX_API_KEY
O en config.toml
# ~/.codex/config.toml
[mcp_servers.duplex]
url = "https://api.duplex.matterspace.ai/mcp"
bearer_token_env_var = "DUPLEX_API_KEY"

Cursor.

.cursor/mcp.json in the project, or ~/.cursor/mcp.json for you
{
  "mcpServers": {
    "duplex": {
      "url": "https://api.duplex.matterspace.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${env:DUPLEX_API_KEY}"
      }
    }
  }
}

GitHub Copilot en VS Code.

.vscode/mcp.jsonVS Code te pide la clave una sola vez, como contraseña.
{
  "servers": {
    "duplex": {
      "type": "http",
      "url": "https://api.duplex.matterspace.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${input:duplex-api-key}"
      }
    }
  },
  "inputs": [
    { "id": "duplex-api-key", "type": "promptString", "password": true, "description": "MatterSpace Duplex key" }
  ]
}

claude.ai, Claude Desktop y ChatGPT.

Un conector solo necesita la dirección y te inicia sesión. No hace falta clave.

A connector lands you in your own personal workspace. An organization’s workspace is reached with a key.

  1. ClaudeSettings → Connectors → Add custom connector. Name it MatterSpace Duplex, paste https://api.duplex.matterspace.ai/mcp and leave the advanced settings empty.
  2. ChatGPTSettings → Apps & Connectors → Advanced settings → Developer mode activado. Después, Create, pega la misma dirección y elige OAuth.
  3. Inicia sesión y autorizaInicia sesión con tu cuenta de MatterSpace Duplex. La página indica la app a la que se concede el acceso: elige Allow.
  4. Actívalo en un chatActiva las herramientas del conector y pega el prompt sin hooks en las instrucciones del proyecto.

Cualquier cliente MCP, o tus propios agentes.

Tus propios agentes también pueden usar la API, los SDK de Python y TypeScript o la línea de comandos, con una clave limitada a un espacio de trabajo.

Dirección y cabeceras
URL:     https://api.duplex.matterspace.ai/mcp   (streamable HTTP)
Header:  Authorization: Bearer <your key>         (or x-duplex-key: <your key>)
Scope:   x-duplex-scope: <your scope>             (when a key is shared by a team)

Añade hooks: comprueba un paso antes de que siga adelante.

En Claude Code, Codex, Cursor y GitHub Copilot CLI, el paquete de Duplex añade la conexión, sus hooks y sus comandos en una sola instalación, una vez que das tu conformidad. Indica a los hooks tu dirección y tu clave una sola vez:

  1. Elige los pasosElige los pasos que deben comprobarse y qué ocurre cuando se aplica una regla.
  2. Primera comprobaciónPrueba un paso que la regla cubre y otro que no. El paso cubierto se comprueba; el otro se marca como fuera de la comprobación.
  3. Consulta el registroAbre el registro del paso comprobado: la regla, el resultado y cualquier revisión.
macOS y Linux
duplex-hook setup --url https://api.duplex.matterspace.ai --scope eng:platform/you
duplex-hook status
Windows, en PowerShell
& "<package folder>/hooks/duplex-hook.cmd" setup -Url https://api.duplex.matterspace.ai -Scope eng:platform/you

MCP gives your AI guidance and tools, and your AI takes the action. Hooks let Duplex check the action itself, before it runs. Disconnecting restores your previous settings exactly.

Pega el prompt y haz la primera comprobación.

Paste the standing prompt for your client, then ask your AI which Duplex workspace it reaches. It names yours, with the guarantee of the connection.

Prompts permanentes →Tu primera sesión →

Si no funciona.

  1. Comprueba el espacio de trabajoMake sure you signed in to the right organization and workspace.
  2. Check the clientMake sure your AI tool supports the connection you chose.
  3. Empieza una nueva sesiónRefresh the connection’s tools and start again: a running session keeps the tool list it began with.
  4. Check the hooksRun duplex-hook status to see whether Duplex answers your hooks.
  5. Tell usSay what you tried and what happened, leaving out passwords and private details.

Resolución de problemas →Soporte →

Prompts para esta página

Todos los prompts →

Copia uno, completa las partes entre corchetes angulares y dáselo a tu IA.

Pregunta a tu IASet up Duplex for my client
Help me connect MatterSpace Duplex to this client. Ask me which client I use, then give me the exact setting to add. My key is already exported as DUPLEX_API_KEY; never ask me to paste it here. When we're done, check the connection with duplex_status and tell me the scope and guarantee you see.

Where to find more in the MatterSpace Duplex docs:
- Configura una conexión, this topic in full: https://www.matterspace.ai/duplex/docs/connections.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
Pregunta a tu IAFirst check after connecting
Call duplex_status with show "capabilities". Tell me the scope you reach, the guarantee this connection gives, and the tools my key may use.

Where to find more in the MatterSpace Duplex docs:
- Configura una conexión, this topic in full: https://www.matterspace.ai/duplex/docs/connections.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt