
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
統合AIアシスタント用のModel Context Protocol (MCP) サーバー。Qwen、Gemini、OpenCode CLIツールへの統一アクセスを提供します。
既存のPython MCP実装の実証済みパターンを採用:
MCP Client → AI CLI Hub → External CLI Commands
│ │ │
│ │ ├─ qwen -p "prompt"
│ │ ├─ gemini -p "prompt"
│ │ └─ opencode -p "prompt"
│ │
│ ├─ OAuth Manager (環境変数経由)
│ ├─ Command Builder
│ └─ Error Handling
エンジン | 機能 | 認証方式 |
---|---|---|
Qwen | コード生成、チャット、ファイル分析 | OAuth 2.0 + API Key |
Gemini | 高度推論、文書分析、グラウンディング | OAuth 2.0 + API Key |
OpenCode | マルチプロバイダー統合、フォールバック | OAuth 2.0 |
# 初期化 (設定ファイルとディレクトリ作成)
npx ai-cli-hub init
# MCPサーバー起動
npx ai-cli-hub start
# デモ環境セットアップ
npx ai-cli-hub demo
# グローバルインストール
npm install -g ai-cli-hub
# または開発用ローカルインストール
git clone https://github.com/your-username/ai-cli-hub.git
cd ai-cli-hub
npm install
npm run build
各AIエンジンのCLIツールをインストール:
# Qwen CLI
pip install qwen-cli
# Gemini CLI
pip install google-generativeai-cli
# OpenCode CLI
npm install -g opencode-cli
# OAuth認証
npm run auth:setup
# またはAPI Keyを設定
export QWEN_API_KEY="your-api-key"
export GEMINI_API_KEY="your-api-key"
# 開発モード
npm run dev
# プロダクション
npm run start
claude_desktop_config.json
に追加:
{
"mcpServers": {
"ai-cli-hub": {
"command": "npx",
"args": ["ai-cli-hub", "start"],
"env": {
"NODE_ENV": "production"
}
}
}
}
{
"mcpServers": {
"ai-cli-hub": {
"command": "ai-cli-hub",
"args": ["start"],
"env": {
"NODE_ENV": "production"
}
}
}
}
{
"mcpServers": {
"ai-cli-hub": {
"command": "node",
"args": ["/path/to/ai-cli-hub/dist/index.js"],
"env": {
"NODE_ENV": "development"
}
}
}
}
qwen_chat
: AIチャット機能qwen_analyze_file
: ファイル分析qwen_change_file
: ファイル変更qwen_generate_code
: コード生成gemini_chat
: 高度推論チャットgemini_analyze_document
: 文書分析gemini_code_review
: コードレビューgemini_grounding_search
: グラウンディング検索opencode_chat
: マルチプロバイダーチャットopencode_generate_code
: コード生成opencode_explain_code
: コード説明# モックAIコマンドの作成
demo/mock-ai-commands.sh
# モック環境のセットアップ
source demo/setup-mock-env.sh
# テスト実行
npm run test
# 単体テスト
node test/external-command.test.js
# 統合テスト
node test/mcp-integration.test.js
{
"engines": {
"qwen": {
"enabled": true,
"useOAuth": true,
"model": "qwen3-coder-plus",
"timeout": 30000
},
"gemini": {
"enabled": true,
"useOAuth": true,
"model": "gemini-2.5-pro",
"grounding": true
},
"opencode": {
"enabled": true,
"useOAuth": true,
"provider": "anthropic"
}
},
"features": {
"fileOperations": true,
"gitIntegration": true
},
"server": {
"logLevel": "info",
"timeout": 120000
}
}
Before: TODO実装(未動作)
After: 外部コマンド統合(完全動作)
git checkout -b feature/amazing-feature
git commit -am 'Add amazing feature'
git push origin feature/amazing-feature
MIT License - 詳細は LICENSE ファイルを参照
FAQs
Unified MCP Server for AI CLI Tools (Gemini, Qwen, OpenCode)
We found that ai-cli-hub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.