Skip to content

Agent CLI integration: mcp-config + agents-md generators (WS2, WS4)#6

Merged
Delqhi merged 1 commit into
mainfrom
feat/agent-cli-integration
May 30, 2026
Merged

Agent CLI integration: mcp-config + agents-md generators (WS2, WS4)#6
Delqhi merged 1 commit into
mainfrom
feat/agent-cli-integration

Conversation

@Delqhi
Copy link
Copy Markdown
Contributor

@Delqhi Delqhi commented May 30, 2026

Implements the two open workstreams from docs/plans/agent-cli-integration.md.

WS2 — sin mcp-config <client> (closes #2)

Generates ready-to-use MCP client config for the sin serve server:

  • opencode → JSON (mcp.sin, type local)
  • codex → TOML ([mcp_servers.sin])
  • hermes → YAML (mcp_servers.sin)
  • --write merges idempotently into the client's config file (default paths per client, --path override).

WS4 — sin agents-md (closes #4)

Creates or updates AGENTS.md with an idempotent managed block (<!-- sin:start --> ... <!-- sin:end -->) documenting the available SIN MCP tools. Re-running reports "no change".

Tests

tests/test_agent_integration.py — all clients, idempotency, merge-into-existing config, unknown-client error. Full suite: 16 passed.

Implements WS2 (#2) and WS4 (#4) of the agent CLI integration plan.

- mcp_config.py: generate MCP client config for opencode (JSON),
  codex (TOML), and hermes (YAML); --write merges idempotently into
  the client's config file with sensible default paths.
- agents_md.py: create/update AGENTS.md with an idempotent
  <!-- sin:start/end --> managed block describing SIN tool usage.
- Wire both as 'sin mcp-config <client>' and 'sin agents-md' commands.
- Add tests/test_agent_integration.py (covers all clients, idempotency,
  merge-into-existing, unknown-client error).

Closes #2
Closes #4
@Delqhi Delqhi merged commit ceb9ba2 into main May 30, 2026
@Delqhi Delqhi deleted the feat/agent-cli-integration branch May 30, 2026 07:51
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.

WS4: sin agents-md Generator (AGENTS.md fuer opencode/codex) WS2: sin mcp-config <client> Generator (opencode|codex|hermes)

1 participant