Claude Code
ローカル設定として追加Add it as a local
configuration
ターミナルで次を実行します。PATは環境変数に設定し、コマンド履歴にトークンを残さないでください。
Run this in a terminal. Set the PAT as an environment variable; do not put it
in shell history.
export TODIA_MCP_TOKEN='発行したPAT'
claude mcp add-json todia '{"type":"http","url":"TODIA_MCP_URL","headers":{"Authorization":"Bearer ${TODIA_MCP_TOKEN}"}}'
claude mcp get todia またはClaude Code内の /mcp
で接続を確認します。
Verify the connection with claude mcp get todia or
/mcp in Claude Code.
Codex
config.tomlに追加Add it to config.toml
~/.codex/config.toml(または信頼済みプロジェクトの
.codex/config.toml)へ追加します。
Add this to ~/.codex/config.toml, or a trusted project’s
.codex/config.toml.
[mcp_servers.todia]
url = "TODIA_MCP_URL"
bearer_token_env_var = "TODIA_MCP_TOKEN"
default_tools_approval_mode = "prompt"
環境変数を設定してCodexを再起動し、codex mcp list またはTUIの /mcp
で確認します。
Set the environment variable, restart Codex, and check
codex mcp list or /mcp in the TUI.
GitHub Copilot
VS CodeのユーザーMCP設定へ追加Add it to VS Code user
MCP configuration
コマンドパレットから MCP: Open User Configuration
を開き、PATをパスワード入力として設定します。個人トークンをワークスペースで共有しないでください。
Run MCP: Open User Configuration from the Command Palette and
use a password input for the PAT. Do not share a personal token in workspace configuration.
{
"inputs": [{
"type": "promptString", "id": "todia-token",
"description": "Todia personal access token", "password": true
}],
"servers": { "todia": {
"type": "http", "url": "TODIA_MCP_URL",
"headers": { "Authorization": "Bearer ${input:todia-token}" }
}}
}
MCP Serversビューまたは MCP: List Servers
から信頼・開始し、AgentモードのChatで利用します。
Trust and start it from the MCP Servers view or MCP: List
Servers, then use it from Agent mode chat.