Skip to content

chore(harness): AGENT-HUB 配布差分を取り込む(Issue #1493 MCP 表示名統一) - #1154

Closed
ShintaroKawakami wants to merge 5 commits into
rohitg00:mainfrom
ShintaroKawakami:chore/mcp-client-name-1493
Closed

chore(harness): AGENT-HUB 配布差分を取り込む(Issue #1493 MCP 表示名統一)#1154
ShintaroKawakami wants to merge 5 commits into
rohitg00:mainfrom
ShintaroKawakami:chore/mcp-client-name-1493

Conversation

@ShintaroKawakami

@ShintaroKawakami ShintaroKawakami commented Aug 5, 2026

Copy link
Copy Markdown

AGENT-HUB PR #1504(MCP サーバー名のツール間統一)の配布差分。

生成 client surface の MCP キーが codebase-context-engine-agentmemorycodebase-context-engine のように正本 client_name へ統一される。あわせて配布物・憲法ファイルを最新へ追従。

生成は scripts/sync-agents.py --project agentmemory --project-root <clean linked worktree> を registered stable HUB(detached origin/main = 0a3a927b)から実行。手編集なし。

🤖 Generated with Claude Code

https://claude.ai/code/session_01DNY3eUR8hiwQCDh4CWUAXm

Summary by CodeRabbit

  • New Features
    • Added a project-scoped MCP gateway for saving, searching, and retrieving implementation handoffs securely.
    • Added macOS launchers and client configuration for supported development tools.
    • Added safeguards for destructive Git actions, unauthorized documentation changes, and direct main-branch commits.
  • Bug Fixes
    • Project-filtered searches now exclude memories with unknown or mismatched project ownership.
  • Documentation
    • Added guidance for gateway setup, scoped access, workflows, model selection, and memory handling.
  • Tests
    • Added coverage for gateway authentication, project isolation, MCP tools, and filtered search behavior.

ShintaroKawakami and others added 5 commits August 3, 2026 21:45
Co-authored-by: ShintaroKawakami <shintaro@example.com>
Co-authored-by: ShintaroKawakami <shintaro@example.com>
Co-authored-by: ShintaroKawakami <shintaro@example.com>
…修正 (#4)

* fix(security): クライアント別 MCP 設定を gitignore し追跡から外す

gbrain-recall 配布時、.gemini/settings.json に GCP の実キーが入ったまま追跡対象となり
GitHub push protection がブロックした(push は拒否され、漏えいは発生していない)。

- .gemini/settings.json / .cursor/mcp.json / .kimi-code/mcp.json を .gitignore へ追加
- 上記 3 ファイルを git rm --cached で追跡から除外(ローカル実体は保持)
- 実値の SSOT は ~/.config/agent-hub/.env、生成は sync が毎回ローカルで行う
  (.claude/rules/general/mcp-key-management.md)

他 PJ(jtt-cms 等)は既に同じ除外を持っており、本 PJ だけ欠けていた。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVy3m6uEuqSxwZWQJQHTye

* chore(harness): AGENT-HUB からハーネス配布(gbrain-recall ルール + 前処理 hook)

会話中に AI が G-Brain / agentmemory を読みに行く「リコール層」を全 PJ へ展開する配布差分。
正本は AGENT-HUB(registries/harness-manifest.yaml の global include)。本 PJ 側では手編集しない。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVy3m6uEuqSxwZWQJQHTye

---------

Co-authored-by: ShintaroKawakami <shintaro@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
生成 client surface の MCP キーが正本 client_name(codebase-context-engine /
agentmemory)へ統一される。あわせて配布物と憲法ファイルを最新へ追従。

生成は registered stable HUB(detached origin/main)から
scripts/sync-agents.py --project <pj> --project-root <clean linked worktree> を実行。手編集なし。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DNY3eUR8hiwQCDh4CWUAXm
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the rohitg00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ShintaroKawakami

Copy link
Copy Markdown
Author

誤って upstream リポジトリへ向けて作成しました。fork 側(ShintaroKawakami/agentmemory)で閉じ直します。お騒がせしました。

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a35e8a31-4566-4315-858f-069b217eb194

📥 Commits

Reviewing files that changed from the base of the PR and between d60652a and 760f333.

📒 Files selected for processing (206)
  • .agent-hub/harness-generation.json
  • .agent/rules/ai-model-selection.md
  • .agent/rules/branch-rule.md
  • .agent/rules/constructive-dissent.md
  • .agent/rules/gbrain-recall.md
  • .agent/rules/hooks-structure-rule.md
  • .agent/rules/latest-stack-context7.md
  • .agent/rules/mandate-registry.md
  • .agent/rules/mcp-key-management.md
  • .agent/rules/memory-lookups.md
  • .agent/rules/plan-approval-gate.md
  • .agent/rules/plan-commitment-tracking.md
  • .agent/rules/reference-over-hardcode.md
  • .agent/rules/response-style.md
  • .agent/rules/responsive-both-viewports.md
  • .agent/rules/settings-protection-coexistence.md
  • .agent/rules/sub-agent-scope-contract.md
  • .agent/rules/ui-stitch-mandatory.md
  • .agent/rules/visual-progress-map.md
  • .agent/rules/worktree-rule.md
  • .claude/rules/general/.agent-hub-materializations.json
  • .claude/rules/general/ai-model-selection.md
  • .claude/rules/general/branch-rule.md
  • .claude/rules/general/constructive-dissent.md
  • .claude/rules/general/gbrain-recall.md
  • .claude/rules/general/hooks-structure-rule.md
  • .claude/rules/general/latest-stack-context7.md
  • .claude/rules/general/mandate-registry.md
  • .claude/rules/general/mcp-key-management.md
  • .claude/rules/general/memory-lookups.md
  • .claude/rules/general/plan-approval-gate.md
  • .claude/rules/general/plan-commitment-tracking.md
  • .claude/rules/general/reference-over-hardcode.md
  • .claude/rules/general/response-style.md
  • .claude/rules/general/responsive-both-viewports.md
  • .claude/rules/general/settings-protection-coexistence.md
  • .claude/rules/general/sub-agent-scope-contract.md
  • .claude/rules/general/ui-stitch-mandatory.md
  • .claude/rules/general/visual-progress-map.md
  • .claude/rules/general/worktree-rule.md
  • .codex/config.toml
  • .codex/hooks.json
  • .codex/hooks/.hook-library-version
  • .codex/hooks/lib/code-quality-check.md
  • .codex/hooks/lib/hook-io.sh
  • .codex/hooks/lib/quality-check-common.sh
  • .codex/hooks/lib/storage-url-common.py
  • .codex/hooks/scripts/block-destructive-git.sh
  • .codex/hooks/scripts/block-destructive-git.test.sh
  • .codex/hooks/scripts/block-main-commit.sh
  • .codex/hooks/scripts/block-main-commit.test.sh
  • .codex/hooks/scripts/block-unauthorized-docs-file.sh
  • .codex/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .codex/hooks/scripts/freshness-gate.sh
  • .codex/hooks/scripts/gbrain-recall-preflight.sh
  • .codex/hooks/scripts/gbrain-recall-preflight.test.sh
  • .codex/hooks/scripts/handover-preflight.sh
  • .codex/hooks/scripts/handover-preflight.test.sh
  • .codex/hooks/scripts/post-merge-gate.sh
  • .codex/hooks/scripts/post-merge-gate.test.sh
  • .codex/hooks/scripts/pre-implementation-check.sh
  • .codex/hooks/scripts/stop-quality-check.sh
  • .codex/hooks/scripts/storage-url-pr-gate.sh
  • .codex/hooks/scripts/takeover-preflight.sh
  • .codex/hooks/scripts/takeover-preflight.test.sh
  • .codex/hooks/scripts/telemetry-lib.sh
  • .codex/sync-state.json
  • .cursor/hooks.json
  • .cursor/hooks/.hook-library-version
  • .cursor/hooks/lib/code-quality-check.md
  • .cursor/hooks/lib/hook-io.sh
  • .cursor/hooks/lib/quality-check-common.sh
  • .cursor/hooks/lib/storage-url-common.py
  • .cursor/hooks/scripts/block-destructive-git.sh
  • .cursor/hooks/scripts/block-destructive-git.test.sh
  • .cursor/hooks/scripts/block-main-commit.sh
  • .cursor/hooks/scripts/block-main-commit.test.sh
  • .cursor/hooks/scripts/block-skill-reverse-edit.sh
  • .cursor/hooks/scripts/block-skill-reverse-edit.test.sh
  • .cursor/hooks/scripts/block-unauthorized-docs-file.sh
  • .cursor/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .cursor/hooks/scripts/cursor-command-bridge.sh
  • .cursor/hooks/scripts/freshness-gate.sh
  • .cursor/hooks/scripts/gbrain-recall-preflight.sh
  • .cursor/hooks/scripts/gbrain-recall-preflight.test.sh
  • .cursor/hooks/scripts/handover-preflight.sh
  • .cursor/hooks/scripts/handover-preflight.test.sh
  • .cursor/hooks/scripts/post-merge-gate.sh
  • .cursor/hooks/scripts/post-merge-gate.test.sh
  • .cursor/hooks/scripts/pre-implementation-check.sh
  • .cursor/hooks/scripts/stop-quality-check.sh
  • .cursor/hooks/scripts/storage-url-pr-gate.sh
  • .cursor/hooks/scripts/subagent-quality-check.sh
  • .cursor/hooks/scripts/takeover-preflight.sh
  • .cursor/hooks/scripts/takeover-preflight.test.sh
  • .cursor/hooks/scripts/telemetry-lib.sh
  • .cursor/hooks/scripts/telemetry-log.sh
  • .cursor/hooks/scripts/telemetry-log.test.sh
  • .cursor/rules/10-runtime-sync.mdc
  • .cursor/rules/general/ai-model-selection.mdc
  • .cursor/rules/general/branch-rule.mdc
  • .cursor/rules/general/constructive-dissent.mdc
  • .cursor/rules/general/gbrain-recall.mdc
  • .cursor/rules/general/hooks-structure-rule.mdc
  • .cursor/rules/general/latest-stack-context7.mdc
  • .cursor/rules/general/mandate-registry.mdc
  • .cursor/rules/general/mcp-key-management.mdc
  • .cursor/rules/general/memory-lookups.mdc
  • .cursor/rules/general/plan-approval-gate.mdc
  • .cursor/rules/general/plan-commitment-tracking.mdc
  • .cursor/rules/general/reference-over-hardcode.mdc
  • .cursor/rules/general/response-style.mdc
  • .cursor/rules/general/responsive-both-viewports.mdc
  • .cursor/rules/general/settings-protection-coexistence.mdc
  • .cursor/rules/general/sub-agent-scope-contract.mdc
  • .cursor/rules/general/ui-stitch-mandatory.mdc
  • .cursor/rules/general/visual-progress-map.mdc
  • .cursor/rules/general/worktree-rule.mdc
  • .cursor/sync-state.json
  • .env.example
  • .gemini/hooks/.hook-library-version
  • .gemini/hooks/lib/code-quality-check.md
  • .gemini/hooks/lib/hook-io.sh
  • .gemini/hooks/lib/quality-check-common.sh
  • .gemini/hooks/lib/storage-url-common.py
  • .gemini/hooks/scripts/block-destructive-git.sh
  • .gemini/hooks/scripts/block-destructive-git.test.sh
  • .gemini/hooks/scripts/block-main-commit.sh
  • .gemini/hooks/scripts/block-main-commit.test.sh
  • .gemini/hooks/scripts/block-skill-reverse-edit.sh
  • .gemini/hooks/scripts/block-skill-reverse-edit.test.sh
  • .gemini/hooks/scripts/block-unauthorized-docs-file.sh
  • .gemini/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .gemini/hooks/scripts/freshness-gate.sh
  • .gemini/hooks/scripts/gbrain-recall-preflight.sh
  • .gemini/hooks/scripts/gbrain-recall-preflight.test.sh
  • .gemini/hooks/scripts/gemini-hook-bridge.py
  • .gemini/hooks/scripts/handover-preflight.sh
  • .gemini/hooks/scripts/handover-preflight.test.sh
  • .gemini/hooks/scripts/post-merge-gate.sh
  • .gemini/hooks/scripts/post-merge-gate.test.sh
  • .gemini/hooks/scripts/pre-implementation-check.sh
  • .gemini/hooks/scripts/stop-quality-check.sh
  • .gemini/hooks/scripts/storage-url-pr-gate.sh
  • .gemini/hooks/scripts/subagent-quality-check.sh
  • .gemini/hooks/scripts/takeover-preflight.sh
  • .gemini/hooks/scripts/takeover-preflight.test.sh
  • .gemini/hooks/scripts/telemetry-lib.sh
  • .gemini/hooks/scripts/telemetry-log.sh
  • .gemini/hooks/scripts/telemetry-log.test.sh
  • .gemini/sync-state.json
  • .gitignore
  • .kimi-code/AGENTS.md
  • .kimi-code/hooks/.hook-library-version
  • .kimi-code/hooks/kimi-hook-bridge.py
  • .kimi-code/hooks/lib/code-quality-check.md
  • .kimi-code/hooks/lib/hook-io.sh
  • .kimi-code/hooks/lib/quality-check-common.sh
  • .kimi-code/hooks/lib/storage-url-common.py
  • .kimi-code/hooks/managed-hooks.json
  • .kimi-code/hooks/scripts/block-destructive-git.sh
  • .kimi-code/hooks/scripts/block-destructive-git.test.sh
  • .kimi-code/hooks/scripts/block-main-commit.sh
  • .kimi-code/hooks/scripts/block-main-commit.test.sh
  • .kimi-code/hooks/scripts/block-skill-reverse-edit.sh
  • .kimi-code/hooks/scripts/block-skill-reverse-edit.test.sh
  • .kimi-code/hooks/scripts/block-unauthorized-docs-file.sh
  • .kimi-code/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .kimi-code/hooks/scripts/freshness-gate.sh
  • .kimi-code/hooks/scripts/gbrain-recall-preflight.sh
  • .kimi-code/hooks/scripts/gbrain-recall-preflight.test.sh
  • .kimi-code/hooks/scripts/handover-preflight.sh
  • .kimi-code/hooks/scripts/handover-preflight.test.sh
  • .kimi-code/hooks/scripts/post-merge-gate.sh
  • .kimi-code/hooks/scripts/post-merge-gate.test.sh
  • .kimi-code/hooks/scripts/pre-implementation-check.sh
  • .kimi-code/hooks/scripts/stop-quality-check.sh
  • .kimi-code/hooks/scripts/storage-url-pr-gate.sh
  • .kimi-code/hooks/scripts/subagent-quality-check.sh
  • .kimi-code/hooks/scripts/takeover-preflight.sh
  • .kimi-code/hooks/scripts/takeover-preflight.test.sh
  • .kimi-code/hooks/scripts/telemetry-lib.sh
  • .kimi-code/hooks/scripts/telemetry-log.sh
  • .kimi-code/hooks/scripts/telemetry-log.test.sh
  • .kimi-code/sync-state.json
  • .opencode/plugins/runtime-sync.js
  • .opencode/sync-state.json
  • AGENTS.md
  • CLAUDE.md
  • GEMINI.md
  • README.md
  • deploy/macos/run-jtt-core.sh
  • deploy/macos/run-jtt-gateway.sh
  • docs/jtt-scoped-gateway.md
  • opencode.json
  • package.json
  • src/functions/search.ts
  • src/index.ts
  • src/jtt/scoped-gateway.ts
  • src/state/memory-utils.ts
  • src/types.ts
  • test/jtt-scoped-gateway-http.test.ts
  • test/jtt-scoped-gateway.test.ts
  • test/search.test.ts
  • tsdown.config.ts
  • tui.json

📝 Walkthrough

Walkthrough

This change adds a project-scoped MCP gateway, stricter project filtering, generated configurations for multiple AI runtimes, shared lifecycle hooks, extensive policy rules, synchronization manifests, launch scripts, and related tests and documentation.

Changes

AgentMemory runtime and harness

Layer / File(s) Summary
Scoped gateway and project isolation
src/jtt/scoped-gateway.ts, src/functions/search.ts, src/types.ts, src/state/memory-utils.ts, test/*gateway*, test/search.test.ts
Adds authenticated, project-scoped MCP tools, REST-backed memory operations, scoped handoff retrieval, stricter project filtering, and project metadata propagation.
Runtime and client configuration
.agent-hub/*, .codex/*, .cursor/*, .gemini/*, .kimi-code/*, .opencode/*, opencode.json, package.json
Adds generated harness manifests, MCP configurations, runtime bridges, synchronization state, hook registrations, and the gateway build/start configuration.
Policy and project guidance
.agent/rules/*, .claude/rules/general/*, .cursor/rules/*, AGENTS.md, CLAUDE.md, GEMINI.md, .kimi-code/AGENTS.md
Adds model, branch, worktree, memory, planning, MCP key, UI, response, delegation, and visualization rules across runtime surfaces.
Lifecycle hooks and validation
.codex/hooks/*, .cursor/hooks/*, .gemini/hooks/*, .kimi-code/hooks/*
Adds shared input/output helpers, quality gates, destructive-Git and main-branch protection, documentation guards, freshness checks, recall and handover preflights, telemetry, and Storage URL validation.
Deployment and reference updates
deploy/macos/*, docs/jtt-scoped-gateway.md, README.md, .env.example, .gitignore, tui.json
Adds macOS launchers and gateway documentation, updates endpoint counts, adjusts ignored generated configuration, and adds OpenCode TUI settings.

Estimated code review effort: 5 (Critical) | ~120 minutes

Possibly related PRs

Suggested reviewers: rohitg00

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@ShintaroKawakami
ShintaroKawakami deleted the chore/mcp-client-name-1493 branch August 5, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant