Skip to content

feat(agents): wire MCP servers + skills into the Gemini and OpenClaw CLI agents#34

Draft
pradeepvrd wants to merge 1 commit into
refactor/entrypointfrom
refactor/gemini-capabilities
Draft

feat(agents): wire MCP servers + skills into the Gemini and OpenClaw CLI agents#34
pradeepvrd wants to merge 1 commit into
refactor/entrypointfrom
refactor/gemini-capabilities

Conversation

@pradeepvrd

@pradeepvrd pradeepvrd commented Jun 21, 2026

Copy link
Copy Markdown
Owner

The Gemini and OpenClaw CLI agents declared rules/MCP/skills capabilities but only pre-approved tool names and delivered the operator brief — MCP servers were never launched and skills were ignored. This wires both agents to actually deliver MCP + skills through each binary's native, per-run channels.

Behavior changes

  • Gemini: command-bearing MCP bindings are written as mcpServers in a per-run <cwd>/.gemini/settings.json, and skills are materialized to <cwd>/.gemini/skills/<name>/SKILL.md with skills.enabled; the binary then spawns the servers and loads the skills.
  • OpenClaw: MCP bindings are written as mcp.servers in a per-run isolated config (OPENCLAW_CONFIG_PATH) and skills under <OPENCLAW_STATE_DIR>/skills/, both per-run so nothing touches ~/.openclaw; the embedded oc agent --local consumes them. The model API key is threaded into the provider env var, and the agent id defaults to oc's built-in main.
  • Both agents now assign mcp_servers + skills, so they structurally satisfy SupportsMcp / SupportsSkills; granting those bindings used to be a silent no-op.

@pradeepvrd pradeepvrd marked this pull request as draft June 21, 2026 03:09
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from c820ad0 to 58d521b Compare June 22, 2026 01:53
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from 7cd085e to cbd1afd Compare June 22, 2026 01:53
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from 58d521b to c9553ba Compare June 23, 2026 05:04
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from cbd1afd to 940c4ea Compare June 23, 2026 05:04
@pradeepvrd pradeepvrd changed the title feat(agents): wire MCP servers + skills into the Gemini CLI agent feat(agents): wire MCP servers + skills into the Gemini and OpenClaw CLI agents Jun 23, 2026
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from c9553ba to 0e2995e Compare June 23, 2026 06:09
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from b66af88 to 030b34c Compare June 23, 2026 06:09
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from 0e2995e to a01e4c7 Compare June 23, 2026 06:37
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from 030b34c to 5d8e551 Compare June 23, 2026 06:37
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from a01e4c7 to fec6322 Compare June 23, 2026 07:46
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from 5d8e551 to 6b298b2 Compare June 23, 2026 07:53
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from fec6322 to 104e20a Compare June 23, 2026 08:22
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from 6b298b2 to d4fbeae Compare June 23, 2026 08:22
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from 104e20a to 6b67eed Compare June 23, 2026 18:26
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from d4fbeae to d0a67cd Compare June 23, 2026 18:30
…CLI agents

The Gemini and OpenClaw CLI agents declared rules/MCP/skills capabilities but only pre-approved tool names and delivered the operator brief — MCP servers were never launched and skills were ignored. This wires both agents to actually deliver MCP + skills through each binary's native, per-run channels.

**Behavior changes**
- Gemini: command-bearing MCP bindings are written as `mcpServers` in a per-run `<cwd>/.gemini/settings.json`, and skills are materialized to `<cwd>/.gemini/skills/<name>/SKILL.md` with `skills.enabled`; the binary then spawns the servers and loads the skills.
- OpenClaw: MCP bindings are written as `mcp.servers` in a per-run isolated config (`OPENCLAW_CONFIG_PATH`) and skills under `<OPENCLAW_STATE_DIR>/skills/`, both per-run so nothing touches `~/.openclaw`; the embedded `oc agent --local` consumes them. The model API key is threaded into the provider env var, and the agent id defaults to `oc`'s built-in `main`.
- Both agents now assign `mcp_servers` + `skills`, so they structurally satisfy `SupportsMcp` / `SupportsSkills`; granting those bindings used to be a silent no-op.
@pradeepvrd pradeepvrd force-pushed the refactor/entrypoint branch from 6b67eed to 8fdeb40 Compare June 23, 2026 18:35
@pradeepvrd pradeepvrd force-pushed the refactor/gemini-capabilities branch from d0a67cd to 9b39991 Compare June 23, 2026 18:35
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