Skip to main content

Toki Toki no Mi — a Grand Line MCP server.

Project description

⏳ Toki Toki no Mi

Toki Toki no Mi icon

An MCP server that remembers why each decision was made — a local, searchable decision log.

A Model Context Protocol (MCP) server — one focused tool you plug into an MCP-compatible client (Claude Desktop, Claude Code, Cursor, and others).

What it does

A conversation's context window forgets. A few sessions later, the reasoning behind an architectural choice is gone, and you re-litigate decisions you already settled — or quietly reverse them without noticing.

Toki Toki no Mi is a causality ledger. It records each decision, the alternatives you rejected, and why you chose as you did, then lets your assistant retrieve that history later — and flag a new proposal that contradicts a past decision.

Usage

Two tools:

  • log_causality_point — record a decision, the rejected alternatives, and the justification
  • time_leap_retrieval — recall past decisions (all of them, or filtered by keyword)

Decisions are stored locally in SQLite under ~/.grandline/ and also mirrored to a Markdown file, so any external search tool can be pointed at the folder to read them.

Tool reference: log_causality_point(decision_made, alternatives_rejected, justification) · time_leap_retrieval(query: str = "")

How it works

Self-contained, no API key, fully local. The ledger is a single SQLite file on your machine with no external dependencies. Nothing is sent anywhere.

Install

Requires Python 3.10 or newer.

pip install toki-toki-mcp

This installs the toki-toki command.

Then register it with your MCP client — either run claude mcp add toki-toki -- toki-toki, or add this to the client's config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "toki-toki": { "command": "toki-toki" }
  }
}

Restart the client and the tool is available.

The Grand Line stack

Toki Toki no Mi is part of a four-tool set. Each tool stands alone, but installing all of them unlocks a final surprise via Laugh Tale.

Package
🗿 road-poneglyph Road Poneglyph
⚔️ conquerors-haki Conqueror's Haki
toki-toki Toki Toki no Mi · ← this repo
🏴‍☠️ laugh-tale Laugh Tale

Develop

git clone https://github.com/xfloukiex-lab/toki-toki
cd toki-toki
python -m venv .venv && . .venv/Scripts/activate   # macOS/Linux: source .venv/bin/activate
pip install -e ".[dev]"
python tests/test_toki_toki.py

Attribution & license

Released under the Apache-2.0 license. The icon is original artwork (see icon.svg), generated locally; the repository ships no third-party assets.

This is a fan-inspired project. It is not affiliated with, sponsored by, or endorsed by the creators or rights holders of One Piece (Eiichiro Oda / Shueisha / Toei Animation). "One Piece" and related names are used only as thematic flavour and remain the property of their respective owners.

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

toki_toki_mcp-0.1.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

toki_toki_mcp-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file toki_toki_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: toki_toki_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for toki_toki_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 114f29acc122e82f067ab2b52b9eabb11930f869ec39d33f254033363151bdad
MD5 fe52b0244c171c686fca293babc7288e
BLAKE2b-256 623792934aa08fe53876d699ff06e988eddc7a879346117fc96a6c6df18939e2

See more details on using hashes here.

File details

Details for the file toki_toki_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: toki_toki_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for toki_toki_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3aaa522e0831d0d5c608cb062e0b3cd6935cfa6065aa531c43629b57f8ad913
MD5 46cac5698479446444f03bd0879e46a0
BLAKE2b-256 8b0498f7bd9ca3aed31fcc117e7362c18abebe65781f39498dc53a57d3b9f54d

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