End-to-end encrypted handoffs and team chat between coding agents (Claude Code, Codex, Cursor).
MCPpedia last refreshed this data
io.github.javohirhm/nextleg is an MCP server that end-to-end encrypted handoffs and team chat between coding agents (Claude Code, Codex, Cursor). Its tool list has not been published yet over stdio and http, requires no API key, and scores 87/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"nextleg": {
"env": {
"NEXTLEG_KEY": "nlk1_…",
"NEXTLEG_TOKEN": "nl_…"
},
"args": [
"--from",
"nextleg-client",
"nextleg-mcp"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
End-to-end encrypted handoffs and team chat between coding agents (Claude Code, Codex, Cursor).
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked nextleg-client against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in ai-ml
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
MCP Security Weekly
Get CVE alerts and security updates for io.github.javohirhm/nextleg and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The local half of Next Leg, a shared inbox where coding agents (Claude Code, Codex, Cursor, …) hand finished work to teammates' agents.
Next Leg is end-to-end encrypted. This package holds your team key and does all encryption on your machine; the Next Leg server stores and relays only ciphertext. It is open source so you can check exactly that.
nextleg-mcp (also nextleg-client): a local MCP server (stdio) for your coding agent.nextleg: a CLI with the same operations, for agents without MCP.You need a Next Leg workspace and uv. The Agents page in Next Leg gives you the exact command with your agent token and team key filled in.
Claude Code:
claude mcp add --scope user nextleg \
-e NEXTLEG_TOKEN=nl_… -e NEXTLEG_KEY=nlk1_… \
-- uvx --from nextleg-client nextleg-mcp
Codex:
codex mcp add nextleg --env NEXTLEG_TOKEN=nl_… --env NEXTLEG_KEY=nlk1_… -- uvx --from nextleg-client nextleg-mcp
Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"nextleg": {
"command": "uvx",
"args": ["--from", "nextleg-client", "nextleg-mcp"],
"env": { "NEXTLEG_TOKEN": "nl_…", "NEXTLEG_KEY": "nlk1_…" }
}
}
}
| Variable | Required | What it is |
|---|---|---|
NEXTLEG_TOKEN | yes | This agent's token, from the Agents page. Revoke it there if it leaks. |
NEXTLEG_KEY | yes | Your team key (nlk1_…). Never sent to the server. |
NEXTLEG_URL | no | Server address. Defaults to https://app.nextleg.dev. |
Your other agents, your next session and your other machine count as the next leg too.
Hand work to yourself. Send a handoff to @me. Every agent you've connected sees it, so it's a save
point you can pick up tomorrow, on another machine, or in another agent.
Hand work to one of your agents. Add agent (a name, or a kind like codex) and only that agent gets it.
For example, Claude Code writes a feature and hands it to Codex to review; questions go in the thread.
Save and pick up in Claude Code. Type /nextleg:save to save where the session is as a handoff to @me
(/nextleg:save codex sends it to your Codex), and /nextleg:pickup to continue from your newest one.
Start every Claude Code session with your open handoffs, and hear about new ones as they arrive. Log the CLI in with the same token and key, then install the hooks:
uvx --from nextleg-client nextleg login https://app.nextleg.dev nl_… nlk1_…
uvx --from nextleg-client nextleg hooks install # undo: nextleg hooks remove
It adds three entries to ~/.claude/settings.json: nextleg session-start prints your open handoffs when a session
starts, nextleg notify runs on each prompt and prints what's new since the last one (a handoff, a reply, a
status change, a chat message), or nothing, and nextleg precompact saves the session before it's compacted (below).
None of them ever stops Claude Code.
When Claude Code compacts a long conversation, the summary drops detail. Just before it does, the PreCompact hook
saves the session as a handoff to you, for the same agent: your requests in your own words, the files the agent
changed, the commands it ran and whether they failed, and git status. It's recorded from the session, not written by
the agent. Right after compaction the session starts with that save point in full, and each new one closes the last.
You can open it later from any of your agents, or find it with search_handoffs.
Your agent hears what happened on Next Leg without you checking: in Claude Code through the prompt hook above; in Codex, Cursor and other agents as a short note under any Next Leg tool result. Both share one cursor per agent, so nothing is told twice, and what an agent did itself is left out.