@zjshen/opencli

general MCP Server

An open-source, model-agnostic AI coding agent CLI — works with Google Gemini, Anthropic Claude, and any OpenAI-compatible provider

VerifiedInstall Ready
generalgeneralgcp
15 views2 stars0 forksv0.1.3MIT

Why This Matters

Discovered via github-topic:mcp and last synced 3mo ago.

VerifiedInstall Ready
Source
github-topic:mcp
Stars
2
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

npx -y @modelcontextprotocol/server-filesystem /tmp

2. Add to claude_desktop_config.json

{
  "mcpServers": {
    "-zjshen-opencli": {
      "command": "npx",
      "args": [
        "@zjshen/opencli"
      ]
    }
  }
}

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

26
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (26)

read

Read file contents with optional line range

anthropicApiKey

—

edit

Exact string find-and-replace in a file

write

Create or overwrite a file

Skill

Description

Tool

Description

OPENCLI_SYSTEM_MD

Path to a Markdown file that overrides the default system instruction (for prompt hill-climbing)

bash

Run shell commands (blocks destructive patterns)

apiKey

—

OPENCLI_SANDBOX

Sandbox mode override: `auto` \

Variable

Description

off

No sandbox

OpenCLI

Claude Code

Option

Default

temperature

`0.7`

OPENCLI_MAX_TOOL_OUTPUT

Max chars before bash/grep/glob/web_fetch output is middle-truncated (default: 20 000)

maxTokens

`8192`

Mode

Behaviour

historySize

`50`

model

`gemini-3.1-flash-lite-preview`

GEMINI_API_KEY

Gemini API key

ANTHROPIC_API_KEY

Anthropic API key

OPENCLI_MODEL

Model override (beats `--model` and config)

strict

Real isolation: no external network, writes only to CWD + tmp, reads restricted to CWD + system binaries.

glob

Find files by pattern (e.g. `**/*.ts`)

grep

Regex search across file contents