MCP.so
登录

cal2prompt

@shuntaka9576

关于 cal2prompt

✨ Fetches your schedule (Google Calendar) and outputs it as a single LLM prompt, with an optional MCP server mode.

基本信息

分类

生产力

许可证

MIT

运行时

rust

传输方式

stdio

发布者

shuntaka9576

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is cal2prompt?

cal2prompt is a command-line tool that fetches your schedule (e.g., from Google Calendar) and converts it into a custom prompt or text snippet via a Jinja2 template engine. It can output directly to stdout, or run as an experimental MCP (Model Context Protocol) server.

How to use cal2prompt?

Install via brew install shuntaka9576/tap/cal2prompt or build from source with Cargo. Set up a Google OAuth2 client, create Lua configuration files (~/.config/cal2prompt/config.lua and secrets.lua), then run cal2prompt with date‑range flags (e.g., --today, --this-week) or use the mcp subcommand to launch the experimental MCP server.

Key features of cal2prompt

  • Google Calendar integration via Calendar API v3
  • Custom LLM prompt generation with a Jinja2 template engine
  • High‑speed processing built with the Rust ecosystem
  • Experimental MCP (Model Context Protocol) server mode

Use cases of cal2prompt

  • Generate a daily or weekly schedule summary as a prompt for an AI assistant
  • Feed live calendar events into an LLM via the MCP server (e.g., Claude Desktop)
  • Produce custom‑formatted text snippets for time‑blocking or status reports
  • Combine multiple Google Calendars into a single chronological overview

FAQ from cal2prompt

How does authentication work?

cal2prompt uses Google OAuth2. You must create your own Google project and OAuth client; the generated token is stored in ~/.local/share/cal2prompt/oauth. The first run automatically starts the authentication flow.

What configuration format does cal2prompt use?

Configuration is written in Lua using two files: secrets.lua for sensitive data (client ID, client secret, calendar IDs) and config.lua for the main setup (time zone, template, etc.).

How can I use cal2prompt as an MCP server with Claude Desktop?

Add a mcpServers entry in claude_desktop_config.json specifying the full path to the cal2prompt binary and the mcp argument, plus the HOME environment variable.

Are there any known limitations?

The MCP mode is experimental and may change without notice. You must supply your own Google Calendar API token; the project owner cannot provide a pre‑approved client due to security and approval constraints.

Where are OAuth tokens stored?

Tokens are stored in the file defined by the settings.oauthFilePath configuration option, defaulting to ~/.local/share/cal2prompt/oauth.

评论

生产力 分类下的更多 MCP 服务器