Skip to content

Commit b878d9f

Browse files
authored
Merge pull request #4 from bigcodegen/develop
feat: allow configurable Neovim socket path and update lib version
2 parents 348829c + 7d89c84 commit b878d9f

File tree

4 files changed

+886
-37
lines changed

4 files changed

+886
-37
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Neovim MCP Server
22

3-
A proof of concept integration between Claude Desktop and Neovim using Model Context Protocol (MCP) and the official neovim/node-client JavaScript library. This demo leverages Vim's native text editing commands and workflows, which Claude already understands, to create a lightweight code assistance layer.
3+
A proof of concept integration between Claude Desktop (or any client) and Neovim using Model Context Protocol (MCP) and the official neovim/node-client JavaScript library. This server leverages Vim's native text editing commands and workflows, which Claude already understands, to create a lightweight code or general purpose AI text assistance layer.
44

55
<a href="https://glama.ai/mcp/servers/s0fywdwp87"><img width="380" height="200" src="https://glama.ai/mcp/servers/s0fywdwp87/badge" alt="mcp-neovim-server MCP server" /></a>
66

77
## Features
88

9-
- Connects to your nvim instance if you expose `--listen /tmp/nvim` when starting nvim
10-
- Views your current buffer
9+
- Connects to your nvim instance if you expose a socket file, for example `--listen /tmp/nvim`, when starting nvim
10+
- Views your current buffers
1111
- Gets cursor location, mode, file name
12-
- Runs vim commands
12+
- Runs vim commands and optionally shell commands through vim
1313
- Can make edits using insert or replacement
1414

1515
## API
@@ -67,6 +67,7 @@ Using this simple set of tools, Claude can peer into your neovim session to answ
6767
### Environment Variables
6868

6969
- `ALLOW_SHELL_COMMANDS`: Set to 'true' to enable shell command execution (e.g. `!ls`). Defaults to false for security.
70+
- `NVIM_SOCKET_PATH`: Set to the path of your Neovim socket. Defaults to '/tmp/nvim' if not specified.
7071

7172
## Usage with Claude Desktop
7273
Add this to your `claude_desktop_config.json`:
@@ -80,7 +81,8 @@ Add this to your `claude_desktop_config.json`:
8081
"mcp-neovim-server"
8182
],
8283
"env": {
83-
"ALLOW_SHELL_COMMANDS": "true"
84+
"ALLOW_SHELL_COMMANDS": "true",
85+
"NVIM_SOCKET_PATH": "/tmp/nvim"
8486
}
8587
}
8688
}

0 commit comments

Comments
 (0)