Community研究與資料分析github.com

Muriellecomputerreadable868/coderlegion-mcp

透過 TypeScript MCP 伺服器將 AI 代理與 CoderLegion 連接,提供文章、個人檔案、搜尋與社交工具

coderlegion-mcp 是什麼?

此技能提供一個 TypeScript 實作的 MCP(Model Context Protocol)伺服器,讓 AI 代理(如 Claude Code、Cline 等)能夠直接與 CoderLegion 平台互動。它將 CoderLegion 的常見功能封裝為工具,包括:讀取與發布技術文章、查詢開發者個人檔案、執行全文檢索,以及進行社交互動(如追蹤或按讚)。支援的環境包含任何相容 MCP 的 AI 代理工具,例如 Cursor、Claude Desktop、Codex 等。開發者只需設定 CoderLegion API 金鑰與端點,即可讓 AI 代理動態取得平台內容或執行操作,無需手動切換應用程式。此整合大幅提升開發者在 CoderLegion 社群中的工作效率,特別適合需要即時查閱技術文章或管理個人檔案的場景。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add Muriellecomputerreadable868/coderlegion-mcp

Installed? Explore more 研究與資料分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

coderlegion-mcp 是做什麼的?

透過 TypeScript MCP 伺服器將 AI 代理與 CoderLegion 連接,提供文章、個人檔案、搜尋與社交工具

功能

  • 文章工具:讀取、發布與管理技術文章
  • 個人檔案工具:查詢與更新開發者個人檔案
  • 搜尋工具:對 CoderLegion 內容進行全文檢索
  • 社交工具:執行追蹤、按讚等社交互動

必要條件

  • Node.js 18 或更新版本
  • CoderLegion API 金鑰

安裝

npm install @coderlegion/mcp-server

設定

建立一個 .env 檔案:

CODERLEGION_API_KEY=your_api_key_here
CODERLEGION_BASE_URL=https://api.coderlegion.com

使用方式

使用 npx

npx @coderlegion/mcp-server

在 Claude Desktop 中設定

在 claude_desktop_config.json 中新增:

{
  "mcpServers": {
    "coderlegion": {
      "command": "npx",
      "args": ["@coderlegion/mcp-server"],
      "env": {
        "CODERLEGION_API_KEY": "your_api_key_here",
        "CODERLEGION_BASE_URL": "https://api.coderlegion.com"
      }
    }
  }
}

工具列表

工具名稱說明
get_post根據 ID 取得指定文章
list_posts列出最新文章,支援分頁與篩選
create_post在 CoderLegion 上發布新文章
search_posts對文章標題與內容進行全文檢索
get_profile取得指定使用者的公開個人檔案
update_profile更新當前使用者的個人檔案資訊
follow_user追蹤另一位開發者
unfollow_user取消追蹤另一位開發者
like_post對指定文章按讚
unlike_post移除對指定文章的按讚

開發

# 安裝相依套件
npm install

# 建置專案
npm run build

# 執行格式化
npm run format

授權條款

MIT

相關技能