Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"name": "hello-world",
"source": "./plugins/hello-world",
"description": "シンプルなHello Worldプラグインのサンプル"
},
{
"name": "devio-mcp",
"source": "./plugins/devio-mcp",
"description": "DevIO (Contentful) 記事執筆のAI補助MCPサーバ"
}
]
}
10 changes: 10 additions & 0 deletions plugins/devio-mcp/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "devio-mcp",
"description": "DevIO (Contentful) 記事執筆のAI補助MCPサーバ",
"version": "0.1.0",
"author": {
"name": "Classmethod",
"url": "https://classmethod.jp"
},
"keywords": ["devio", "contentful", "mcp", "articles"]
}
16 changes: 16 additions & 0 deletions plugins/devio-mcp/.mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"mcpServers": {
"devio": {
"command": "node",
"args": ["${CLAUDE_PLUGIN_ROOT}/dist/server.js"],
"env": {
"CONTENTFUL_ACCESS_TOKEN": "${CONTENTFUL_ACCESS_TOKEN}",
"CONTENTFUL_SPACE_ID": "${CONTENTFUL_SPACE_ID}",
"CONTENTFUL_ENVIRONMENT_ID": "${CONTENTFUL_ENVIRONMENT_ID}",
"CONTENTFUL_AUTHOR_ID": "${CONTENTFUL_AUTHOR_ID}",
"CONTENTFUL_ARTICLE_CONTENT_TYPE": "${CONTENTFUL_ARTICLE_CONTENT_TYPE}",
"ARTICLES_DIR": "${ARTICLES_DIR}"
}
}
}
}
48 changes: 48 additions & 0 deletions plugins/devio-mcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# devio-mcp (Claude Code plugin)

DevIO (Contentful) 記事執筆者向けの Model Context Protocol サーバ。Claude Code から記事検索・取得・ネタ被りチェック・ローカル下書き作成/更新を行えます。

## インストール

```
/plugin marketplace add classmethod/claude-code-marketplace
/plugin install devio-mcp
```

## 環境変数の設定

Claude Code の `settings.json`(`~/.claude/settings.json` または プロジェクト `.claude/settings.json`)の `env` ブロックに:

```json
{
"env": {
"CONTENTFUL_ACCESS_TOKEN": "CFPAT-xxxxx",
"CONTENTFUL_SPACE_ID": "ct0aopd36mqt",
"CONTENTFUL_AUTHOR_ID": "<自分の Author Entry ID>",
"ARTICLES_DIR": "/Users/you/path/to/articles"
}
}
```

設定後、Claude Code 再起動または `/mcp reload` で反映。

## 提供ツール

| ツール | 用途 |
|---|---|
| `search_my_articles` | 自分の記事検索(Contentful + ローカルマージ) |
| `list_my_articles` | 自分の記事一覧 |
| `search_all_articles` | 全社記事検索(ネタ被りチェック) |
| `get_article` | articleId から記事詳細取得 |
| `create_local_draft` | 新規下書き Markdown ローカル作成(Contentful 非介入) |
| `update_local_article` | 既存ローカル記事本文の更新(Contentful 非介入) |

**Contentful への書き込みは行いません**。公開・同期は既存の DevIO VSCode 拡張で実施してください。

## 詳細ドキュメント

[nakamura-shuta/devio-mcp README](https://github.com/nakamura-shuta/devio-mcp) を参照。

## ライセンス

MIT
109 changes: 109 additions & 0 deletions plugins/devio-mcp/dist/server.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions plugins/devio-mcp/dist/server.js.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1a405e86248ea1072dffff07424b4b5d33a22f1e6c6ff97192ee467572d14a2f server.js