ai-agent-with-mcp

ai-agent-with-mcp

2

The project implements an AI agent using the Model Context Protocol (MCP) to interact with external resources. It provides user and message resources available through both an MCP client and a REST API. The project includes detailed installation instructions for various environments.

AI Agent with MCP

This project implements an AI agent utilizing the Model Context Protocol (MCP) to interact with external resources.

Available Resources

  • User Resources

    • Lists registered users in the system, providing information such as ID, name, phone number, and thread ID.
  • Message Resources

    • Returns a simple greeting message.

Installation for Cursor

  • Option 1: Use terminal with specified npx command.
  • Option 2: Manually add to mcp.json.
  • Option 3: Clone locally and set up.

How to Use

  • MCP Client

    • Use the MCP client to access available resources.
  • Direct REST API

    • Access resources directly via REST API.

Installation and Execution

  • Install dependencies, compile the project, and run the server in different modes.

Requirements

  • Node.js, TypeScript, and related SDKs are required.