From 1df2a2d1e3292238032f3fdee78ccb24c29eadc5 Mon Sep 17 00:00:00 2001 From: Laul0 Date: Tue, 13 Oct 2026 20:55:09 -0400 Subject: [PATCH] feat(CI): add CI wf and MCP registration configuration --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ ghost-mcp-registration.json | 20 ++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 ghost-mcp-registration.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a0bad51 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + test-and-build: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run unit tests + run: npm test + + - name: Build TypeScript + run: npm run build \ No newline at end of file diff --git a/ghost-mcp-registration.json b/ghost-mcp-registration.json new file mode 100644 index 0000000..f8297a3 --- /dev/null +++ b/ghost-mcp-registration.json @@ -0,0 +1,20 @@ +{ + "serverName": "ext_GhostBlog", + "serverUrl": "https://ghost/mcp", + "authType": "APIKey", + "description": "Serveur MCP Ghost CMS - gestion des articles, tags et membres du blog.", + "publisherName": "Laul0", + "tools": [ + { "name": "posts_browse", "description": "Lister et filtrer les articles du blog." }, + { "name": "posts_add", "description": "Créer un article, en brouillon ou publié." }, + { "name": "posts_edit", "description": "Modifier un article existant." }, + { "name": "tags_browse", "description": "Lister les tags du blog." }, + { "name": "members_browse", "description": "Lister les membres du blog." } + ], + "remoteScopes": null, + "externalOAuth": null, + "apiKey": { + "location": "Header", + "name": "Authorization" + } +} \ No newline at end of file