﻿---
title: "Solo agentregistry Codex MCP"
filename: "terminal"
canonical: /templates/mcp-solo-agentregistry/
---

# Solo agentregistry Codex MCP

通过 localhost:31313/mcp 读取注册表目录。静态令牌使用 ARCTL_TOKEN，生产 OAuth 配置资源地址后登录。

```
export ARCTL_TOKEN="$(arctl user info --show-tokens | jq -r .access_token)"
codex mcp add agentregistry --url http://localhost:31313/mcp --bearer-token-env-var ARCTL_TOKEN

# 生产 Ingress + OAuth（IdP 必须 HTTPS）：
# codex mcp add agentregistry --url https://registry.acme.example/mcp --oauth-resource https://registry.acme.example/mcp
# codex mcp login agentregistry --scopes openid,profile

# 不要：
# arctl configure codex
# claude mcp add --transport http --header "Authorization: Bearer …"

```
