Add Han bridge for Google Antigravity IDE via MCP server#76
Open
Add Han bridge for Google Antigravity IDE via MCP server#76
Conversation
Add MCP server bridge for Google Antigravity that exposes Han's plugin ecosystem (400+ skills, 25 disciplines, validation hooks) as tools the agent can call. Unlike the OpenCode bridge which hooks into JS events, the Antigravity bridge uses MCP since Antigravity lacks lifecycle hooks. Bridge provides five MCP tools: - han_skills: browse/load coding skills on demand - han_discipline: activate specialized agent personas - han_validate: run validation hooks (per-file or project-wide) - han_sync: copy skills/rules to .agent/ for native discovery - han_context: get session state (time, active discipline, stats) Also includes marketplace entries, plugin aliases, website docs, and nav updates for the new bridge. https://claude.ai/code/session_01QBTqGSaTzcQFrqsV76ARTD
|
🚅 Deployed to the han-pr-76 environment in han-team-platform 4 services not affected by this PR
|
Comment on lines
+15
to
+23
| import { | ||
| readFileSync, | ||
| writeFileSync, | ||
| mkdirSync, | ||
| existsSync, | ||
| readdirSync, | ||
| rmSync, | ||
| copyFileSync, | ||
| } from "node:fs" |
| import { matchPostToolUseHooks, matchStopHooks } from "./matcher" | ||
| import { executeHooksParallel } from "./executor" | ||
| import { invalidateFile } from "./cache" | ||
| import { formatValidationResults, formatStopResults } from "./formatter" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Han bridge plugin that integrates Han's full plugin ecosystem (400+ skills, 25 disciplines, validation hooks) with Google Antigravity IDE via MCP server. Since Antigravity lacks lifecycle hooks like Claude Code/OpenCode, the bridge exposes Han capabilities as callable MCP tools instead.
Changes
New bridge plugin (
plugins/bridges/antigravity/) with complete MCP server implementation:index.ts- Main MCP server entry point with tool definitions for skills, disciplines, validation, sync, and contextdiscovery.ts- Plugin and hook discovery from Claude settings and marketplaceskills.ts- Skill discovery and loading from plugin directoriesdisciplines.ts- Agent discipline discovery and context buildingexecutor.ts- Promise-based hook execution with parallel supportmatcher.ts- Hook matching logic (tool filters, file filters, directory requirements)formatter.ts- Structured result formatting for MCP responsessync.ts- Sync skills to.agent/skills/and generate.agent/rules/han-guidelines.mdcontext.ts- Guidelines and prompt context generationcache.ts- Content-hash based hook execution cachingevents.ts- JSONL event logging for Browse UI integrationtypes.ts- Shared type definitionsMCP Tools exposed:
han_skills- Browse and load 400+ coding skillshan_discipline- Activate specialized agent personashan_validate- Run validation hooks on-demand (per-file or project-wide)han_sync- Sync skills/rules to.agent/for native discoveryhan_context- Get session context (time, active discipline, stats)Documentation:
README.md- Bridge architecture and usage guidewebsite/content/docs/installation/antigravity.md- Setup and tool referencewebsite/content/docs/installation/index.mdto mention Antigravity supportIntegration:
marketplace.json)packages/han/lib/plugin-aliases.tswebsite/content/docs/_nav.jsonType of Change
Plugin Changes
Plugin category:
Validation:
Testing
Checklist
https://claude.ai/code/session_01QBTqGSaTzcQFrqsV76ARTD