Skip to main content
Glama

Antigravity Learn MCP Server (andy)

A Model Context Protocol (MCP) server that mimics the Google Antigravity TUI slash command /learn for external agent harnesses like Cursor and Claude Code (Claude CLI).

It allows agents to inspect their own history, propose new rules or skills, and automatically write/update configurations under .cursorrules, .agents/AGENTS.md, or globally in ~/.gemini/config/.


Features

  • Prompt (learn): A guide that walks the LLM through the learn workflow (analyzing history, classifying rules/skills, proposing, and applying).

  • Tools:

    • list_customizations: Lists workspace and global rules and skills.

    • read_customization: Reads any rule or skill file.

    • write_proposal: Writes a draft learning_proposal.md for user review.

    • apply_customization: Persists the rule or skill to disk.

  • Resources:

    • rules://workspace: Exposes local .cursorrules and .agents/AGENTS.md rules.

    • rules://global: Exposes global ~/.gemini/config/AGENTS.md rules.

    • skills://workspace/list: Summarizes local workspace skills.

    • skills://global/list: Summarizes global skills.


Related MCP server: Self-Learning MCP

Install

You need uv (a fast Python package manager):

brew install uv

Copy this prompt and paste it into any AI assistant (Claude Code, Cursor, etc.). It will walk you through the rest:

I want to install andy learn (https://github.com/timtty-sinch/andy_learn_tool) to run the /learn workflow in Claude Code or Cursor. Please guide me step-by-step, including installing it and running the setup wizard.

You can also print this prompt any time with andy prompt.

Option 2 — Manual install

uv tool install git+https://github.com/timtty-sinch/andy_learn_tool
andy setup

andy setup is an interactive wizard that asks which agent you use (Claude Code, Cursor, or both) and registers the server for you:

  • Claude Code → runs claude mcp add andy --scope user -- andy serve

  • Cursor → writes an andy entry into .cursor/mcp.json (workspace or global)

Verify Claude Code registration with claude mcp list. Restart your agent afterward.

Manual registration (without the wizard)

# Claude Code
claude mcp add andy --scope user -- andy serve

For Cursor, add to .cursor/mcp.json:

{
  "mcpServers": {
    "andy": { "command": "andy", "args": ["serve"] }
  }
}

Running from a source checkout (dev)

Without installing, run the script directly — andy setup will register uv run against the script path automatically:

uv run andy_learn_mcp.py setup

How to Trigger the /learn Workflow

In Claude Code

Type the following in your Claude prompt:

Use the learn prompt to analyze this session and persist any rules or skills.

Claude will:

  1. Load the learn prompt instructions.

  2. Scan the current terminal session for corrections/successes.

  3. List existing customizations to prevent duplicates.

  4. Call write_proposal to write a draft learning_proposal.md to your workspace root.

  5. Present the draft in chat and ask for your approval.

  6. Once you say "yes", call apply_customization to save it.

In Cursor Chat

  1. In the chat input, type @ and select Prompts (if available) or simply tell the model:

    Run the andy prompt to extract and save lessons from our recent work.
  2. The agent will read its context, write learning_proposal.md for your review, and wait for your confirmation to save the files.

Available Tools

4 tools
apply_customizationA

Save the rules or skills customizations. Always ensure you have written a proposal and obtained user confirmation before calling this tool.

Args: type: The customization type - either 'rule' or 'skill'. name: The name of the skill (required for skills). For rules, this can be empty or 'cursor'. content: The complete text content to write to the file. workspace_path: Optional path to the workspace root. is_global: Set to True to save globally, False to save to workspace.

Inputs: name (required), type (required), content (required), is_global, +1 more. Returns: result

list_customizationsA

List all customization files (rules and skills) in the workspace and global directories.

Args: workspace_path: Optional custom path to the workspace root. Default is CWD.

Inputs: workspace_path. Returns: result

read_customizationA

Read the contents of a rule or skill file.

Args: type: The customization type - either 'rule' or 'skill'. name: For 'rule', name is ignored or set to 'AGENTS.md'/.cursorrules. For 'skill', it's the skill folder name. workspace_path: Optional path to the workspace root. is_global: Set to True to read from global config, False to read from workspace.

Inputs: name (required), type (required), is_global, workspace_path. Returns: result

write_proposalA

Write a learning_proposal.md file to the workspace root for user review.

Args: content: The full markdown content of the proposal. workspace_path: Optional path to the workspace root.

Inputs: content (required), workspace_path. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: apply_customization saves, list_customizations lists names, read_customization reads content, and write_proposal writes a separate proposal file. No two tools are ambiguous.

    Naming Consistency4/5

    All tools follow a verb_noun pattern, but there is a minor pluralization inconsistency (list_customizations vs. singular other tools) and the noun changes from 'customization' to 'proposal'. Overall mostly consistent.

    Tool Count5/5

    With 4 tools, the count is well-scoped for the domain of managing customizations and proposals. Each tool serves a necessary function without unnecessary duplication.

    Completeness3/5

    The toolset covers create/read/update for customizations but lacks a delete tool. Additionally, there is no tool to read or list proposals, only to write them. These gaps are notable but manageable.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      Self-learning memory for AI coding agents. Observes tool sequences, user preferences, and recurring fixes — auto-promotes high-confidence patterns into behavioral rules. 22 tools, 2 prompts, SQLite-backed, zero config.
      23
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to learn from their work by recording tasks, extracting patterns, detecting mistakes, and proactively surfacing insights, all using the agent's own model through a cooperative intelligence pattern.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to persist and recall episodic memories across sessions, consolidating experiences into reusable rules and lessons to reduce repeated mistakes and improve task performance.
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables programming agents to capture errors and conversation signals, reflect on root causes, consolidate reusable skills, and retrieve relevant context for future tasks, providing a self-learning memory loop.
      15
      MIT