You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A **Model Context Protocol (MCP)** implementation showcasing clean, modular tool architecture with multiple server options and an interactive browser client.
3
+
A **Model Context Protocol (MCP)** implementation showcasing clean, modular tool architecture with **local and remote tools** support and an interactive browser client.
4
4
5
5
## 🌟 Features
6
6
7
7
-**🏗️ Clean Architecture**: Modular tool design with `MCPToolsManager`
8
-
-**🔧 4 Demo Tools**: HTTP POST, Weather API, Create Post, and Greg Test tools
9
-
-**🌐 Browser Client**: Interactive web interface for testing tools
10
-
-**📡 Multiple Server Options**: Stdio and Simple HTTP
11
-
-**🧪 Comprehensive Testing**: Automated test suites and manual testing options
12
-
-**🔒 Type Safety**: Full TypeScript implementation with proper validation
8
+
-**🔧 8 Demo Tools**: 4 local + 4 remote tools working seamlessly together
9
+
-**🌐 Remote Tools Support**: Load tools dynamically from external APIs
10
+
-**🌐 Browser Client**: Interactive web interface for testing all tools
11
+
-**📡 Multiple Server Options**: Stdio, Simple HTTP, and Remote Tools servers
12
+
-**🔒 Type Safety**: Full TypeScript implementation with Zod validation
13
13
14
14
## 🚀 Quick Start
15
15
@@ -21,124 +21,212 @@ cd mcp-hello-world
21
21
npm install
22
22
```
23
23
24
-
### 2. Browser Demo (Recommended)
24
+
### 2. Full Demo (Local + Remote Tools)
25
25
26
-
Start the HTTP server and open the browser client:
26
+
Start both servers for the complete experience:
27
27
28
28
```bash
29
+
# Terminal 1: Start remote tools server (4 remote tools)
30
+
npm run start:remote
31
+
32
+
# Terminal 2: Start HTTP server (4 local + 4 remote = 8 total tools)
29
33
npm run start:http
30
34
```
31
35
32
36
Then open: **http://localhost:3000/examples/client.html**
33
37
34
-
### 3. Command Line Usage
38
+
### 3. Local Tools Only
39
+
40
+
```bash
41
+
# Just local tools (4 tools)
42
+
REMOTE_TOOLS_ENABLED=false npm run start:http
43
+
```
44
+
45
+
### 4. Command Line Usage (Cursor/Claude)
35
46
36
47
```bash
37
-
# Build the project
38
48
npm run build
49
+
node dist/index.js # Stdio MCP server
50
+
```
39
51
40
-
# Test tools directly
41
-
node dist/index.js # Stdio MCP server (for Cursor/Claude)
0 commit comments