joeBlockchain_mcp-server-client

joeBlockchain_mcp-server-client

0

The MCP Server-Client Example project demonstrates using the Model Context Protocol with TypeScript SDK to set up communication between a server and client. It showcases basic functionalities such as resource listing and reading over stdio transport.

Overview

The MCP Server-Client Example demonstrates a basic implementation of the Model Context Protocol using the TypeScript SDK. The project includes:

  • An MCP server for resource access
  • An MCP client for connecting to the server and requesting resources
  • Basic functionality for resource listing and reading

Prerequisites

  • Node.js (v16 or higher)
  • npm

Running the Example

To run the server and client, use separate terminal windows:

  1. Start the server: run the server-related command
  2. Start the client: run the client-related command

Server Capabilities

  • Resource listing and reading
  • Basic error handling for unknown resources