andy
Enables AI agents to learn from their sessions by inspecting history, proposing rules or skills, and automatically persisting them to configuration files.
README
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.
Install
You need uv (a fast Python package manager):
brew install uv
Option 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 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
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 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:
- 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.