JSPM

  • Created
  • Published
  • Downloads 46
  • Score
    100M100P100Q96058F
  • License ISC

A collection of MCP test servers including working servers (ping, resource, combined) and test failure cases (broken-tool, crash-on-startup)

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@msfeldstein/mcp-test-servers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    MCP Test Servers

    This package provides a collection of simple MCP (Model Context Protocol) servers for testing and demonstration purposes.

    Available Servers

    Ping Server

    A simple server that provides a single tool called "ping" which returns "pong".

    To run:

    # Using npm script
    npm run ping
    
    # Using npx (after npm link)
    npx mcp-test-servers ping
    
    # Using npx (after publishing)
    npx @msfeldstein/mcp-test-servers ping

    Resource Server

    A server that provides a simple text resource with the content "Hello, world".

    To run:

    # Using npm script
    npm run resource
    
    # Using npx (after npm link)
    npx mcp-test-servers resource
    
    # Using npx (after publishing)
    npx @msfeldstein/mcp-test-servers resource

    The resource server exposes:

    • Resource URI: test://hello.txt
    • MIME Type: text/plain
    • Content: "Hello, world"

    Combined Server

    A server that combines both the ping tool and the text resource functionality.

    To run:

    # Using npm script
    npm run combined
    
    # Using npx (after npm link)
    npx mcp-test-servers combined
    
    # Using npx (after publishing)
    npx @msfeldstein/mcp-test-servers combined

    The combined server provides:

    • The "ping" tool that returns "pong"
    • A text resource at test://hello.txt containing "Hello, world"

    Development

    To work on this project locally:

    1. Clone the repository
    2. Install dependencies: npm install
    3. Link the package: npm link
    4. Run any server using the commands above

    Publishing

    To publish this package:

    1. Make sure you're logged in to npm with the correct account:

      npm login
    2. Publish the package:

      npm publish

    Note: This package is published under the @msfeldstein namespace and is configured for public access.

    License

    ISC