I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

joeblockchain_mcp-server-client
Miroir dehttps: //github.com/joeblockchain/mcp-server-lient
3 years
Works with Finder
0
Github Watches
1
Github Forks
0
Github Stars
MCP Server-Client Example
This project demonstrates a basic implementation of the Model Context Protocol (MCP) using the TypeScript SDK. It includes both a server and client implementation that communicate over stdio transport.
Overview
The example includes:
- An MCP server that provides access to resources
- An MCP client that connects to the server and requests resources
- Basic resource listing and reading functionality
Prerequisites
- Node.js (v16 or higher)
- npm
Installation
Clone the repository and install dependencies:
npm install
Project Structure
src/
├── index.ts # Server implementation
└── client.ts # Client implementation
Running the Example
You'll need to run the server and client in separate terminal windows.
- Start the server:
npm run start:server
- In a new terminal, start the client:
npm run start:client
The client will:
- Connect to the server
- Request a list of available resources
- Read the content of an example resource
Server Capabilities
The server currently supports:
- Resource listing
- Resource reading
- Basic error handling for unknown resources
Available Resources
The example server provides access to:
-
file:///example.txt
: A simple text resource
Development
Scripts
-
npm run start:server
: Starts the MCP server -
npm run start:client
: Starts the MCP client
Adding New Resources
To add new resources, modify the ListResourcesRequestSchema
handler in src/index.ts
:
server.setRequestHandler(ListResourcesRequestSchema, async () => {
return {
resources: [
{
uri: "file:///example.txt",
name: "Example Resource",
},
// Add new resources here
],
};
});
Dependencies
-
@modelcontextprotocol/sdk
: MCP TypeScript SDK -
ts-node
: TypeScript execution environment -
typescript
: TypeScript compiler
License
ISC
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.
Miroir dehttps: //github.com/bitrefill/bitrefill-mcp-server
Reviews

user_xYLNnXdx
I have been using the MCP-RAG application by kira1228 for a few weeks now, and it has significantly enhanced my workflow. The user-friendly interface and seamless integration make it a pleasure to use daily. I highly recommend this product to anyone in need of a reliable and efficient solution.