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.
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.
export DUPLEX_API_KEY="<your key>"
export DUPLEX_SCOPE="eng:platform/you" # optionalOn 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 AI | Regels en methoden opzoeken | Geselecteerde stappen controleren | In te richten met |
|---|---|---|---|
| Claude Code | MCP | Duplex-hooks | Eén opdracht, of .mcp.json voor het team |
| Codex | MCP | Duplex-hooks | Eén opdracht, of config.toml |
| Cursor | MCP | Duplex-hooks | .cursor/mcp.json |
| GitHub Copilot | MCP | Duplex-hooks in de CLI, of repository-hooks | .vscode/mcp.json, or the CLI package |
| claude.ai, Claude Desktop, ChatGPT | MCP | Niet via alleen MCP | Een connector: het adres en een aanmelding |
| Elke MCP client | MCP | Niet via alleen MCP | Het adres en je sleutel |
| Je eigen agents | MCP, of de API en SDK’s | Niet via alleen MCP | Een sleutel die beperkt is tot één werkruimte |
Claude Code.
claude mcp add --transport http duplex https://api.duplex.matterspace.ai/mcp --header "Authorization: Bearer ${DUPLEX_API_KEY}"{
"mcpServers": {
"duplex": {
"type": "http",
"url": "https://api.duplex.matterspace.ai/mcp",
"headers": {
"Authorization": "Bearer ${DUPLEX_API_KEY}",
"x-duplex-scope": "${DUPLEX_SCOPE:-}"
}
}
}
}Codex.
codex mcp add duplex --url https://api.duplex.matterspace.ai/mcp --bearer-token-env-var DUPLEX_API_KEY# ~/.codex/config.toml
[mcp_servers.duplex]
url = "https://api.duplex.matterspace.ai/mcp"
bearer_token_env_var = "DUPLEX_API_KEY"Cursor.
{
"mcpServers": {
"duplex": {
"url": "https://api.duplex.matterspace.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:DUPLEX_API_KEY}"
}
}
}
}GitHub Copilot in VS Code.
{
"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.
- ClaudeSettings → Connectors → Add custom connector. Name it MatterSpace Duplex, paste https://api.duplex.matterspace.ai/mcp and leave the advanced settings empty.
- ChatGPTSettings → Apps & Connectors → Advanced settings → Developer mode aan. Kies dan Create, plak hetzelfde adres en kies OAuth.
- Aanmelden en toestaanMeld je aan met je MatterSpace Duplex-account. De pagina noemt de app die toegang krijgt: kies Allow.
- 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.
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:
- Kies de stappenKies de stappen die gecontroleerd moeten worden, en wat er gebeurt wanneer een regel van toepassing is.
- 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.
- Bekijk het dossierOpen het dossier van de gecontroleerde stap: de regel, de uitkomst en eventuele review.
duplex-hook setup --url https://api.duplex.matterspace.ai --scope eng:platform/you
duplex-hook status& "<package folder>/hooks/duplex-hook.cmd" setup -Url https://api.duplex.matterspace.ai -Scope eng:platform/youMCP 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.
Als het niet werkt.
- Controleer de werkruimteMake sure you signed in to the right organization and workspace.
- Check the clientMake sure your AI tool supports the connection you chose.
- Start een nieuwe sessieRefresh the connection’s tools and start again: a running session keeps the tool list it began with.
- Check the hooksRun duplex-hook status to see whether Duplex answers your hooks.
- Tell usSay what you tried and what happened, leaving out passwords and private details.
Instructies die een AI-agent volgt om dit deel van MatterSpace Duplex goed te gebruiken. Plak ze in de instructies van je agent, of verwijs hem naar de markdown van deze pagina.
Your job during setup
Help the user connect their client to MatterSpace Duplex without ever handling their key in plain text.
Steps
- Ask which client they use: Claude Code, Codex, Cursor, GitHub Copilot, claude.ai, Claude Desktop, ChatGPT, another MCP client or their own agent.
- For a key-based client, have them export
DUPLEX_API_KEY(and optionallyDUPLEX_SCOPE) in their environment, then give the exact setting from this page for their client. - For claude.ai, Claude Desktop or ChatGPT, walk them through adding a custom connector with the address
https://api.duplex.matterspace.ai/mcpand OAuth sign-in. No key. - If their client has hooks (Claude Code, Codex, Cursor, GitHub Copilot CLI) and they want steps checked before they run, have them run
duplex-hook setup --url <address> --scope <scope>and thenduplex-hook status. - Have them paste the standing prompt that matches their client: with hooks, or without hooks.
- Start a new session, then call
duplex_status {show: "capabilities"}and report the scope, the guarantee (advisory or hooked) and the tools the key may use.
Never
- Never ask the user to paste their key into the chat, and never write a key into a committed file.
- Never claim the connection works because a tool is listed. It works when
duplex_statusanswers with the user's scope.
If it fails
- 401: the key or address is wrong, or the key was rotated.
- 403: the key doesn't reach that scope or lacks the permission.
- Tools missing: the session started before the connection was added. Start a new session.
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.txtPrompts voor deze pagina
Alle prompts →Kopieer er een, vul de delen tussen punthaken in en geef hem aan je AI.
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.txtCall 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
