Files
mcp-template-python/README.md
2026-02-28 10:05:07 +08:00

61 lines
786 B
Markdown

# MCP FastAPI Application Template
🌏 [中文](./README.zh.md) | [English](./README.md)
This project provides an MCP application template integrated with FastAPI.
- [x] Support for multiple MCP mounting
- [x] Support for command-line invocation in Stdio mode
- [x] Support for StreamableHTTP
- [x] Support for packaging and distribution
## Getting Started
Install dependencies:
```bash
make
```
Development:
```bash
make dev
```
You can access the example MCP interface (Streamable HTTP).
Call via command line with `--stdio`:
```bash
make prod -- --stdio
```
## Deployment
Production:
```bash
make prod
```
Build Python Wheel package:
```bash
make build
```
## Docker Deployment
Run:
```bash
docker compose up -d
```
Build only:
```bash
docker compose build
```