A tiny MCP server example
Project description
MCPTiny
MCPTiny 是一个基于 Model Context Protocol (MCP) 的最小化服务示例,用于演示如何创建和使用 MCP 服务器。
安装要求
- Python 3.13 或更高版本
- FastMCP 库
安装方法
通过 pip 安装
pip install mcptiny
从源代码安装
git clone https://github.com/lvst-gh/mcptiny.git
cd mcptiny
pip install -e .
使用方法
在 Amazon Q 中配置
在 Amazon Q 配置文件中添加以下配置:
{
"mcp-servers": {
"mcptiny": {
"command": "uvx",
"args": [
"mcptiny@latest"
],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
}
}
}
}
功能
list_files: 获取指定路径下的文件列表
许可证
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcptiny-0.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcptiny-0.1.0.tar.gz.
File metadata
- Download URL: mcptiny-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e9f6d385012c5d7acc2a49fee3b13a731b065c6d41f623ed2f2c6e0c9cf722f
|
|
| MD5 |
ad388eb2be2cec58350f5697db6fc464
|
|
| BLAKE2b-256 |
54d72d1f5396d73001b42322b5827d5c96a0f78f84ac4e1668a0111ef9aeaf08
|
File details
Details for the file mcptiny-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcptiny-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1bec96fb0088eb3bd4871a0274cea29a60c077fa0aae166b9cc13153295b550
|
|
| MD5 |
aa21f0c1a4cef9fd54fa97c49ff4e24f
|
|
| BLAKE2b-256 |
52d945ece791f284872bf71b3db046b51880e1e0285382b47f43abdabfe0a819
|