Hoppa till innehållet
Meny

Konfigurera en anslutning

Connect your AI in minutes.

Kopiera en inställning, klistra in en prompt, och din AI arbetar med MatterSpace Duplex från och med nästa förfrågan. Lägg till hooks där ett steg ska kontrolleras innan det körs.

.md

Börja med din nyckel.

Skapa en nyckel i din konsol och spara den i din miljö. Varje inställning nedan läser den därifrån, så den hamnar aldrig i en fil som du committar.

Din nyckel och ditt omfångmacOS och Linux. På Windows anger du samma variabler i din användarmiljö.
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.

Vilken anslutning varje AI använder.

Klienterna körs på macOS, Linux och Windows.

Din AISlå upp regler och metoderKontrollera utvalda stegSätts upp med
Claude CodeMCPDuplex-hooksEtt kommando, eller .mcp.json för teamet
CodexMCPDuplex-hooksEtt kommando, eller config.toml
CursorMCPDuplex-hooks.cursor/mcp.json
GitHub CopilotMCPDuplex-hooks i CLI:t, eller hooks i repot.vscode/mcp.json, or the CLI package
claude.ai, Claude Desktop, ChatGPTMCPInte via enbart MCPEn connector: adressen och en inloggning
Alla MCP-klienterMCPInte via enbart MCPAdressen och din nyckel
Dina egna agenterMCP, eller API:et och SDK:ernaInte via enbart MCPEn nyckel begränsad till en arbetsyta

Claude Code.

För dig, med ett kommando
claude mcp add --transport http duplex https://api.duplex.matterspace.ai/mcp --header "Authorization: Bearer ${DUPLEX_API_KEY}"
För hela teamet: .mcp.json i projektets rotVarje persons egen nyckel och omfång läses från deras miljö.
{
  "mcpServers": {
    "duplex": {
      "type": "http",
      "url": "https://api.duplex.matterspace.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${DUPLEX_API_KEY}",
        "x-duplex-scope": "${DUPLEX_SCOPE:-}"
      }
    }
  }
}

Codex.

Med ett kommando
codex mcp add duplex --url https://api.duplex.matterspace.ai/mcp --bearer-token-env-var DUPLEX_API_KEY
Eller i 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 i VS Code.

.vscode/mcp.jsonVS Code ber om din nyckel en gång, som ett lösenord.
{
  "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 och ChatGPT.

En connector tar bara adressen och loggar in dig. Ingen nyckel behövs.

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 på. Välj sedan Create, klistra in samma adress och välj OAuth.
  3. Logga in och tillåtLogga in med ditt MatterSpace Duplex-konto. Sidan visar vilken app åtkomsten går till: välj Allow.
  4. Slå på den i en chattSlå på connectorns verktyg och klistra in prompten utan hooks i projektets instruktioner.

Valfri MCP-klient, eller dina egna agenter.

Dina egna agenter kan också använda API:t, SDK:erna för Python och TypeScript eller kommandoraden, med en nyckel som är begränsad till en arbetsyta.

Adress och 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)

Lägg till hooks: kontrollera ett steg innan det genomförs.

I Claude Code, Codex, Cursor och GitHub Copilot CLI lägger Duplex-paketet till anslutningen, dess hooks och dess kommandon i en enda installation, när du har godkänt. Ge hooks din adress och nyckel en gång:

  1. Välj stegenVälj de steg som ska kontrolleras, och vad som händer när en regel gäller.
  2. Första kontrollenProva ett steg som regeln täcker, och ett som den inte täcker. Det täckta steget kontrolleras; det andra märks som utanför kontrollen.
  3. Se loggenÖppna loggen för det kontrollerade steget: regeln, utfallet och eventuell granskning.
macOS och Linux
duplex-hook setup --url https://api.duplex.matterspace.ai --scope eng:platform/you
duplex-hook status
Windows, i 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.

Klistra in prompten och gör den första kontrollen.

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.

Stående promptar →Din första session →

Om det inte fungerar.

  1. Kontrollera arbetsytanMake sure you signed in to the right organization and workspace.
  2. Check the clientMake sure your AI tool supports the connection you chose.
  3. Starta en ny sessionRefresh 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.

Felsökning →Support →

Promptar för den här sidan

Alla promptar →

Kopiera en, fyll i delarna inom vinkelparenteser och ge den till din AI.

Fråga din 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:
- Konfigurera en anslutning, 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
Fråga din 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:
- Konfigurera en anslutning, 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