@metexplore/mcp-metexplore 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -186,7 +186,7 @@ Configuration (`.env`, or `env` block of the client configuration):
186
186
 
187
187
  | Variable | Required | Description |
188
188
  |---|---|---|
189
- | `METEXPLORE_API_URL` | no (default `http://localhost:1337`) | Base URL of the MetExplore API, no trailing slash |
189
+ | `METEXPLORE_API_URL` | no (default `https://metexplore.toulouse.inrae.fr/metexplore3-api`, production) | Base URL of the MetExplore API, no trailing slash |
190
190
  | `METEXPLORE_APP_KEY` | yes | Application token (`x-app-key` header), to request from contact-metexplore@inrae.fr |
191
191
  | `METEXPLORE_USER_TOKEN` | no (stdio only) | A user token already obtained |
192
192
  | `METEXPLORE_USER_LOGIN` / `METEXPLORE_USER_PASSWORD` | no (stdio only, set together) | Credentials used to call `/users/login` on first use |
@@ -303,18 +303,25 @@ to the VMs.
303
303
  |---|---|---|---|
304
304
  | any branch / MR | `test` | — | — |
305
305
  | push on `develop` | `build:develop`, `deploy:develop` | `:develop-<sha>`, `:develop` | environment `develop` |
306
- | tag `X.Y.Z` | `build:release`, `deploy:production`, `publish:npm`, `release` | `:X.Y.Z`, `:latest` | environment `production` + npm package + GitLab release |
306
+ | tag `X.Y.Z` | `build:release`, `deploy:production`, `publish:npm`, `publish:mcp-registry`, `release` | `:X.Y.Z`, `:latest` | environment `production` + npm package + MCP registry + GitLab release |
307
307
 
308
308
  **Versioning**: the git tag is the single source of truth. `package.json`
309
- stays at `0.0.0` in the repository; the CI injects the tag as the image's
310
- version (`--build-arg VERSION`) and as the npm package's version
311
- (`npm version X.Y.Z --no-git-tag-version`, not committed). Develop images
312
- report `0.0.0-develop.<sha>`.
309
+ and [server.json](server.json) stay at `0.0.0` in the repository; the CI
310
+ injects the tag as the image's version (`--build-arg VERSION`), as the npm
311
+ package's version (`npm version X.Y.Z --no-git-tag-version`, not committed)
312
+ and as the MCP registry version. Develop images report `0.0.0-develop.<sha>`.
313
313
 
314
314
  The `publish:npm` job publishes
315
315
  [`@metexplore/mcp-metexplore`](https://www.npmjs.com/package/@metexplore/mcp-metexplore)
316
316
  at the tag's version (a no-op if that version is already on npm).
317
317
 
318
+ The `publish:mcp-registry` job then lists that version in the
319
+ [official MCP registry](https://registry.modelcontextprotocol.io) as
320
+ `io.github.MetExplore/mcp-metexplore`, from [server.json](server.json) (npm
321
+ package + hosted remote server), with a pinned `mcp-publisher`. The registry
322
+ checks that the npm package's `mcpName` (in `package.json`) equals
323
+ `server.json`'s `name`. A no-op if that version is already in the registry.
324
+
318
325
  The `release` job creates the GitLab release of the tag (Deploy > Releases),
319
326
  using the `## X.Y.Z` section of [CHANGELOG.md](CHANGELOG.md) as its description:
320
327
  add that section before pushing the tag.
@@ -357,11 +364,12 @@ for one environment).
357
364
  | `HOST_PORT` | Optional (default `8077`), bound to `127.0.0.1` on the VM |
358
365
  | `METEXPLORE_MAX_REQUESTS_PER_SESSION`, `METEXPLORE_TLS_REJECT_UNAUTHORIZED`, `MCP_RATE_LIMIT_PER_MINUTE`, `MCP_MAX_SESSIONS`, `MCP_SESSION_TTL_MINUTES` | Optional |
359
366
 
360
- The npm token is defined at the project level, **without** environment scope:
367
+ The publishing tokens are defined at the project level, **without** environment scope:
361
368
 
362
369
  | Variable | Notes |
363
370
  |---|---|
364
371
  | `NPM_TOKEN` | Masked + protected. npm *granular access token* (npmjs.com > Access Tokens > Generate New Token > Granular): read and write on the `@metexplore` organization, **"Bypass two-factor authentication"** checked (publishing from the CI cannot answer an OTP). Write tokens expire after 90 days at most: rotate it before expiry, or `publish:npm` fails |
372
+ | `MCP_GITHUB_TOKEN` | Masked + protected. GitHub token of an **Owner** of the [MetExplore](https://github.com/MetExplore) organization (required to publish under `io.github.MetExplore/*`): classic PAT with only the `read:org` scope, or fine-grained PAT (resource owner MetExplore) with *Organization permissions > Members: Read-only*. A token without that permission still logs in but only gets the personal namespace, and `publish:mcp-registry` fails |
365
373
 
366
374
  Protected variables are only exposed on protected branches/tags: protect
367
375
  `develop` and the release tags `*.*.*` (Settings > Repository).
package/dist/config.js CHANGED
@@ -24,7 +24,7 @@ function intEnv(name, defaultValue) {
24
24
  return value;
25
25
  }
26
26
  export function loadConfig() {
27
- const apiUrl = (process.env.METEXPLORE_API_URL ?? "http://localhost:1337").replace(/\/+$/, "");
27
+ const apiUrl = (process.env.METEXPLORE_API_URL ?? "https://metexplore.toulouse.inrae.fr/metexplore3-api").replace(/\/+$/, "");
28
28
  const appKey = requireEnv("METEXPLORE_APP_KEY");
29
29
  const userToken = process.env.METEXPLORE_USER_TOKEN || undefined;
30
30
  const userLogin = process.env.METEXPLORE_USER_LOGIN || undefined;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@metexplore/mcp-metexplore",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
+ "mcpName": "io.github.MetExplore/mcp-metexplore",
4
5
  "description": "MCP server for querying the MetExplore API (organisms, metabolites, reactions, mapping)",
5
6
  "keywords": [
6
7
  "mcp",