v2: publish @azure/documentdb-mcp-server to npm

オープン
#49 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
github-actions, typescript
領域
ci-cd, devops, release

調査の方向性

要求された GitHub Actions のリリースワークフローから始め、agent-kit の mcp.json と 4 つのプラグイン設定を確認します。npm パッケージが provenance 付きで解決されること、リリースワークフローが成功すること、GitHub と npm の両方のインストール経路が README に記載されていること、そして agent-kit が npm パッケージを参照していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

v2: publish @azure/documentdb-mcp-server to npm

Why

v1 unblocks customers by having every plugin (Claude / Codex / Cursor / Gemini / Copilot / VS Code) fetch the MCP server directly from the public GitHub repo via npx github:microsoft/documentdb-mcp#v1.0.0. That works but has three drawbacks:

  1. Cold start is slow — npx clones the repo and (if dist/ isn't shipped) runs prepare before launching. Users see 30–60 s of nothing on first install.
  2. No semver — customers can pin to a tag, but the registry-level "latest" / "^1.0.0" experience customers expect from npm packages doesn't exist.
  3. Corp networks — some enterprise environments block direct GitHub fetches from npx but allow registry.npmjs.org. These users can't install v1.

What v2 does

Publish the MCP server as a proper scoped npm package and swap every plugin config from github:... to the registry name.

Naming

Recommend @azure/documentdb-mcp-server. The unscoped documentdb-mcp-server was published then unpublished — npm blocks republishing the same name for 72 hours after unpublish, and even after, the squat-risk on an unscoped name argues for the scope. @azure/... matches Azure's existing npm scope (@azure/identity, @azure/cosmos, etc.) and reads correctly to customers.

If @azure/ isn't available to this repo's publisher identity, fall back to @microsoft/documentdb-mcp-server.

Tasks

  • Reserve @azure/documentdb-mcp-server on the npm registry (npmjs.com Azure scope)
  • Add a GitHub Actions release workflow that publishes on tag push:
    on:
      push:
        tags: ['v*']
    jobs:
      publish:
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-node@v4
            with: { node-version: '20', registry-url: 'https://registry.npmjs.org' }
          - run: npm ci
          - run: npm run build
          - run: npm publish --access public --provenance
            env:
              NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
    
  • Wire NPM_TOKEN as an actions secret (granular automation token, publish-only)
  • Enable npm provenance so customers can verify the package was built from this repo
  • Tag v2.0.0 and confirm the workflow publishes successfully
  • Smoke-test: npx -y @azure/documentdb-mcp-server on a fresh machine
  • Open a PR against Azure/documentdb-agent-kit to swap the four plugin configs from github:... to @azure/documentdb-mcp-server
  • Tag agent-kit v2.0.0 to align
  • Update pinned discussion: "v2 is live. Existing v1 installs continue to work; new installs use the npm package automatically."

Versioning

v1 lives on the github:... path forever (don't break it — old plugin installs reference it). v2+ is npm-first. The agent-kit's mcp.json will reference v2 going forward.

Done when

  • @azure/documentdb-mcp-server resolves on npm
  • Provenance is attached
  • Release workflow is green
  • Agent-kit's plugin configs point at the npm package
  • Both paths (github: and npm:) are documented in README, with npm as the recommended default
主要言語
TypeScript
スター
2
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/documentdb-mcp のほかの issue

microsoft/documentdb-mcp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。