
Cws
io.github.mikusnuz由 GitHub 帳號 mikusnuz 發布v2.0.2更新於 Nov 3, 2026
MCP server for Chrome Web Store — extension upload, publish, status, and rollout
概覽
在 MCP 用戶端管理 Chrome 線上應用程式商店擴充功能:上傳 ZIP 草稿、發布、查看審查狀態、取消提交並設定分批發布比例。
- 可以做什麼
- 將建置好的 ZIP 以草稿更新上傳到既有的 Chrome 線上應用程式商店項目
- 發布或提交審查,可設定發布類型、發布比例、略過審查與警告阻擋選項
- 查看審查狀態、版本與部署比例,並取消待審查的提交
- 為符合資格的擴充功能設定分批發布比例
- 透過開發人員後台讀取並儲存草稿商品資訊(描述、類別、首頁與支援網址)
- 適用情境
- 適合需要發布 Chrome 擴充功能的情境:讓助理推送新版本 ZIP、提交審查、追蹤狀態、逐步提高分批發布比例,或不必手動開啟後台就能修改草稿商品資訊。
- 執行需求
- 以 npm 套件 cws-mcp 在本機執行(npx 或 node),需要 Node.js 20 或更新版本,並已安裝 Google Chrome。需要 Chrome 線上應用程式商店 API 的 Google OAuth2 憑證:CWS_CLIENT_ID、CWS_CLIENT_SECRET 與 CWS_REFRESH_TOKEN,透過具 chromewebstore 權限範圍的桌面端 OAuth 流程取得。可選 CWS_PUBLISHER_ID、CWS_ITEM_ID 與 CWS_DASHBOARD_PROFILE_DIR。後台相關工具需要已登入的 Chrome 設定檔。
安裝
README
cws-mcp
MCP server for Chrome Web Store extension management. Upload, publish, and manage Chrome extensions directly from Claude Code or any MCP client.
When to Use
Use this MCP when you need to:
- "Upload a new version of my Chrome extension" — build your ZIP and use the
uploadtool to push it as a draft - "Publish my extension to the Chrome Web Store" — use
publishto submit for review and go live - "Check the review status of my extension" — use
statusto see review state, version, and deploy percentage - "Update my extension's description or category" — use
update-metadatato save and verify the draft listing - "Cancel a pending submission" — use
cancelto withdraw a submission under review - "Set up staged rollout for my extension" — use
publishwith staged rollout, thendeploy-percentageto ramp up
Tools
API Coverage
An upload returning IN_PROGRESS is pending: poll status until lastAsyncUploadState is SUCCEEDED before publishing. FAILED is a tool error. A blocked publish retains error.details, including the warnings that need attention.
This MCP server covers all Chrome Web Store API v2 endpoints:
All API requests use v2. The public API has no listing-text read/write endpoints; dashboard tools use Playwright and a separate signed-in Chrome profile. Saving listing fields never submits for review. Missing fields, unmatched categories, and unconfirmed saves return errors instead of success.
Setup
Requires Node.js 20 or newer, matching the Playwright runtime requirement.
1. Create OAuth2 Credentials
- Go to Google Cloud Console
- Create a project (or select existing)
- Enable Chrome Web Store API
- Create OAuth2 credentials (Desktop app type)
- Note your Client ID and Client Secret
2. Get Refresh Token
Follow Google's OAuth flow for desktop apps using a local loopback redirect URI, PKCE, and the scope https://www.googleapis.com/auth/chromewebstore. Request offline access (access_type=offline; use prompt=consent when you need a new refresh token). Exchange the authorization code using the same redirect URI and keep the refresh token in your MCP client's secret/environment settings. The former copy-and-paste OOB redirect is no longer supported by Google.
3. Configure MCP
Add to your Claude Code MCP settings (~/.claude/settings.local.json):
Or install globally via npm:
Environment Variables
Usage Examples
Check extension status
Upload and publish
Hold publication until after approval
Publish with skip-review
STAGED_PUBLISH holds an approved submission for a later publication; it is not the rollout percentage. Use deployPercentage separately for an eligible extension's gradual rollout.
Stop publishing on validation warnings
The default is false, matching the API. Inspect returned warningInfo.warnings even when publishing succeeds.
Read or save listing fields without submitting for review
Notes:
categorymust match the visible option label exactly in the current dashboard language; English and Korean field labels are supported.- These tools read/save the current dashboard draft, not the published listing or an arbitrary locale. Select the intended localization in the dashboard first; ambiguous fields fail safely.
- Change title, summary, and default locale in
manifest.json/ localized messages, rebuild, anduploadthe ZIP. Use the dashboard directly for icons and screenshots. - First run with
headless=falseif login is required. - Browser profile path defaults to
~/.cws-mcp-profile(override withCWS_DASHBOARD_PROFILE_DIR). - Google Chrome must be installed. Dashboard UI changes can require selector updates; unverified saves return errors. Verify the dashboard before retrying an ambiguous failure.
Staged rollout
Note: deploy-percentage is only available for extensions with 10,000+ seven-day active users. The new percentage must always be higher than the current target.
Migrating from 1.x to 2.0
Google shuts down API v1 on October 15, 2026. Version 2.0 no longer calls it:
getnow returns v2 status. Its oldprojectionargument is rejected; useget-metadata-uifor draft listing text. Published listing text is not exposed by v2.update-metadatanow uses the same dashboard workflow asupdate-metadata-uiand therefore needs Chrome login, not just an API token.- Raw
metadata,title,summary, anddefaultLocaleinputs are rejected with guidance; unsupported inputs are never silently ignored. storeIconPathis no longer accepted as a working upload. The previous generic file-input approach could not verify which asset it changed; upload the icon in the Developer Dashboard instead.
License
MIT
來源:README.md,提交 a10f5f7
工具
0版本歷史
3- v2.0.2最新Oct 19, 2026
- v2.0.0Oct 8, 2026
- v1.4.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分