Formats the current date and time in many formats and generates date-based file names.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add datetime --env PYTHON='<PYTHON>' -- uvx mcp-datetime~/.codex/config.toml
[mcp_servers.datetime]
command = "uvx"
args = ["mcp-datetime"]
env = { PYTHON = "<PYTHON>" }
# codex mcp add datetime --env PYTHON='<PYTHON>' -- uvx mcp-datetime~/.cursor/mcp.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"datetime": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"datetime": {
"command": "uvx",
"args": [
"mcp-datetime"
],
"env": {
"PYTHON": "<PYTHON>"
}
}
}
}需要的环境变量
PYTHON
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。