1. Conduid
  2. Blockchain
  3. Claude For Agents
MCP server · Blockchain

Claude For Agents

Use Claude Code as a persistent, permission-controlled worker from any MCP-compatible agent

34Low

Scored a month ago · breakdown

About Claude For Agents

Claude For Agents is an MCP server published by 7D-codes in the Blockchain category: use Claude Code as a persistent, permission-controlled worker from any MCP-compatible agent.

The repository has 2 stars and 0 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/7D-codes/claude-for-agents

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

claude_cancelStop a running background worker and its subprocess tree.

Parameters not published.

claude_continueResume the exact stored Claude session, optionally with a model override.

Parameters not published.

claude_delegateStart a Claude Code task with project, model, policy, turn-budget, and background options.

Parameters not published.

claude_reviewRun a constrained, read-only review.

Parameters not published.

claude_statusList background jobs or inspect one job's state and result.

Parameters not published.

Ask AI

✦

Ask AI about Claude For Agents

Powered by Claude · Grounded in docs

I know everything about Claude For Agents. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.

1 check has not been run yet.

README

Claude for Agents

Use the authenticated Claude Code CLI as a persistent, permission-controlled worker from any stdio MCP-compatible agent.

Claude for Agents is a local Node.js MCP server. A supervisor such as Hermes or Codex can delegate focused implementation or review work, receive structured telemetry, and continue the exact Claude session later.

Architecture

You → MCP-compatible supervisor → Claude for Agents → Claude Code worker
                              ← result / session ID ←

The bridge uses Claude Code print mode (claude -p) for autonomous worker calls while the host agent remains the supervisor.

Tools

Tool Purpose
claude_delegate Start a Claude Code task with project, model, policy, turn-budget, and background options.
claude_continue Resume the exact stored Claude session, optionally with a model override.
claude_status List background jobs or inspect one job's state and result.
claude_cancel Stop a running background worker and its subprocess tree.
claude_review Run a constrained, read-only review.

Safety model

  • Work is restricted to an approved project root, defaulting to ~/Projects.
  • review is immutable across continuation and uses an inspection-only tool allowlist.
  • code uses an explicit editing/testing allowlist; the bridge never uses --dangerously-skip-permissions.
  • Worker prompts travel over stdin rather than command-line arguments.
  • Sessions and job history persist in an owner-only (0600) state file.
  • Jobs active during a bridge restart become interrupted; they are never falsely resumed.
  • Cancellation targets the full subprocess group with bounded SIGTERM → SIGKILL escalation.
  • The official Claude Code CLI must already be installed and authenticated locally, either through normal login or CLAUDE_CODE_OAUTH_TOKEN.

Install with an agent skill

The repository includes a portable Agent Skill that can install, configure, verify, operate, and troubleshoot the bridge:

npx skills add 7D-codes/claude-for-agents --skill claude-for-agents

The skill supports Hermes and Codex directly and provides the stdio configuration contract for other MCP hosts. The skill is procedural guidance; the bridge runtime remains source-hosted in this GitHub repository and is not published as an npm package.

Install from source

Requirements:

  • Node.js 20+
  • Git
  • Official Claude Code CLI, authenticated normally or with a subscription token
  • An MCP host that supports local stdio servers

Authentication

Normal Claude Code authentication is not automatic: install the official CLI and run claude auth login before using the bridge. That login may still intermittently report not authorized or logged out when an MCP host runs in the background on macOS. In particular, a launchd-started host may not be able to access or refresh the same Keychain-backed Claude session that works in Terminal. This is a Claude Code process-context/Keychain issue, not a separate account or login inside Claude for Agents.

For reliable background use, create a Claude subscription token:

claude setup-token

Securely provide the resulting value to the MCP server as CLAUDE_CODE_OAUTH_TOKEN, restart the MCP host, and retry the delegation. This uses your Claude subscription; it is not an ANTHROPIC_API_KEY and does not switch the bridge to separate API billing.

For Hermes, keep the token in the secret file ~/.hermes/.env:

CLAUDE_CODE_OAUTH_TOKEN=<paste the setup token here>

Then reference it from the MCP server environment without embedding the token in config.yaml:

mcp_servers:
  claude_for_agents:
    command: "/absolute/path/to/node"
    args: ["/absolute/path/to/claude-for-agents/server.js"]
    env:
      CLAUDE_CODE_OAUTH_TOKEN: "${CLAUDE_CODE_OAUTH_TOKEN}"

Restart Hermes after adding the secret. Never commit the token or paste it into prompts, logs, screenshots, issues, or support messages.

git clone https://github.com/7D-codes/claude-for-agents.git ~/Projects/claude-for-agents
cd ~/Projects/claude-for-agents
npm ci
npm test
npm run smoke

Hermes

cd ~/Projects/claude-for-agents
hermes mcp add claude_for_agents \
  --command "$(command -v node)" \
  --connect-timeout 20 \
  --args "$PWD/server.js"
hermes mcp test claude_for_agents

Start a new Hermes session after registration so the five tools are loaded.

Codex CLI

cd ~/Projects/claude-for-agents
codex mcp add claude_for_agents -- "$(command -v node)" "$PWD/server.js"
codex mcp get claude_for_agents

Restart Codex after registration. Ask it to list the tools exposed by claude_for_agents, then begin with a read-only claude_review or a narrowly scoped claude_delegate call.

Other MCP hosts

Register this stdio server using absolute paths:

{
  "command": "/absolute/path/to/node",
  "args": ["/absolute/path/to/claude-for-agents/server.js"]
}

Do not place the command and arguments into one shell string unless the host explicitly requires that format.

Configuration

Variable Default Purpose
CLAUDE_BIN claude Claude Code executable.
CLAUDE_CODE_OAUTH_TOKEN unset Claude subscription token for reliable background/headless authentication.
CLAUDE_FOR_AGENTS_PROJECT_ROOT ~/Projects Approved root containing worker projects.
CLAUDE_FOR_AGENTS_STATE ~/.claude-for-agents/state.json Persistent sessions and job history.

The legacy CLAUDE_FOR_HERMES_PROJECT_ROOT and CLAUDE_FOR_HERMES_STATE names remain accepted. If the new default state file does not exist but ~/.claude-for-hermes/state.json does, the bridge reuses the legacy file automatically.

Environment variables must be configured on the MCP subprocess through the host, not merely exported in an unrelated shell.

Example requests

Ask Claude to implement the API validation work in ~/Projects/my-app, run the relevant tests, and report the changed files.

Ask Claude to inspect the authentication module using the review policy and identify security risks without editing files.

Continue Claude session <session-id>: address the review findings and rerun the focused tests.

Development

npm test
npm run smoke
node --check server.js
node --check src/core.js
node --check src/config.js
node --check src/runner.js
node --check src/state.js
node --check src/workspace.js

The suite covers exact-session continuation, immutable review restrictions, persistent jobs, process-group cancellation, stdin transport, structured output, workspace containment, configuration migration, review settings, and authentication failures.

License

MIT

README fetched from the repository 4 days ago. The original is authoritative.

Questions

About Claude For Agents

How do I install Claude For Agents?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Claude For Agents safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 5 of the 5 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Claude For Agents still maintained?

Yes — the last commit was 2 months ago. The repository has 2 stars and 0 forks.