Skip to content

Commit e4c1603

Browse files
authored
Merge pull request #40 from Kode-Rex/chore/remove-demo-v2.3.2
chore: Remove demo functionality for v2.3.2
2 parents a4756cc + d94fb9d commit e4c1603

File tree

5 files changed

+13
-289
lines changed

5 files changed

+13
-289
lines changed

Makefile

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# WebCat MCP Server - Development Makefile
2-
.PHONY: help install install-dev format lint test test-coverage clean build docker-build docker-run demo health check-all pre-commit setup-dev
2+
.PHONY: help install install-dev format lint test test-coverage clean build docker-build docker-run health check-all pre-commit setup-dev
33

44
# Default target
55
help: ## Show this help message
@@ -108,11 +108,7 @@ docker-build: ## Build Docker image
108108

109109
docker-run: ## Run Docker container
110110
@echo "🐳 Running Docker container..."
111-
docker run -p 8000:8000 -p 8001:8001 -e WEBCAT_MODE=demo webcat:latest
112-
113-
docker-run-prod: ## Run Docker container in production mode
114-
@echo "🐳 Running Docker container in production mode..."
115-
docker run -p 8000:8000 -e WEBCAT_MODE=mcp webcat:latest
111+
docker run -p 8000:8000 webcat:latest
116112

117113
# Development servers
118114
dev: ## Start MCP server with auto-reload (development mode)
@@ -123,23 +119,6 @@ dev: ## Start MCP server with auto-reload (development mode)
123119
@echo ""
124120
cd docker && PYTHONPATH=. watchmedo auto-restart --recursive --pattern="*.py" --directory=. -- python mcp_server.py
125121

126-
dev-demo: ## Start demo server with auto-reload (development mode)
127-
@echo "🚀 Starting demo server with auto-reload..."
128-
@echo "🎨 Demo client: http://localhost:8000/client"
129-
@echo "💗 Health check: http://localhost:8000/health"
130-
@echo "📊 Status: http://localhost:8000/status"
131-
@echo "🔄 Auto-reload enabled - edit files to see changes"
132-
@echo ""
133-
cd docker && PYTHONPATH=. watchmedo auto-restart --recursive --pattern="*.py" --directory=. -- python simple_demo.py
134-
135-
demo: ## Start demo server locally (production mode)
136-
@echo "🎨 Starting demo server..."
137-
cd docker && python cli.py --mode demo --port 8000
138-
139-
demo-bg: ## Start demo server in background
140-
@echo "🎨 Starting demo server in background..."
141-
cd docker && nohup python cli.py --mode demo --port 8000 > demo.log 2>&1 &
142-
@echo "Demo server started in background. Check demo.log for logs."
143122

144123
mcp: ## Start MCP server locally (production mode)
145124
@echo "🛠️ Starting MCP server..."
@@ -148,7 +127,6 @@ mcp: ## Start MCP server locally (production mode)
148127
stop-bg: ## Stop background servers
149128
@echo "🛑 Stopping background servers..."
150129
pkill -f "python cli.py" || true
151-
pkill -f "python simple_demo.py" || true
152130
@echo "Background servers stopped."
153131

154132
# Health and monitoring
@@ -162,7 +140,7 @@ status: ## Check server status
162140

163141
logs: ## Show recent logs
164142
@echo "📝 Recent logs..."
165-
tail -f docker/demo.log || tail -f /tmp/webcat*.log
143+
tail -f /tmp/webcat*.log
166144

167145
# Cleanup
168146
clean: ## Clean up temporary files and caches

README.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Web search and content extraction for AI models via Model Context Protocol (MCP)**
44

5-
[![Version](https://img.shields.io/badge/version-2.3.1-blue.svg)](https://github.com/Kode-Rex/webcat)
5+
[![Version](https://img.shields.io/badge/version-2.3.2-blue.svg)](https://github.com/Kode-Rex/webcat)
66
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
77
[![Docker](https://img.shields.io/badge/docker-multi--platform-blue.svg)](https://hub.docker.com/r/tmfrisinger/webcat)
88

@@ -29,23 +29,19 @@ docker run -p 8000:8000 -e WEBCAT_API_KEY=your_token tmfrisinger/webcat:latest
2929
cd docker
3030
python -m pip install -e ".[dev]"
3131

32-
# Start demo server with UI
33-
python simple_demo.py
32+
# Start MCP server with auto-reload
33+
make dev
3434

35-
# Or use make commands
36-
make dev # Start with auto-reload
37-
make dev-demo # Start demo with auto-reload
35+
# Or run directly
36+
python mcp_server.py
3837
```
3938

40-
![WebCat Demo Client](assets/webcat-demo-client.png)
41-
4239
## What is WebCat?
4340

4441
WebCat is an **MCP (Model Context Protocol) server** that provides AI models with:
4542
- 🔍 **Web Search** - Serper API (premium) or DuckDuckGo (free fallback)
4643
- 📄 **Content Extraction** - Clean markdown conversion with Readability + html2text
4744
- 🌐 **SSE Streaming** - Real-time results via Server-Sent Events
48-
- 🎨 **Demo UI** - Interactive testing interface
4945
- 🐳 **Multi-Platform Docker** - Works on Intel, ARM, and Apple Silicon
5046

5147
Built with **FastAPI**, **FastMCP**, and **Readability** for seamless AI integration.
@@ -89,18 +85,15 @@ echo "SERPER_API_KEY=your_key" > .env
8985

9086
# Development mode with auto-reload
9187
make dev # Start MCP server with auto-reload
92-
make dev-demo # Start demo server with auto-reload
9388

9489
# Production mode
9590
make mcp # Start MCP server
96-
make demo # Start demo server
9791
```
9892

9993
## Available Endpoints
10094

10195
| Endpoint | Description |
10296
|----------|-------------|
103-
| `http://localhost:8000/demo` | 🎨 Interactive demo UI |
10497
| `http://localhost:8000/health` | 💗 Health check |
10598
| `http://localhost:8000/status` | 📊 Server status |
10699
| `http://localhost:8000/mcp` | 🛠️ MCP protocol endpoint |
@@ -226,7 +219,7 @@ Hooks run automatically on `git commit` to ensure code quality. Install with `ma
226219
```
227220
docker/
228221
├── mcp_server.py # Main MCP server (FastMCP)
229-
├── simple_demo.py # Demo server with interactive UI
222+
├── cli.py # CLI interface for server modes
230223
├── health.py # Health check endpoint
231224
├── api_tools.py # API tooling utilities
232225
├── clients/ # External API clients
@@ -270,7 +263,7 @@ cd docker
270263

271264
# Manual multi-platform build and push
272265
docker buildx build --platform linux/amd64,linux/arm64 \
273-
-t tmfrisinger/webcat:2.3.1 \
266+
-t tmfrisinger/webcat:2.3.2 \
274267
-t tmfrisinger/webcat:latest \
275268
-f Dockerfile --push .
276269

@@ -281,8 +274,8 @@ docker buildx imagetools inspect tmfrisinger/webcat:latest
281274
**Automated Releases:**
282275
Push a version tag to trigger automated multi-platform builds via GitHub Actions:
283276
```bash
284-
git tag v2.3.1
285-
git push origin v2.3.1
277+
git tag v2.3.2
278+
git push origin v2.3.2
286279
```
287280

288281
## Limitations
@@ -317,4 +310,4 @@ MIT License - see [LICENSE](LICENSE) file for details.
317310

318311
---
319312

320-
**Version 2.3.1** | Built with FastMCP, FastAPI, Readability, and html2text
313+
**Version 2.3.2** | Built with FastMCP, FastAPI, Readability, and html2text

docker/demo_utils.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

docker/endpoints/demo_client.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)