Skip to main content

A simple MCP time service

Project description

MCP Educate Time

一个基于 MCP (Model Context Protocol) 的简单时间服务,提供获取当前系统时间的工具。

项目结构

me/
├── mcp_educate_time/         # Python 包
│   ├── __init__.py
│   └── time_server.py        # MCP 时间服务实现
├── time_server.py            # 根级时间服务(同上)
├── main.py                   # 入口示例
├── pyproject.toml            # 项目配置
├── setup.py                  # 安装配置
├── .mcp.json                 # MCP 配置(含 Bing Search)
├── .python-version           # Python 版本
└── uv.lock                   # 依赖锁定文件

功能

  • get_time() — 获取当前系统时间(通过 MCP Tool 暴露)

快速开始

安装依赖

pip install -e .

运行服务

python time_server.py

服务默认通过 stdio 传输运行,可与支持 MCP 的客户端(如 Claude Desktop、Trae IDE 等)集成。

发布到 PyPI

python -m build
python -m twine upload dist/*

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_educate_time_luxiju-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_educate_time_luxiju-0.1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_educate_time_luxiju-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_educate_time_luxiju-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for mcp_educate_time_luxiju-0.1.1.tar.gz
Algorithm Hash digest
SHA256 346bd785923867cc4021db518e45fd83379387898dff1ecb30dd20aebd1abfd1
MD5 fc5c67c85f3e53cac65079f59c6d40f0
BLAKE2b-256 3bf026909414b0373e97ed0edee7efb73bcec794710d60914f5a097597b23a79

See more details on using hashes here.

File details

Details for the file mcp_educate_time_luxiju-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_educate_time_luxiju-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a21a068005a300f9e1bd44378e2cd3a25c861fdfb7fa5ec3178c19166a375a1
MD5 8ae244efc4b68b4996dfa9153e6aa621
BLAKE2b-256 9c41b46798aacd78408a9f01152f871e8afa44660c5ac88b57c9ccb39a240576

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page