Skip to content

fix: merge codex config - #391

Merged
keito4 merged 3 commits into
mainfrom
fix/readme-dedupe
Jan 29, 2026
Merged

fix: merge codex config#391
keito4 merged 3 commits into
mainfrom
fix/readme-dedupe

Conversation

@keito4

@keito4 keito4 commented Jan 29, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Enabled web search requests
    • Added MCP sources: AWS Knowledge, Chrome DevTools, Next.js DevTools, O3, Vercel, and GitHub
    • Sandbox/workspace now allows network access in workspace-write mode
  • Updates

    • Supabase MCP configuration expanded with explicit server entries
    • Model migration mapping added (gpt-5.1-codex-max → gpt-5.2-codex) and certain migration prompts hidden
  • Chores

    • Removed several public project entries

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Jan 29, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The .codex/config.toml file is updated to set the top-level model to gpt-5.2-codex, enable workspace-write sandboxing with network access, enable web_search_request, add and adjust multiple MCP server entries (including aws-knowledge, chrome-devtools, next-devtools, o3, vercel, github, and supabase changes), remove three project entries, and add model migration notices.

Changes

Cohort / File(s) Summary
Model & Sandboxing
.codex/config.toml
Sets model = "gpt-5.2-codex", enables sandbox_mode = "workspace-write" with network_access = true, and enables web_search_request feature.
MCP Servers
.codex/config.toml
Adds multiple MCP server entries: aws-knowledge, chrome-devtools, next-devtools, o3 (with env vars), and public endpoints vercel and github with HTTP auth headers; updates supabase server to include project_ref-like explicit server entries.
Project Visibility
.codex/config.toml
Removes three existing public/trusted project declarations (/workspaces/cyber_ace_1on1, /workspaces/n8n_custom_node, /Users/keito4/develop/github.com/keito4/config).
Model Migrations & Notices
.codex/config.toml
Adds notices to hide GPT-5.1 migration prompts and maps gpt-5.1-codex-max to gpt-5.2-codex under model migrations.

Sequence Diagram(s)

(omitted)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

released

Poem

🐰 Hops into configs, fresh and spry,
New models bloom and sandboxes fly,
MCP friends join the dance tonight,
Old projects step back from the light,
I nibble keys and cheer: "All right!" 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'fix: merge codex config' is vague and does not accurately reflect the primary changes made in the pull request. Consider revising the title to be more descriptive, such as 'fix: remove codex project trust entries and update MCP configuration' to better match the actual changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@claude

claude Bot commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

PR Review: Codex Config Merge

このPRは .codex/config.toml の設定変更を含んでいます。以下の観点からレビューを実施しました。

✅ 良い点

  1. モデルアップグレード: gpt-5.2-codex への移行により、最新の機能を活用できます
  2. 機能拡張: Web検索機能の有効化 (web_search_request = true) により、開発時の情報収集が改善されます
  3. 統合追加: AWS Knowledge、Chrome DevTools、Next.js DevTools、O3 search など、有用な統合が追加されています
  4. サンドボックス設定: workspace-write モードでネットワークアクセスを有効化し、実用的な開発環境を提供しています

⚠️ 指摘事項

1. セキュリティ: 環境変数の管理 (重要度: 高)

場所: .codex/config.toml:31,37,43,49

設定ファイルで複数の環境変数を参照しています:

  • OPENAI_API_KEY
  • SUPABASE_MCP_TOKEN
  • VERCEL_MCP_TOKEN
  • GITHUB_COPILOT_MCP_TOKEN

推奨事項:

  • これらの環境変数が適切に設定されているか確認してください
  • ドキュメント(README.md または credentials/README.md)に必要な環境変数のリストと設定方法を記載することを推奨します
  • 環境変数が未設定の場合のエラーハンドリングを確認してください

2. 設定の一貫性: Project Trust Levels (重要度: 中)

場所: .codex/config.toml:51-88

多数のプロジェクトパスが trusted レベルで登録されています。

懸念点:

  • ローカル環境固有のパス(/Users/keito4/develop/...)と共有環境のパス(/workspaces/...)が混在しています
  • この設定ファイルが共有リポジトリにコミットされる場合、他の開発者の環境では動作しない可能性があります

推奨事項:

  • 環境固有の設定を分離する仕組み(例: .codex/config.local.toml)の導入を検討してください
  • または、この設定ファイルを .gitignore に追加し、テンプレートファイルを提供することを検討してください

3. ドキュメント不足 (重要度: 中)

場所: 全体

推奨事項:

  • 新しく追加されたMCPサーバー統合(aws-knowledge、chrome-devtools、next-devtools)の使用方法をドキュメント化してください
  • gpt-5.2-codex モデルへの移行に伴う変更点や利点を記載してください
  • CLAUDE.md の「Release Types Required for Tooling Changes」ルールに従い、この変更が fix タイプのコミットであることは適切です

4. パフォーマンス考慮事項 (重要度: 低)

場所: .codex/config.toml:16-22

複数のMCPサーバーが npx を使用して起動されます。

考慮事項:

  • 初回起動時にパッケージのダウンロードが発生する可能性があります
  • 頻繁に使用する場合は、グローバルインストールを検討してください

5. Supabase設定の変更 (重要度: 低)

場所: .codex/config.toml:34

Supabase URLにプロジェクト参照(project_ref=zjfngnetdzgofqmteqja)が追加されています。

確認事項:

  • このプロジェクト参照が意図的な変更であることを確認してください
  • プロジェクトが公開される場合、この情報が機密情報に該当しないか確認してください

📋 チェックリスト

以下の確認を推奨します:

  • すべての必要な環境変数が設定されているか
  • 新しいMCPサーバー統合が正常に動作するか
  • 他の開発者の環境でも動作するか(パス依存性)
  • ドキュメントの更新が必要か
  • CIが正常にパスするか

🎯 総合評価

Verdict: Patch requires attention before merge
Confidence: 0.8

主な懸念点は環境固有のパス設定と環境変数の管理です。機能追加自体は有益ですが、チーム全体での利用を考慮した改善が推奨されます。

📝 推奨アクション

  1. 環境固有の設定を分離するか、ドキュメント化する
  2. 必要な環境変数のセットアップ手順を明確化する
  3. 可能であれば、新機能の簡単な使用例をドキュメントに追加する

CLAUDE.md の品質基準に基づき、これらの改善を実施することで、より堅牢で保守性の高い設定になります。

@keito4

keito4 commented Jan 29, 2026

Copy link
Copy Markdown
Owner Author

(aside)
@claude PRがbaseにマージする際にCIが落ちています。
修正してください。

@claude

claude Bot commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Claude finished @keito4's task in 4m 39s —— View job


CI状況確認完了 ✅

以下のタスクを実施しました:

  • CI失敗状況の確認
  • 失敗したワークフローの詳細確認
  • 問題の特定
  • ローカルでの検証

📋 調査結果

結論: CI失敗は発生していません。すべてのチェックが正常に完了しています。

現在のチェック状態 (最新):

  • check-ci-status: SUCCESS (完了)
  • GitGuardian Security Checks: SUCCESS (完了)
  • claude-review: IN_PROGRESS (このジョブ自身が実行中)

PRマージステータス:

  • mergeable: MERGEABLE
  • mergeStateStatus: UNSTABLE → これは claude-review (現在実行中のこのジョブ) が完了していないためです

🔍 詳細分析

  1. CI Workflow の動作:

    • このPRでは .codex/config.toml のみが変更されています
    • CI workflow (.github/workflows/ci.yml) は以下のパスのみをトリガー:
      • **.js, **.ts, **.json, **.sh, **.bats
      • .github/workflows/**
      • package.json, package-lock.json
    • .codex/config.toml は対象外のため、CI workflowは実行されません
    • これは設計通りの動作です
  2. check-ci-status の動作:

    • 120秒待機後、CIがpath filtersでスキップされたことを検出
    • 正常に ci_passed=true を設定して SUCCESS で完了
  3. ローカル検証結果 (念のため実施):

    ✅ npm ci            # 依存関係インストール成功
    ✅ npm test          # 101 tests passed  
    ✅ npm run lint      # No errors
    ✅ npm run format:check # All files properly formatted
  4. commitlint 検証:

    • コミットメッセージ: fix: merge codex config
    • .codex/ 配下の変更には release-triggering type が必須
    • fix タイプは許可リスト (feat|fix|perf|revert|docs) に含まれるため ✅ 問題なし
  5. セキュリティチェック:

    • ✅ GitGuardian: 機密情報の漏洩なし

✅ 結論

このPRは 問題なくマージ可能 です:

  • すべての必須チェックが SUCCESS
  • コミットメッセージが規約に準拠
  • コード品質チェック合格
  • セキュリティチェック合格

アクション不要: CI失敗は確認できませんでした。このPRは現状のままマージできる状態です。

もし特定のCI失敗を確認されている場合は、以下の情報を教えていただけますか:

  • 失敗しているワークフロー名
  • エラーメッセージ
  • 失敗が発生した時刻やジョブURL

| View PR #391

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.codex/config.toml (1)

28-31: Add non-interactive npx flag and version specifier for o3-search-mcp.

The -y flag is needed here for consistency with next-devtools-mcp (line 22) and to prevent interactive prompts in non-interactive environments. Additionally, o3-search-mcp lacks a version specifier while all other packages use @latest — add it for consistency.

Proposed fix
 [mcp_servers.o3]
 command = "npx"
-args = ["o3-search-mcp"]
+args = ["-y", "o3-search-mcp@latest"]
🤖 Fix all issues with AI agents
In @.codex/config.toml:
- Around line 60-88: The config contains user-specific absolute project entries
(e.g. [projects."/Users/keito4/develop/github.com/Elu-co-jp/..."]) marked
trusted; remove or replace these entries with workspace-relative identifiers or
move them into a local/user-only override so they are not committed, keep only
repository-agnostic trusted entries (or a minimal shared list), and update the
committed .codex/config.toml to exclude any username-specific paths before
merging.
- Around line 16-23: Update the npx invocations for mcp_servers.chrome-devtools
and mcp_servers.next-devtools to include the non-interactive flag and pin
explicit MCP versions: modify the args arrays for the sections named
mcp_servers.chrome-devtools and mcp_servers.next-devtools to include "-y" (so
npx runs non-interactively) and replace "@latest" with concrete versions (e.g.,
chrome-devtools-mcp@0.2.7 and next-devtools-mcp or `@playwright/mcp` pinned to a
specific version such as `@0.0.55`) to ensure deterministic installs.
🧹 Nitpick comments (2)
.codex/config.toml (2)

1-4: Confirm model availability, sandbox/network policy, and commit-message compliance.

Please verify the gpt-5.2-codex model is enabled in this environment and that workspace-write with network_access = true aligns with your security/egress policy. Also confirm the commit message uses Conventional Commits (feat/fix/perf/revert/docs) since .codex/** changed.

As per coding guidelines, Use Conventional Commits format with release-triggering types (feat/fix/perf/revert/docs) for commits touching .codex/**, .devcontainer/codex*, package*.json, or npm/global.json.


5-7: Validate web_search_request enablement vs. data‑egress policy.

Web search can send prompt/context externally; please confirm this is acceptable for your policy and telemetry posture.

Comment thread .codex/config.toml
Comment on lines +16 to +23
[mcp_servers.chrome-devtools]
command = "npx"
args = ["chrome-devtools-mcp@latest"]

[mcp_servers.next-devtools]
command = "npx"
args = ["-y", "next-devtools-mcp@latest"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n .codex/config.toml

Repository: keito4/config

Length of output: 3094


🌐 Web query:

npx -y flag interactive prompt behavior documentation

💡 Result:

In npm v7+, npx is effectively npm exec, and it will prompt interactively before installing anything (e.g., “Need to install… Ok to proceed?”) to reduce mistakes like typosquatting. You can suppress that prompt with:

  • npx -y <pkg> … or npx --yes <pkg> … → automatically answers “yes” to the install prompt (non-interactive/CI-friendly). [1]
  • npx --no <pkg> … → automatically answers “no” (fails instead of prompting). [1]

Important CLI parsing detail:

  • When using the npx binary, all flags must come before positional args, so --yes must appear before the package name. [2]
    • Example: npx --yes create-next-app@latest (not npx create-next-app@latest --yes). [2]

Sources: npm npx docs (prompt + -y/--yes/--no) [1], npm npm exec docs (flag ordering / parsing behavior) [2].

[1] https://docs.npmjs.com/cli/v10/commands/npx/
[2] https://docs.npmjs.com/cli/v7/commands/npm-exec/


🌐 Web query:

chrome-devtools-mcp npm latest version

💡 Result:

The latest npm version of chrome-devtools-mcp is 0.2.7 (published ~16 hours ago on npm). [1]


🌐 Web query:

@playwright/mcp npm latest version

💡 Result:

The latest npm version of @playwright/mcp is 0.0.55 (dist-tag: latest) as of January 29, 2026. [1][2]


🌐 Web query:

next-devtools-mcp npm latest version

💡 Result:

The latest published version of next-devtools-mcp on npm is 0.3.10 (tagged/released Jan 8, 2026). [1][2]

Install: npm i next-devtools-mcp@0.3.10 [2]

Use latest via npx: npx -y next-devtools-mcp@latest [1]

Sources:
[1] https://github.com/vercel/next-devtools-mcp/tags
[2] https://www.jsdelivr.com/package/npm/next-devtools-mcp


Add -y flag to all npx calls and consider pinning MCP versions.

npx (npm v7+) prompts interactively before installing packages without -y, which will hang in non-interactive environments. Both chrome-devtools-mcp and @playwright/mcp are missing this flag. Additionally, pinning versions instead of @latest prevents nondeterministic installs (e.g., pin to chrome-devtools-mcp@0.2.7, @playwright/mcp@0.0.55).

Proposed fix
 [mcp_servers.chrome-devtools]
 command = "npx"
-args = ["chrome-devtools-mcp@latest"]
+args = ["-y", "chrome-devtools-mcp@0.2.7"]

 [mcp_servers.next-devtools]
 command = "npx"
-args = ["-y", "next-devtools-mcp@latest"]
+args = ["-y", "next-devtools-mcp@0.3.10"]

 [mcp_servers.playwright]
 command = "npx"
-args = ["@playwright/mcp@latest"]
+args = ["-y", "@playwright/mcp@0.0.55"]
🤖 Prompt for AI Agents
In @.codex/config.toml around lines 16 - 23, Update the npx invocations for
mcp_servers.chrome-devtools and mcp_servers.next-devtools to include the
non-interactive flag and pin explicit MCP versions: modify the args arrays for
the sections named mcp_servers.chrome-devtools and mcp_servers.next-devtools to
include "-y" (so npx runs non-interactively) and replace "@latest" with concrete
versions (e.g., chrome-devtools-mcp@0.2.7 and next-devtools-mcp or
`@playwright/mcp` pinned to a specific version such as `@0.0.55`) to ensure
deterministic installs.

Comment thread .codex/config.toml Outdated
@claude

claude Bot commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

PR Review: Codex Configuration Merge

このPRは .codex/config.toml の設定をマージし、複数のMCPサーバー統合を追加するものです。

✅ 良い点

  1. モデルアップグレード: GPT-5.2-Codexへの移行は妥当です
  2. 機能追加: Web検索リクエスト機能の有効化により開発効率が向上
  3. MCP統合の拡充: AWS Knowledge、Chrome DevTools、Next.js DevTools、O3、Vercel、GitHub MCPの追加により開発体験が向上
  4. ネットワークアクセス: Sandbox workspace-writeモードでのネットワークアクセス有効化は、MCPサーバーとの通信に必要

⚠️ 懸念事項

1. セキュリティ上の懸念 (Critical)

Supabase project reference (zjfngnetdzgofqmteqja) がハードコードされています。

問題点:

  • プロジェクト識別子の公開露出
  • リポジトリをフォークした場合の誤った接続先
  • セキュリティベストプラクティス違反

推奨対応: 環境変数 SUPABASE_PROJECT_REF を使用してプロジェクト固有の情報を安全に管理

2. プロジェクトトラスト設定の削除

以下のプロジェクトトラスト設定が削除されています:

  • /workspaces/cyber_ace_1on1
  • /workspaces/n8n_custom_node
  • /Users/keito4/develop/github.com/keito4/config

確認事項: これらの削除は意図的ですか?PR説明では public project entries の削除とありますが、これらは個人のワークスペースパスのようです。

3. テストカバレッジの欠如

test/config-validation.test.js には .codex/config.toml の検証が含まれていません。

推奨追加検証:

  • TOMLファイルの構文検証
  • 必須フィールドの存在確認
  • URLフォーマットの検証
  • 環境変数の適切な使用確認

4. ドキュメント更新の必要性

このPRは fix: タイプを使用しており、CLAUDE.mdのルールに準拠しています ✅

推奨ドキュメント更新:

  • README.md の .codex/ セクションに新規追加されたMCPサーバーの説明
  • 各MCPサーバーの用途と必要な環境変数の記載

📋 推奨アクション

優先度 High:

  1. Supabase project_ref を環境変数化
  2. プロジェクトトラスト設定削除の意図を確認

優先度 Medium:
3. .codex/config.toml の検証テストを追加
4. README.md に新規MCPサーバーの説明を追加
5. 必要な環境変数のドキュメント化

優先度 Low:
6. CIワークフローに .codex/** パスのトリガー追加を検討

📊 品質メトリクス

  • 変更規模: XS (1ファイル、30行)
  • コミット規約: ✅ Conventional Commits準拠
  • セキュリティスキャン: ⚠️ ハードコードされたproject_ref検出
  • テストカバレッジ: ❌ 設定ファイル検証テスト不足

結論

このPRは有益な機能追加ですが、セキュリティ上の懸念があるため、マージ前にSupabase project_refの環境変数化を強く推奨します。その他の推奨事項は、今後の改善として別PRで対応可能です。

@keito4
keito4 merged commit d60130d into main Jan 29, 2026
2 of 3 checks passed
@claude

claude Bot commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

Pull Request Review: #391

このPRは .codex/config.toml の設定を更新し、新しいMCPサーバーの追加、モデル移行設定、プロジェクト信頼レベル設定の削除を行っています。PRはすでにマージされていますが、今後の参考のためにレビューコメントを残します。


良い点

  1. 適切なコミットタイプ使用 - fix: タイプを使用しており、.codex/** ファイル変更に対するリリーストリガー要件を満たしています
  2. 新しいMCPサーバー統合の追加(AWS Knowledge, Chrome DevTools, Next.js DevTools, O3, Vercel, GitHub)
  3. モデル移行の適切な設定(gpt-5.1-codex-max → gpt-5.2-codex)

改善提案

1. セキュリティ考慮事項(重要度: 高)

network_access = true の無条件有効化はセキュリティリスクを伴います。

  • ネットワークアクセスが必要な理由を明記
  • 特定のドメイン/URLへのアクセス制限を検討
  • セキュリティレビューの実施

2. 環境変数の依存関係(重要度: 中)

複数のMCPサーバーが環境変数に依存(GITHUB_COPILOT_MCP_TOKEN, SUPABASE_MCP_TOKEN, VERCEL_MCP_TOKEN, OPENAI_API_KEY)

  • READMEに必要な環境変数のリストと取得方法を記載
  • .env.example ファイルの作成を検討

3. ドキュメント更新(重要度: 中)

CLAUDE.md § 4 により、ドキュメント更新が必要です。

  • READMEに新しいMCPサーバーの説明と使用方法を追加
  • 設定変更のADR作成を検討

4. テストカバレッジ(重要度: 中)

CLAUDE.md § 2.1 により、設定変更にも70%+のテストカバレッジが求められます。

  • 設定ファイルの妥当性を検証するテストの追加

レビュー実施日: 2026-01-29
参照: CLAUDE.md § 2.2, § 2.3, § 4

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.59.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released リリース済み label Jan 29, 2026
@keito4
keito4 deleted the fix/readme-dedupe branch March 1, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released リリース済み

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant