Skip to content

Commit 9076bbb

Browse files
committed
fix: attempt to address visual selection
1 parent b15bdaf commit 9076bbb

File tree

5 files changed

+178
-111
lines changed

5 files changed

+178
-111
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Connect Claude Desktop (or any Model Context Protocol client) to Neovim using 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

5-
**Version 0.5.3** - Now with a DXT package!
6-
75
<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>
86

97
## Features
@@ -40,7 +38,8 @@ Connect Claude Desktop (or any Model Context Protocol client) to Neovim using MC
4038
- On error, `'nvim:errmsg'` contents are returned
4139
- **vim_status**
4240
- Get comprehensive Neovim status
43-
- Returns cursor position, mode, filename, visual selection, window layout, current tab, marks, registers, working directory, LSP client info, and plugin detection
41+
- Returns cursor position, mode, filename, visual selection with enhanced detection, window layout, current tab, marks, registers, working directory, LSP client info, and plugin detection
42+
- Enhanced visual selection reporting: detects visual mode type (character/line/block), provides accurate selection text, start/end positions, and last visual selection marks
4443
- **vim_edit**
4544
- Edit lines using insert, replace, or replaceAll modes
4645
- Input `startLine` (number), `mode` (`"insert"` | `"replace"` | `"replaceAll"`), `lines` (string)

package-lock.json

Lines changed: 32 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-neovim-server",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"description": "An MCP server for neovim",
55
"type": "module",
66
"bin": {
@@ -26,13 +26,13 @@
2626
},
2727
"homepage": "https://github.com/bigcodegen/mcp-neovim-server#readme",
2828
"dependencies": {
29-
"@modelcontextprotocol/sdk": "^1.13.2",
29+
"@modelcontextprotocol/sdk": "^1.17.4",
3030
"neovim": "^5.3.0",
3131
"ts-node": "^10.9.2",
32-
"zod": "^3.25.67"
32+
"zod": "^3.25.76"
3333
},
3434
"devDependencies": {
35-
"@types/node": "^24.0.6",
36-
"typescript": "^5.8.3"
35+
"@types/node": "^24.3.0",
36+
"typescript": "^5.9.2"
3737
}
3838
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { z } from "zod";
1212
const server = new McpServer(
1313
{
1414
name: "mcp-neovim-server",
15-
version: "0.5.4"
15+
version: "0.5.5"
1616
}
1717
);
1818

0 commit comments

Comments
 (0)