Skip to content

docs(mcp-integration): add scripts reference to SKILL.md#77

Closed
sjnims wants to merge 3 commits intomainfrom
docs/76-add-scripts-reference-to-mcp-integration-skill
Closed

docs(mcp-integration): add scripts reference to SKILL.md#77
sjnims wants to merge 3 commits intomainfrom
docs/76-add-scripts-reference-to-mcp-integration-skill

Conversation

@sjnims
Copy link
Copy Markdown
Owner

@sjnims sjnims commented Dec 9, 2025

Summary

Add a Scripts subsection to the mcp-integration skill's Additional Resources section, improving discoverability of the search-mcp-servers.sh utility.

Problem

Fixes #76

The scripts/ directory contains a useful utility (search-mcp-servers.sh) for discovering MCP servers with GitHub star rankings. However, this script was not referenced in SKILL.md's Additional Resources section, making it less discoverable for users browsing the skill documentation.

Solution

Added a ### Scripts subsection to the Additional Resources section, following the same pattern used for Reference Files and Example Configurations. This creates a complete inventory of bundled resources in one place.

Alternatives Considered

None - this is a straightforward documentation addition following existing patterns.

Changes

  • plugins/plugin-dev/skills/mcp-integration/SKILL.md: Added Scripts subsection with reference to search-mcp-servers.sh

Testing

  • Markdownlint passes
  • Change follows existing documentation patterns
  • Referenced script exists (scripts/search-mcp-servers.sh)

🤖 Generated with Claude Code

sjnims and others added 3 commits December 8, 2025 20:05
## Description

Adds comprehensive reference documentation for discovering and
evaluating MCP servers to integrate into Claude Code plugins. This
addresses a gap in the mcp-integration skill where users had no guidance
on finding appropriate servers for their plugin needs.

## Type of Change

- [x] Documentation update (improvements to README, CLAUDE.md, or
component docs)

## Component(s) Affected

- [x] Skills (methodology and best practices)

## Motivation and Context

When building a plugin that needs external capabilities (database
access, API integration, file operations), users currently must manually
browse registries, guess at search terms, evaluate quality blindly, and
potentially miss relevant options. This creates friction in the plugin
development workflow.

Fixes #72

## How Has This Been Tested?

**Test Configuration**:
- markdownlint: Passes with no errors
- OS: macOS

**Test Steps**:
1. Ran `markdownlint` on both changed files - passes
2. Verified file structure matches existing references (server-types.md
pattern)
3. Confirmed SKILL.md update correctly references the new file

## Checklist

### General

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings or errors

### Documentation

- [x] I have updated the documentation accordingly (README.md,
CLAUDE.md, or component docs)
- [x] I have verified all links work correctly

### Markdown

- [x] I have run `markdownlint` and fixed all issues
- [x] My markdown follows the repository style (ATX headers, dash lists,
fenced code blocks)

### Component-Specific Checks

#### Skills (if applicable)

- [x] SKILL.md references section updated
- [x] New reference file follows established format
- [x] Content organized with clear sections and tables

### Testing

- [x] I have verified markdown linting passes

## Changes

- **`references/discovery.md`** (new): ~1,100 word reference covering:
  - Overview of when to use MCP servers vs custom solutions
- Official MCP Registry API (endpoint, search syntax, response
structure)
  - Alternative discovery sources (Smithery.ai, npm, GitHub, MCP.SO)
  - Category mappings table for common plugin needs
  - Evaluation criteria (popularity, maintenance, quality, red flags)
  - Discovery workflow recommendations
  - Reference to companion script in #73

- **`SKILL.md`**: Added reference to new discovery.md file

## Additional Notes

This establishes the conceptual foundation; a companion feature issue
(#73) will implement the discovery script referenced in the
documentation.

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
## Summary

Adds `search-mcp-servers.sh` discovery script to the mcp-integration
skill, enabling programmatic MCP server discovery with GitHub popularity
ranking directly from the command line.

## Problem

Fixes #73

When developing plugins that require MCP server integrations,
discovering relevant servers is currently a manual, tedious process
requiring users to browse web interfaces, with no programmatic search or
popularity metrics.

## Solution

Created a comprehensive bash script that:
1. Queries the official MCP Registry API
2. Enriches results with GitHub stars for popularity ranking
3. Sorts by stars (descending) for quality signal
4. Supports multiple output formats for different use cases

### Features

- **Search by keywords**: `./search-mcp-servers.sh database postgres`
- **Limit results**: `--limit N` (default: 10)
- **Output formats**: `--format table|json|simple`
- **Transport filter**: `--transport stdio|sse|http|ws`
- **Graceful error handling**: Network issues, rate limits, missing
repos

### Output Example (table)

```
┌─────────────────────────────────────────────────────────────────┐
│ MCP Server Discovery Results (sorted by GitHub stars)          │
├─────────────────────────────────────────────────────────────────┤
│ ⭐ 1,247  @modelcontextprotocol/server-postgres                 │
│          PostgreSQL database integration with query support     │
│          https://github.com/modelcontextprotocol/servers        │
└─────────────────────────────────────────────────────────────────┘
```

### Alternatives Considered

1. **WebSearch-only approach**: Unstructured results, no metrics
2. **Smithery API integration**: Third-party dependency, undocumented
API
3. **Curated static list**: Gets stale, requires maintenance

Chose official Registry + GitHub enrichment for best balance of official
data source, objective popularity metric, and minimal dependencies.

## Changes

- **`scripts/search-mcp-servers.sh`** (new): ~380 lines implementing
full discovery functionality
- **`references/discovery.md`**: Updated to reference implemented script
with usage examples

## Testing

**Test Configuration**:
- shellcheck: ✅ Passes with no warnings
- markdownlint: ✅ Passes
- OS: macOS

**Acceptance Criteria** (from issue):
- [x] Script accepts search keywords as positional arguments
- [x] Queries official MCP Registry API successfully
- [x] Extracts and fetches GitHub star counts when repos available
- [x] Sorts results by star count (descending)
- [x] Outputs formatted results with: name, description, stars, repo URL
- [x] Handles "no results" case gracefully
- [x] Handles network errors with informative messages
- [x] Includes `--help` with usage examples
- [x] Supports `--limit` option for result count
- [x] Supports `--format json` for machine-readable output
- [x] Passes shellcheck linting
- [x] Documented in skill's scripts section

## Checklist

### General
- [x] Follows style guidelines (matches existing scripts)
- [x] Self-reviewed
- [x] No new warnings or errors

### Shell Script
- [x] shellcheck passes
- [x] Uses `set -euo pipefail`
- [x] Proper error handling
- [x] Help message with examples

### Documentation
- [x] Updated discovery.md with script usage

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
Add Scripts subsection to the Additional Resources section of the
mcp-integration skill SKILL.md. This improves discoverability of the
search-mcp-servers.sh utility that was previously only documented
within references/discovery.md.

Fixes #76

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@claude
Copy link
Copy Markdown

claude Bot commented Dec 9, 2025

Claude finished @sjnims's task —— View job


Review of PR #77: Add Scripts Reference to SKILL.md

  • Get PR diff to understand changes
  • Read the modified SKILL.md file
  • Run markdownlint on changed file
  • Verify referenced script exists
  • Check pattern consistency with existing documentation
  • Post review findings

Summary

Looks good - This is a clean documentation improvement that follows existing patterns.


What's Good

  1. Perfect Pattern Consistency: The new Scripts subsection follows the exact same structure as the existing "Reference Files" and "Example Configurations" subsections:

    • Uses ### header
    • Has introductory text ("Utility scripts in scripts/:")
    • Uses bullet list with bold filename and description
    • Cross-references related documentation (references/discovery.md)
  2. Verified Script Exists: Confirmed that scripts/search-mcp-servers.sh exists and is executable (10933 bytes, executable permissions set).

  3. Markdown Quality: ✅ Markdownlint passes with no errors or warnings.

  4. Improved Discoverability: This change addresses the stated problem - users can now discover the MCP server search utility by reading the skill documentation instead of having to explore the directory structure.

  5. Appropriate Scope: The change is focused and minimal - adds exactly what's needed without over-engineering.


Checklist Verification

From the PR description:

  • ✅ Markdownlint passes (confirmed by running it)
  • ✅ Change follows existing documentation patterns (matches Reference Files and Example Configurations sections perfectly)
  • ✅ Referenced script exists (confirmed at plugins/plugin-dev/skills/mcp-integration/scripts/search-mcp-servers.sh)

Additional Notes

The diff shows:

+### Scripts
+
+Utility scripts in `scripts/`:
+
+- **`search-mcp-servers.sh`** - Search MCP Registry with GitHub star rankings (see `references/discovery.md` for usage)
+

This placement is logical - it appears right after "Example Configurations" and before "External Resources", completing the inventory of bundled resources.

Recommendation: ✅ Approve and merge.


@sjnims sjnims self-assigned this Dec 9, 2025
@claude claude Bot added documentation Improvements or additions to documentation component:skill Skills layer effort:small < 1 hour labels Dec 9, 2025
@sjnims sjnims closed this Dec 9, 2025
@sjnims sjnims deleted the docs/76-add-scripts-reference-to-mcp-integration-skill branch December 9, 2025 03:19
@sjnims sjnims added the reverted Merged but later reverted from codebase label Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:skill Skills layer documentation Improvements or additions to documentation effort:small < 1 hour reverted Merged but later reverted from codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant