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 pingResource 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 resourceThe 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 combinedThe combined server provides:
- The "ping" tool that returns "pong"
- A text resource at test://hello.txtcontaining "Hello, world"
Development
To work on this project locally:
- Clone the repository
- Install dependencies: npm install
- Link the package: npm link
- Run any server using the commands above
Publishing
To publish this package:
- Make sure you're logged in to npm with the correct account: - npm login
- Publish the package: - npm publish
Note: This package is published under the @msfeldstein namespace and is configured for public access.
License
ISC