Skip to content

feat: prepare MCP server as stdio-only npm package#5

Merged
Mgrdich merged 9 commits into
mainfrom
mcp-deployment-npm-package
Feb 20, 2026
Merged

feat: prepare MCP server as stdio-only npm package#5
Mgrdich merged 9 commits into
mainfrom
mcp-deployment-npm-package

Conversation

@Mgrdich

@Mgrdich Mgrdich commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

Remove HTTP transport in favor of stdio-only for npm distribution. Migrate from deprecated server.tool() to server.registerTool(), bump SDK to ^1.26.0, and add bin/files/metadata for npm publishing.

Mgrdich and others added 4 commits February 19, 2026 11:34
Remove HTTP transport in favor of stdio-only for npm distribution.
Migrate from deprecated server.tool() to server.registerTool(),
bump SDK to ^1.26.0, and add bin/files/metadata for npm publishing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace HTTP transport docs with npm/npx installation instructions,
remove serve command reference, and add npm package link.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add clear instructions for adding the MCP server to Claude Code
(via CLI and manual config), example prompts showing how to use
the tools, and setup instructions for other MCP clients.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prepares the MCP server for npm distribution by removing HTTP transport support in favor of stdio-only operation, migrating from the deprecated server.tool() API to server.registerTool(), and bumping the MCP SDK to version ^1.26.0. The changes also add necessary npm package metadata including bin entry, files array, keywords, and a prepublishOnly script.

Changes:

  • Migrated from server.tool() to server.registerTool() API across all three tools (list_plugins, get_plugin, search_plugins)
  • Removed HTTP transport implementation and made the server stdio-only
  • Added npm package metadata (bin entry, files array, keywords, license, prepublishOnly script)
  • Updated README with npm installation instructions and removed HTTP server documentation
  • Bumped @modelcontextprotocol/sdk from ^1.12.1 to ^1.26.0

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
src/server.ts Migrated tool registration from deprecated server.tool() to server.registerTool() with new API structure
src/index.ts Removed HTTP transport code and simplified to stdio-only server with shebang for CLI execution
package.json Added npm package metadata (bin, files, keywords, description, license) and prepublishOnly script; bumped SDK to ^1.26.0
pnpm-lock.yaml Updated lockfile to reflect SDK version bump to 1.26.0
README.md Updated documentation with npm installation instructions, removed HTTP server sections, added usage examples
.mcp.json Changed local MCP server name from "claude-plugins" to "provectus-claude-plugins-finder"
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
Comment thread README.md Outdated
Comment thread package.json Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/server.ts Outdated
Comment thread src/server.ts Outdated
@Mgrdich Mgrdich self-assigned this Feb 19, 2026
@Mgrdich Mgrdich merged commit 6398c9e into main Feb 20, 2026
1 check passed
@Mgrdich Mgrdich deleted the mcp-deployment-npm-package branch February 20, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants