Skip to main content

Crate gtd_mcp

Crate gtd_mcp 

Source
Expand description

GTD MCP Server Library

This library provides a Model Context Protocol (MCP) server for GTD (Getting Things Done) task management. It implements the GTD methodology with support for tasks, projects, and contexts, with automatic Git-based version control.

§Architecture

The library follows a 3-layer architecture:

  • MCP Layer: GtdServerHandler - Handles MCP protocol communication
  • Domain Layer: gtd module - Core GTD data models and business logic
  • Persistence Layer: storage module - File-based TOML storage with Git sync

§Example

use gtd_mcp::GtdServerHandler;
use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    let handler = GtdServerHandler::new("gtd.toml", false)?;
    // Use handler with MCP server...
    Ok(())
}

Re-exports§

pub use git_ops::GitOps;
pub use gtd::GtdData;
pub use gtd::Nota;
pub use gtd::NotaStatus;
pub use gtd::local_date_today;
pub use storage::Storage;

Modules§

formatting
Formatting helper functions for GTD MCP server
git_ops
gtd
GTD domain models and business logic
handlers
MCP tool handlers for GTD server
migration
Migration module for GTD data format versions
storage
validation
Validation helper functions for GTD MCP server

Structs§

GtdServerHandler
MCP Server handler for GTD task management