Ga naar de inhoud
Menu

Een koppeling instellen

Connect your AI in minutes.

Kopieer één instelling, plak één prompt, en je AI werkt vanaf het volgende verzoek met MatterSpace Duplex. Voeg hooks toe overal waar een stap gecontroleerd moet worden voordat die wordt uitgevoerd.

.md

Begin met je sleutel.

Maak een sleutel in je console en bewaar hem in je omgeving. Elke instelling hieronder leest hem daar, zodat hij nooit in een bestand belandt dat je commit.

Je sleutel en scopemacOS en Linux. Stel op Windows dezelfde variabelen in je gebruikersomgeving in.
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.

Welke verbinding elke AI gebruikt.

De clients draaien op macOS, Linux en Windows.

Je AIRegels en methoden opzoekenGeselecteerde stappen controlerenIn te richten met
Claude CodeMCPDuplex-hooksEén opdracht, of .mcp.json voor het team
CodexMCPDuplex-hooksEén opdracht, of config.toml
CursorMCPDuplex-hooks.cursor/mcp.json
GitHub CopilotMCPDuplex-hooks in de CLI, of repository-hooks.vscode/mcp.json, or the CLI package
claude.ai, Claude Desktop, ChatGPTMCPNiet via alleen MCPEen connector: het adres en een aanmelding
Elke MCP clientMCPNiet via alleen MCPHet adres en je sleutel
Je eigen agentsMCP, of de API en SDK’sNiet via alleen MCPEen sleutel die beperkt is tot één werkruimte

Claude Code.

Voor jou, met één opdracht
claude mcp add --transport http duplex https://api.duplex.matterspace.ai/mcp --header "Authorization: Bearer ${DUPLEX_API_KEY}"
Voor je hele team: .mcp.json in de hoofdmap van het projectDe eigen sleutel en scope van elke persoon worden uit diens omgeving gelezen.
{
  "mcpServers": {
    "duplex": {
      "type": "http",
      "url": "https://api.duplex.matterspace.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${DUPLEX_API_KEY}",
        "x-duplex-scope": "${DUPLEX_SCOPE:-}"
      }
    }
  }
}

Codex.

Met één opdracht
codex mcp add duplex --url https://api.duplex.matterspace.ai/mcp --bearer-token-env-var DUPLEX_API_KEY
Of 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 vraagt één keer om je sleutel, als wachtwoord.
{
  "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 en ChatGPT.

Een connector heeft alleen het adres nodig en meldt je aan. Geen sleutel nodig.

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 aan. Kies dan Create, plak hetzelfde adres en kies OAuth.
  3. Aanmelden en toestaanMeld je aan met je MatterSpace Duplex-account. De pagina noemt de app die toegang krijgt: kies Allow.
  4. Zet het aan in een chatZet de tools van de connector aan en plak de prompt zonder hooks in de instructies van het project.

Elke MCP-client, of je eigen agents.

Je eigen agents kunnen ook de API, de SDK's voor Python en TypeScript of de opdrachtregel gebruiken, met een sleutel die beperkt is tot één werkruimte.

Adres en headers
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)

Voeg hooks toe: controleer een stap voordat die doorgaat.

In Claude Code, Codex, Cursor en GitHub Copilot CLI voegt het Duplex-pakket de verbinding, de hooks en de opdrachten in één installatie toe, zodra je akkoord gaat. Geef de hooks één keer je adres en sleutel:

  1. Kies de stappenKies de stappen die gecontroleerd moeten worden, en wat er gebeurt wanneer een regel van toepassing is.
  2. Eerste controleProbeer een stap die de regel dekt, en een die hij niet dekt. De gedekte stap wordt gecontroleerd; de andere wordt gelabeld als buiten de controle.
  3. Bekijk het dossierOpen het dossier van de gecontroleerde stap: de regel, de uitkomst en eventuele review.
macOS en 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.

Plak de prompt en doe de eerste check.

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.

Vaste prompts →Je eerste sessie →

Als het niet werkt.

  1. Controleer de werkruimteMake sure you signed in to the right organization and workspace.
  2. Check the clientMake sure your AI tool supports the connection you chose.
  3. Start een nieuwe sessieRefresh 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.

Probleemoplossing →Support →

Prompts voor deze pagina

Alle prompts →

Kopieer er een, vul de delen tussen punthaken in en geef hem aan je AI.

Vraag het je AISet 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:
- Een koppeling instellen, 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
Vraag het je AIFirst 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:
- Een koppeling instellen, 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