feat: add Gemini CLI support#28
Open
huytunguyenn wants to merge 1 commit intofeatures/support-copliot-clifrom
Open
feat: add Gemini CLI support#28huytunguyenn wants to merge 1 commit intofeatures/support-copliot-clifrom
huytunguyenn wants to merge 1 commit intofeatures/support-copliot-clifrom
Conversation
Add gemini-extension.json at repo root so the Kobiton plugin can be installed via `gemini extensions install` on Gemini CLI. The manifest declares: - inline mcpServers.kobiton with httpUrl pointing at the prod endpoint. No oauth block needed: Gemini CLI's default `authProviderType: "dynamic_discovery"` follows the same RFC 9728 `.well-known/oauth-protected-resource` flow that Kobiton MCP server already serves. - contextFileName: "AGENTS.md" — reuse the existing instructions file already read by Copilot CLI; no separate GEMINI.md needed. - name "kobiton-automate" (Gemini convention: lowercase + dashes). Skills are auto-discovered from skills/<name>/SKILL.md by Gemini CLI from the default location, so no manifest reference is needed. Also: register gemini-extension.json in validate.js JSON-validity loop and update validate.test.js fixtures. Phase 1 of multi-phase Gemini support. Phase 2 (local end-to-end test with `gemini extensions link .`) and Phase 3 (README updates for Gemini CLI users) follow in later commits or PRs. Signed-off-by: HuyTu <dragon10x0408@gmail.com>
|
Phase 1 reads cleanly. Particularly nice that dynamic-discovery OAuth lets the Gemini install flow piggyback off Kobiton's existing RFC 9728 Question on the manifest: skills auto-discover from |
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
Add Gemini CLI extension support so the Kobiton plugin can be installed via
gemini extensions installalongside the existing Claude Code and GitHub Copilot CLI install paths.Extension manifest
Add
gemini-extension.jsonat repo root with:mcpServers.kobiton.httpUrlpointing at the prod endpointcontextFileName: "AGENTS.md"to reuse the existing instructions file (also read by Copilot CLI) — no separateGEMINI.mdneededkobiton-automate(Gemini convention: lowercase + dashes)oauthblock — Gemini CLI's defaultauthProviderType: "dynamic_discovery"follows the same RFC 9728.well-known/oauth-protected-resourceflow that Kobiton MCP server already implements.Register
gemini-extension.jsoninscripts/validate.jsJSON-validity loop; updatescripts/validate.test.jsfixtures.Skills (
skills/<name>/SKILL.md) are auto-discovered by Gemini CLI from the default location — no manifest reference needed.Follow-up commits
gemini extensions link .: verify install, OAuth flow via dynamic discovery, tool calls.Server-side: zero changes required
Kobiton MCP server already implements OAuth 2.1 PKCE with dynamic client registration and
.well-knowndiscovery. Gemini CLI uses the same spec, so no MCP server changes are required.Test plan
pnpm run validatepasses (now also checksgemini-extension.json)pnpm testpasses (30 tests across 3 files)gemini extensions link .+/mcp auth kobiton+ tool call end-to-end (after Gemini CLI installation)OAUTH_ALLOWED_REDIRECT_URISallowlist (likely yes — both use loopback patterns)