# llamacppMCPClientDemo

> MCP Client

This React-based demo showcases an MCP client interacting with SSE servers, enabling tool calls and text completion, though it's still under development and has limitations regarding tool naming and concurrent calls.

## Overview

- **Category:** AI
- **Language:** TypeScript
- **Stars:** 13
- **Forks:** 0
- **Owner:** brucepro
- **GitHub:** https://github.com/brucepro/llamacppMCPClientDemo
- **Created:** 2025-02-07T06:46:11+00:00
- **Updated:** 2025-03-19T13:15:05+00:00
- **Source:** https://model-context-protocol.com/clients/react-mcp-client-sse-tool-calls

## Setup

## Setup
Load the SSE servers:

1.  `npx -y supergateway --cors --port 8002 --stdio "npx -y @modelcontextprotocol/server-everything"`

   or

2.  `cd servers/python/simple-tool-prompt-resource`
Load it with uv.
```bash
uv run mcp-simple-tool-prompt-resource --transport sse --port 8000
```

3.  `cd servers/python/simple-tool-prompt-resource2`
Load it with uv.
```bash
uv run mcp-simple-tool-prompt-resource2 --transport sse --port 8001
```
The script assumes these are running at localhost, but you can edit the config.

4. Run the script: `npm start`

## Tools

## Available Tools

1.  MCP Client (React and SSE demo)
2.  simple-tool-prompt-resource (SSE server)
3.  simple-tool-prompt-resource2 (SSE server)

