b

basercms-mcp

@ecatchup/basercms-mcp
0 Stars 173 次浏览 ecatchup 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "basercms-mcp": {
      "args": [
        "dist/index.js"
      ],
      "command": "node",
      "cwd": "{}",
      "disabled": false,
      "timeout": 60,
      "type": "stdio"
    }
  }
}

服务介绍

basercms-mcp

baserCMS操作Model Context Protocol (MCP) 実装Cline GitHub Copilot利用

Installation

npm install @ecatchup/basercms-mcp

.env 作成必要環境変数設定

cp .env.example .env
# .env開必要値設定

必要環境変数:

  • API_BASE_URL: baserCMS APIURL
  • API_USER: baserCMS API名
  • API_PASSWORD: baserCMS API

GitHub Copilot場合

MCP設定設定記載

~/Library/Application Support/Code/User/mcp.json
{
  "servers": {
    "basercms-mcp": {
      "type": "stdio",
      "command": "node",
      "args": [
        "dist/index.js"
      ]
    }
  }
}

Cline場合

MCP設定設定記載

# MacOS場合
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "basercms-mcp": {
      "disabled": false,
      "timeout": 60,
      "type": "stdio",
      "command": "node",
      "args": [
        "dist/index.js"
      ],
      "cwd": "{}"
    }
  }
}

Claude Desktop場合

MCP設定設定記載
開発内利用環境変数記載

# MacOS場合
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "basercms-mcp-for-claude": {
      "command": "node",
      "args": [
        "{basercms-mcp設置}/dist/index.js"
      ],
      "cwd": "{basercms-mcp設置}",
      "env": {
        "API_BASE_URL": "{操作対象URL例https://localhost/",
        "API_USER": "{baserCMS名}",
        "API_PASSWORD": "{baserCMS}"
      }
    }
  }
}

Usage

baserCMS MCPbaserCMSWeb API通様機能提供Cline GitHub Copilot自然言語操作

使用例

# 記事作成
baserCMSNewsAI活用新時代記事作成

# 記事検索
AI記事検索

# 家具情報作成
新家具情報作定義任
 事前有効化

# 作成
家具情報新商品追加

機能bc-blog

記事Blog Posts

  • getBlogPost - 指定ID記事取得
  • getBlogPosts - 記事一覧取得検索対応
  • addBlogPost - 記事追加
  • editBlogPost - 記事編集
  • deleteBlogPost - 記事削除

Blog Categories

  • getBlogCategory - 指定ID取得
  • getBlogCategories - 一覧取得
  • addBlogCategory - 追加
  • editBlogCategory - 編集
  • deleteBlogCategory - 削除

Blog Contents

  • getBlogContent - 指定ID取得
  • getBlogContents - 一覧取得
  • addBlogContent - 追加
  • editBlogContent - 編集
  • deleteBlogContent - 削除

Blog Tags

  • getBlogTag - 指定ID取得
  • getBlogTags - 一覧取得
  • addBlogTag - 追加
  • editBlogTag - 編集
  • deleteBlogTag - 削除

機能bc-custom-content

Custom Tables

  • getCustomTable - 指定ID取得
  • getCustomTables - 一覧取得
  • addCustomTable - 追加関連付
  • editCustomTable - 編集
  • deleteCustomTable - 削除

Custom Fields

  • getCustomField - 指定ID取得
  • getCustomFields - 一覧取得
  • getIndexCustomFields - 用取得
  • addCustomField - 追加
  • editCustomField - 編集
  • deleteCustomField - 削除

Custom Entries

  • getCustomEntry - 指定ID取得
  • getCustomEntries - 一覧取得
  • addCustomEntry - 追加対応
  • editCustomEntry - 編集
  • deleteCustomEntry - 削除

Custom Contents

  • getCustomContent - 指定ID取得
  • getCustomContents - 一覧取得
  • addCustomContent - 追加
  • editCustomContent - 編集
  • deleteCustomContent - 削除

Custom Links

  • getCustomLink - 指定ID取得
  • getCustomLinks - 一覧取得
  • addCustomLink - 追加
  • editCustomLink - 編集
  • deleteCustomLink - 削除

機能system

情報Server Info

  • serverInfo - 環境情報取得

Debugging

.vscode/launch.json 以下設定

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug ts-node",
      "runtimeArgs": [
        "-r",
        "ts-node/register"
      ],
      "program": "${workspaceFolder}/src/index.ts",
      "cwd": "${workspaceFolder}",
      "env": {
        "TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json"
      },
      "skipFiles": [
        "<node_internals>/**"
      ],
      "args": [
        "${workspaceFolder}/request.json"
      ]
    }
  ]
}

request.json 作成以下記述

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "{名}",
    "arguments": {
      "引数1": "引数1値",
      "引数2": "引数2値",
    }
  }
}

設定実行

相关 MCP 服务