MCP时间服务 (v0.1.0)
这是一个基于MCP协议的时间服务器,提供获取当前时间和格式化日期等功能。 大语言模型可以通过这个服务获取实时时间信息。
安装
pip install mcp-time-service1
功能
工具 (Tools)
get_current_time: 获取当前时间,精确到毫秒。format_date(format_string: str): 按照指定格式返回当前日期。
资源 (Resources)
time://timezone_info: 提供当前系统的时区信息。
在阿里云百炼中使用
在阿里云百炼平台的MCP服务配置中,使用以下JSON:
{
"mcpServers": {
"time-service": { // 服务名称,可自定义
"command": "uvx",
"args": ["mcp-time-service1"]
}
}
}
本地运行
安装后,您可以在本地通过以下方式运行:
# 使用uvx
uvx mcp-time-service1
# 使用包提供的命令
mcp-time-service1
# 使用Python -m
python -m mcp_time_service1
按 Ctrl+C 停止服务器。
许可证
MIT License
Metadata
Release files for mcp-time-service1 0.1.0
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_time_service1-0.1.0.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_time_service1-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / mcp_time_service1-0.1.0.tar.gz
| Download URL | mcp_time_service1-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
051c5e8de1d6d4a7b30890d11ed8fc1f9298348de3f0cb1a824890618d9edcb9
|
|
BLAKE2b-256 checksum How to use checksums |
800315e5cbbef697a10135f9dd95bdb3a0926532eb77f1c6ee54e8d56c9c8888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / mcp_time_service1-0.1.0-py3-none-any.whl
| Download URL | mcp_time_service1-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8478ccbb8c3755d37e2eed44febbba298b0f7ac1b8350e76523be85d73b16528
|
|
BLAKE2b-256 checksum How to use checksums |
f01e0de5f15bd41c45b3314be94c5a61c9157cb8810e2858160e34351adefc1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Security for mcp-time-service1 0.1.0
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.