MCP (Model Context Protocol) Server - UBOS

✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

MCP Project

This project demonstrates the implementation of an MCP (Model Context Protocol) server and client using TypeScript.

Steps to Run the Project

  1. Install Dependencies Navigate to the mcp-demo-ts folder and install the required dependencies:

    cd mcp-demo-ts
    npm install
    
  2. Build the Project Compile the TypeScript code into JavaScript:

    npm run build
    
  3. Run the Server Start the MCP server:

    npm start
    
  4. Client Interaction Use the client code in src/client/index.ts to interact with the server. You can modify the client code as needed to test different scenarios.

Project Structure

  • src/client/: Contains the client-side code.
  • src/server/: Contains the server-side code.
  • src/context/: Includes shared context or state management logic.
  • src/types/: Defines TypeScript types and interfaces used across the project.
  • src/utils/: Utility functions and helpers.

Prerequisites

  • Node.js (v14 or later)
  • npm (v6 or later)
  • Ollama with the Mistral model installed

Notes

  • Refer to the README.md inside the mcp-demo-ts folder for more specific details about the subproject.

Featured Templates

View More
Data Analysis
Pharmacy Admin Panel
232 1470
AI Characters
Sarcastic AI Chat Bot
127 1233
AI Characters
Your Speaking Avatar
163 573

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.