JSPM

  • Created
  • Published
  • Downloads 38
  • Score
    100M100P100Q96208F
  • License ISC

A collection of MCP test servers including working servers (ping, resource, combined, env-echo) 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

    Ubuntu SSH Docker Container

    This project provides a Docker container running Ubuntu with SSH access.

    Setup

    1. Make sure you have Docker and Docker Compose installed on your system.

    2. Create a shared directory for file exchange between host and container:

      mkdir -p shared
    3. Build and start the container:

      docker-compose up -d

    Accessing the Container

    SSH Access

    Connect to the container using SSH:

    ssh ubuntu@localhost -p 2222

    Password: ubuntu

    You can also connect as root:

    ssh root@localhost -p 2222

    Password: root

    Direct Container Access

    You can also access the container directly using Docker:

    docker exec -it ubuntu-ssh bash

    Shared Files

    The ./shared directory on your host is mounted to /home/ubuntu/shared in the container. You can use this to exchange files between your host and the container.

    Stopping the Container

    To stop the container:

    docker-compose down

    MCP Test Servers

    A collection of MCP test servers including working servers and test failure cases.

    Installation

    npm install -g @msfeldstein/mcp-test-servers

    Usage

    Running a server

    npx @msfeldstein/mcp-test-servers <server-type>

    Available server types:

    • ping: A simple server with ping and long-running-ping tools
    • resource: A server that returns resources
    • combined: A server with both ping and resource tools
    • broken-tool: A server with a tool that always errors
    • crash-on-startup: A server that crashes on startup
    • env-check: A server that checks for environment variables
    • env-echo: A server that echoes environment variables
    • many-resources: A server that returns many resources
    • duplicate-names: A server with duplicate tool names
    • image: A server that generates a red circle image

    Image Server

    The image server provides a tool to generate a red circle image:

    • Tool: generate_image
    • Parameters:
      • size (optional): The size of the image in pixels (both width and height). Default is 200px.

    The tool generates a red circle on a white background and saves it to the output directory as red_circle.png.

    Example usage:

    // Call with default size (200px)
    const result = await callTool("generate_image", {});
    
    // Call with custom size
    const result = await callTool("generate_image", { size: 400 });

    Dependencies

    For the image server, you'll need to have the necessary dependencies for the canvas package. On some systems, you might need to install additional libraries:

    Ubuntu/Debian

    sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

    macOS

    brew install pkg-config cairo pango libpng jpeg giflib librsvg

    Windows

    See the node-canvas wiki for Windows installation instructions.