andy
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@andy analyze our last session and save any learned patterns as rules"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 draftlearning_proposal.mdfor user review.apply_customization: Persists the rule or skill to disk.
Resources:
rules://workspace: Exposes local.cursorrulesand.agents/AGENTS.mdrules.rules://global: Exposes global~/.gemini/config/AGENTS.mdrules.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 uvOption 1 — Assisted setup (recommended)
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 setupandy 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 serveCursor → writes an
andyentry 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 serveFor 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 setupHow 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:
Load the
learnprompt instructions.Scan the current terminal session for corrections/successes.
List existing customizations to prevent duplicates.
Call
write_proposalto write a draftlearning_proposal.mdto your workspace root.Present the draft in chat and ask for your approval.
Once you say "yes", call
apply_customizationto save it.
In Cursor Chat
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.The agent will read its context, write
learning_proposal.mdfor your review, and wait for your confirmation to save the files.
Available Tools
4 toolsapply_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
Scored across 4 tools
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.
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.
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.
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
Related MCP Connectors
Memory, reflection and safety for AI agents. Hosted or local, no vector database.
Private, portable memory and reusable skills for AI agents.
Path-scoped project memories, rules and skills for coding agents, on your machine or Pathrule Cloud.
Keeps the rules, decisions and fixes you explain to your AI, for every session and tool. EU servers.
Related MCP Servers
- AlicenseAqualityAmaintenanceSelf-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.232MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseNot gradedqualityCmaintenanceEnables 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.1MIT
- AlicenseBqualityDmaintenanceEnables 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.15MIT