letta-ai/letta-code is an agent harness for building assistants that retain memory, identity, and experience across interactions instead of treating each task as isolated. Developers use it through local, desktop, browser, or messaging interfaces for interactive or continuously running agents, and its catalogue entries configure the agents' skills, instructions, rules, and behavior.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add letta-ai/letta-code --skill using-mcp-toolsgit clone --depth 1 https://github.com/letta-ai/letta-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/letta-ai/letta-code/using-mcp-tools)<a href="https://agentmods.dev/skills/letta-ai/letta-code/using-mcp-tools"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/using-mcp-tools/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/letta-ai/letta-code/using-mcp-tools"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/using-mcp-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.01625 |
| Opus 5.5 | $0.00024 | $0.00650 |
| Sonnet 5.5 | $0.00012 | $0.00325 |
| Haiku 4.5 | $0.00006 | $0.00162 |
Grade A, and why
using-mcp-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Using MCP tools
letta mcp gives the agent one unified view of every MCP server it can reach: servers connected to the agent in Letta Cloud and servers configured locally on this machine. It works from any surface where the agent runs — cloud sandboxes (chat.letta.com), Letta Desktop, and terminals. All output is JSON.
Commands
letta mcp list # servers: [{name, transport}]
letta mcp get <server> # one server's connection configuration (credentials redacted)
letta mcp tools [server] # tool names + descriptions only
letta mcp tools [server] --full # ...including every tool's complete schema
letta mcp schema <tool-name> # one tool's complete schema
letta mcp search <query> [--mode] [--limit] # ranked tool schemas: [{tool, rank, score}]
letta mcp call <tool-name> [--args | --args-file] # run a tool, print a CallToolResult
Every command accepts --agent <id>, defaulting to LETTA_AGENT_ID/AGENT_ID — do not pass it unless targeting another agent.
Durable events from managed connections
For a named, Letta-managed MCP connection, Letta Cloud can keep a provider trigger subscription active after the current turn, process, or agent computer stops. Provider events are delivered only to an existing public Cloud webhook owned by the same agent. The provider credential stays server-side; never ask the user for it or try to expose it to the sandbox.
This is not the MCP Events protocol. MCP Events is still a draft MCP proposal for protocol-level event delivery between MCP clients and servers. The commands below manage Letta Cloud's provider-backed trigger subscriptions outside the MCP transport. Do not describe a successful subscription as MCP Events support or assume a draft MCP Events client/server contract.
Use the bundled helper. It is restricted to AGENT_ID and does not accept an
agent override:
node <SKILL_DIR>/scripts/manage-managed-events.mjs <command> [options]
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago Changed · +88 lines · -19 tokens per session e388d4a2f42c
- 2mo ago First seen · 45 lines · 79 tokens per session scan A 31f2083652c1
using-mcp-tools is a skill published in the GitHub repository letta-ai/letta-code (3,935 stars, last pushed today), licensed Apache-2.0. It adds 60 tokens to every session and 1,625 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-02.
using-mcp-tools compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| using-mcp-toolsletta-ai/letta-code | Skill | 3.9k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| agent-code-analyzerruvnet/ruflo | Skill | 83k | today | MIT | A | 19 | Claude Code |
| worker-integrationruvnet/ruflo | Skill | 83k | today | MIT | A | 14 | Claude Code |
| eval-dataset-designbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 138 | Claude Code, Codex |
| memory-systembojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 95 | Claude Code, Codex |
| writingbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 27 | Claude Code, Codex |
| memory-recallzilliztech/memsearch | Skill | 3.0k | 3d ago | MIT | A | 152 | Claude Code |