-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Vision
Make nushell MCP fully self-sufficient so that AI coding assistants (like Claude Code) can operate entirely through nushell — no separate file tools needed.
Current State
Today, Claude Code uses nushell MCP for shell evaluation but still relies on its own built-in tools for:
- Reading files (
Readtool) - Writing files (
Writetool) - Editing files (
Edittool) - Searching (
Glob,Greptools)
Goal
Nushell already has all these capabilities natively:
open/savefor file I/Ostr replacefor editingglob/ls **/*for finding files- Built-in string manipulation
If we expose the right primitives and optimize for AI agent usage, nushell MCP could be the only tool an AI needs.
Why This Matters: Remote Sessions
The killer feature: SSH-based remote coding.
If everything goes through nushell MCP over stdio:
- SSH to a remote machine
- Start
nu --mcp - Connect Claude Code to that stdio stream
- Everything works remotely — file reads, writes, searches, all over the network
No need for separate file sync, no sshfs, no remote VS Code servers. Just nushell.
Potential Enhancements
- Transport options — Currently only stdio, could add streamable HTTP (rmcp already supports
transport-streamable-http-server) - Optimized file operations — Perhaps dedicated MCP tools for common patterns (read file with line numbers, atomic edit, etc.)
- Session state — The
$historyvariable (feat(mcp): add $history variable and structured response format #17132) is a good start for maintaining context
Related
- feat(mcp): add $history variable and structured response format #17132 —
$historyvariable for structured responses - MCP: Piping non-nushell commands hangs forever (e.g.,
echo "hi" | cat) #17122 — Piping non-nushell commands - NUON: Support raw strings (SNUON) for token-efficient LLM serialization #17124 — SNUON for token-efficient serialization
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels