FastMCP Template
파일 설명
(fastmcp-template) moono@9ff9740bf671:/mnt/data_ssd/ncai-git-repos/fastmcp-template$ tree .
.
|-- README.md
|-- fastmcp.json # FastMCP cli 용
|-- launcher.py # FastMCP cli 용
|-- pyproject.toml # uv project 세팅
|-- src # actual source code
| `-- ecommerce_mcp_server
| |-- Dockerfile
| |-- __init__.py
| |-- core
| | |-- __init__.py
| | |-- httpx_async_client.py
| | `-- models.py
| |-- logs
| | |-- __init__.py
| | |-- formatters.py
| | |-- helper.py
| | `-- loaders.py
| |-- server.py
| `-- tools
| |-- __init__.py
| `-- openapi.py
`-- uv.lock
App 환경변수
| env variable | description | default |
|---|---|---|
MCP_TRANSPORT |
select transport (stdio, http) |
stdio |
MCP_HOST |
host setting on http setting |
0.0.0.0 |
MCP_PORT |
port setting on http setting |
8000 |
사용 방법
- Command line
# 1-1. Using `uv`
~$ uv run python -m ecommerce_mcp_server.server
~$ MCP_TRANSPORT=http uv run python -m ecommerce_mcp_server.server # http transport with --host=0.0.0.0 --port=8000
# 1-2. Using `pyproject.toml` defined script
~$ run-mcp-server
~$ MCP_TRANSPORT=http run-mcp-server # http transport with --host=0.0.0.0 --port=8000
# 1-3. FastMCP cli using `fastmcp.json` (default)
~$ fastmcp run
~$ fastmcp run fastmcp.json
~$ fastmcp run --transport=http --host=0.0.0.0 --port=8000 # http transport
- vscode debugger
- choose launch target
Python Debugger: FastMCP
FastMCP Cli
- Run MCP server
~$ fastmcp run
- Extract schema
~$ fastmcp inspect launcher.py -f fastmcp -o manifest.json
Metadata
Release files for mcp-server-sample 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_server_sample-0.1.4.tar.gz | 74.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_sample-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 83.8 kB
Release files / mcp_server_sample-0.1.4.tar.gz
| Download URL | mcp_server_sample-0.1.4.tar.gz |
|---|---|
| Size | 74.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94a3183bd30ccc24cad1b8cf58f6c3300c35e58ac62db04bd561510be285daac
|
|
BLAKE2b-256 checksum How to use checksums |
8cfe11799773c4bf6b19e61fe302b73dc8a06c5bb8b60d844cc66df0af01d595
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / mcp_server_sample-0.1.4-py3-none-any.whl
| Download URL | mcp_server_sample-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69e69437eb2714ad93edf8809b60a3497d07e769a884bab50d1445c8f18e7a9d
|
|
BLAKE2b-256 checksum How to use checksums |
b8f4b89d99ac537e641f0357fe730a2dfd6370f0c12e000a01e9e5f598dba752
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for mcp-server-sample 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.