feat: prepare MCP server as stdio-only npm package#5
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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()toserver.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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.