letta-ai/letta-code
Overview
This skill connects to Model Context Protocol (MCP) servers and converts them into reusable skills. It provides simple command-line scripts to probe MCP servers over HTTP or stdio, inspect available tools, and create a dedicated skill wrapper when a server will be used repeatedly.
How this skill works
The skill offers two transport helpers: an HTTP client that sends JSON-RPC requests to a server URL, and a stdio client that runs a subprocess and communicates via stdin/stdout. Use the clients to list tools, fetch tool schemas, and call tools with JSON arguments. Once a server is understood, you can create a focused skill wrapper that embeds common defaults and invocation shortcuts.
When to use it
- You want to connect an external MCP server (HTTP or stdio) to the agent.
- You need to discover available tools and resource schemas exposed by an MCP server.
- You plan to use a particular MCP server frequently and want reusable wrappers.
- You need to test calls, troubleshoot auth, or validate input schemas before automation.
- You want a repeatable workflow for integrating third-party tool servers into the agent.
Best practices
- First determine transport: HTTP (URL) or stdio (command), then pick the matching helper.
- Always list tools and inspect a tool's schema before calling it — match JSON input to the schema.
- For HTTP servers, pass required auth headers; for stdio servers, set env vars and working directory.
- Create a lightweight wrapper skill with sensible defaults when reuse is expected to reduce friction.
- Run the subprocess command manually to verify it starts correctly before using the stdio helper.
Example use cases
- Connect to a local filesystem MCP server and call read_file to fetch project docs.
- Probe a hosted MCP endpoint with an Authorization header to list available search and vault tools.
- Wrap a frequently used GitHub MCP server in a dedicated skill that presets auth and repo settings.
- Run a Python-based MCP service as a subprocess and test tool schemas and sample calls.
- Create a convenience wrapper that exposes only the subset of MCP tools you use daily.
FAQ
If the server exposes a URL use the HTTP helper. If it is a local binary or script you run, use the stdio helper and supply the command to spawn the subprocess.
What if a tool call fails with a schema mismatch?
Run the info command for that tool to see the expected input schema, then adjust your JSON arguments to match required fields and types.
8 skills
This skill helps you connect to MCP servers and convert them into reusable tools, accelerating repeated integrations.
This skill helps you bootstrap agent memory by discovering and searching Claude Code and Codex histories to surface context.
This skill helps you work in parallel with other agents using git worktrees, keeping changes isolated while sharing the same repository history.
This skill helps you recall and retrieve past messages to restore context across conversations and identify where topics were discussed.
This skill enables you to message other agents on the Letta server to query knowledge, coordinate tasks, and share information.
This skill helps you safely discover and install external skills from trusted sources to bootstrap capabilities.
This skill guides you in designing effective Letta Code skills, including structure, references, and workflows for reliable extensions.
This skill decomposes and reorganizes memory blocks into focused, single-purpose components to improve clarity and reduce redundancy in memory-based AI