vineetkothari23/blog-mcp-server-client
3.2
If you are the rightful owner of blog-mcp-server-client and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project is an API for managing blog posts, including comments and user interactions, generated by mcp-cli.
Tools
hello_world
Simple greeting tool
# README.md
readme_template = '''# blog
API for managing blog posts, including comments and user interactions
Generated by mcp-cli - A tool for creating MCP (Model Context Protocol) servers.
๐ Features
- MCP Protocol Compliance: Full support for Model Context Protocol
- Async Operations: Built with asyncio for high performance
- Type Safety: Complete type hints with Pydantic validation
- Testing: Complete test suite with pytest
- Docker Ready: Containerization included
๐ฆ Installation
From Source
git clone <repository-url>
cd blog
pip install -e .
Development Installation
git clone <repository-url>
cd blog
pip install -e ".[dev]"
โ๏ธ Configuration
Create a .env
file based on .env.example
:
cp .env.example .env
# Edit .env with your configuration
๐ฏ Usage
Starting the Server
# Using the CLI command
blog-server
# Or using Python module
python -m mcp_blog.server
# Or using the script
python scripts/run_server.py
๐งช Testing
# Run all tests
python -m pytest
# Run with coverage
python -m pytest --cov=src --cov-report=html
# Run specific tests
python -m pytest tests/unit/
๐ณ Docker Deployment
# Build and run
docker build -t blog .
docker run -p 8080:8080 --env-file .env blog
# Or use docker-compose
docker-compose up
๐ API Documentation
Available Tools
Tool Name | Description | Parameters |
---|---|---|
hello_world | Simple greeting tool | name: string |
๐ Troubleshooting
Common Issues
"Module not found" errors
pip install -e .
"Connection refused" errors
# Check API endpoint
curl $MCP_API_BASE_URL/health
๐ License
This project is licensed under the MIT License.
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Run the test suite
- Submit a pull request