mcpserver

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: Unlicense Imports: 18 Imported by: 0

Documentation

Overview

Package mcpserver implements the proton-cal MCP (Model Context Protocol) stdio server, exposing Proton Calendar tools (list calendars, list / create / update / delete events) over stdin/stdout JSON-RPC so AI tools (Claude Code, opencode, ...) can use the calendar natively.

Every tool takes an optional `calendar` argument (ID or name), defaulting to the account's default calendar, else the first. Time-taking tools take an optional `tz` override, defaulting to the configured timezone.

stdout belongs to the MCP transport; all logging goes to stderr. The server never prompts: a missing session yields tool errors directing the user to run `proton-cal login`.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the MCP implementation version advertised to clients. It is set by the CLI to match the build version (stamped via ldflags); "dev" for a plain `go build`.

Functions

func Run

func Run(ctx context.Context) error

Run starts the stdio MCP server, blocking until the client disconnects or ctx is cancelled. Client closing stdin (normal MCP shutdown) is a clean exit.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL