Vai al contenuto
Menu

Configura una connessione

Connect your AI in minutes.

Copia un’impostazione, incolla un prompt e la tua IA lavora con MatterSpace Duplex dalla richiesta successiva. Aggiungi gli hook dovunque un passaggio vada controllato prima dell’esecuzione.

.md

Inizia dalla tua chiave.

Crea una chiave nella tua console e tienila nel tuo ambiente. Ogni impostazione qui sotto la legge da lì, così non finisce mai in un file di cui fai il commit.

La tua chiave e il tuo ambitomacOS e Linux. Su Windows, imposta le stesse variabili nel tuo ambiente utente.
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.

Quale connessione usa ogni AI.

I client funzionano su macOS, Linux e Windows.

La tua AIConsultare regole e metodiControllare passaggi selezionatiConfigurazione con
Claude CodeMCPHooks di DuplexUn comando, oppure .mcp.json per il team
CodexMCPHooks di DuplexUn comando, oppure config.toml
CursorMCPHooks di Duplex.cursor/mcp.json
GitHub CopilotMCPHook di Duplex nella CLI, oppure hook del repository.vscode/mcp.json, or the CLI package
claude.ai, Claude Desktop, ChatGPTMCPNon con il solo MCPUn connettore: l’indirizzo e un accesso
Qualsiasi MCP clientMCPNon con il solo MCPL’indirizzo e la tua chiave
I tuoi agentiMCP, oppure le API e gli SDKNon con il solo MCPUna chiave limitata a un solo spazio di lavoro

Claude Code.

Per te, con un comando
claude mcp add --transport http duplex https://api.duplex.matterspace.ai/mcp --header "Authorization: Bearer ${DUPLEX_API_KEY}"
Per tutto il tuo team: .mcp.json nella radice del progettoLa chiave e l’ambito di ciascuno vengono letti dal suo ambiente.
{
  "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 comando
codex mcp add duplex --url https://api.duplex.matterspace.ai/mcp --bearer-token-env-var DUPLEX_API_KEY
Oppure in 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 in VS Code.

.vscode/mcp.jsonVS Code ti chiede la chiave una sola volta, come password.
{
  "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 e ChatGPT.

Un connettore richiede solo l’indirizzo e ti fa accedere. Nessuna chiave necessaria.

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 attivo. Poi Create, incolla lo stesso indirizzo e scegli OAuth.
  3. Accedi e autorizzaAccedi con il tuo account MatterSpace Duplex. La pagina indica l’app a cui va l’accesso: scegli Allow.
  4. Attivalo in una chatAttiva gli strumenti del connettore e incolla il prompt senza hook nelle istruzioni del progetto.

Qualsiasi client MCP, o i tuoi agenti.

I tuoi agenti possono usare anche l’API, gli SDK Python e TypeScript o la riga di comando, con una chiave limitata a uno spazio di lavoro.

Indirizzo e header
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)

Aggiungi gli hook: controlla un passaggio prima che venga eseguito.

In Claude Code, Codex, Cursor e GitHub Copilot CLI, il pacchetto Duplex aggiunge la connessione, i suoi hook e i suoi comandi con un’unica installazione, una volta che dai il consenso. Fornisci una sola volta agli hook il tuo indirizzo e la tua chiave:

  1. Scegli i passaggiScegli i passaggi da controllare, e cosa succede quando si applica una regola.
  2. Primo controlloProva un passaggio coperto dalla regola, e uno che non lo è. Il passaggio coperto viene controllato; l’altro viene etichettato come fuori dal controllo.
  3. Guarda la tracciaApri la traccia del passaggio controllato: la regola, l’esito ed eventuali revisioni.
macOS e Linux
duplex-hook setup --url https://api.duplex.matterspace.ai --scope eng:platform/you
duplex-hook status
Windows, in 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.

Incolla il prompt e fai il primo controllo.

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.

Prompt permanenti →La tua prima sessione →

Se non funziona.

  1. Verifica lo spazio di lavoroMake sure you signed in to the right organization and workspace.
  2. Check the clientMake sure your AI tool supports the connection you chose.
  3. Avvia una nuova sessioneRefresh 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.

Risoluzione dei problemi →Assistenza →

Prompt per questa pagina

Tutti i prompt →

Copiane uno, completa le parti tra parentesi angolari e dallo alla tua IA.

Chiedi alla tua 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 connessione, 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
Chiedi alla tua 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 connessione, 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