Skip to content

Commit 058dd59

Browse files
committed
refactor: neovim resources
1 parent c3fc53b commit 058dd59

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

lua/mcphub/native/neovim/files/environment.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ local os_utils = require("mcphub.native.neovim.utils.os")
33

44
---@type MCPResource
55
return {
6-
name = "Environment",
6+
name = "Workspace",
77
description = "This resource gives comprehensive information about the workspace, editor and OS. Includes directory structure, visible and loaded buffers along with the OS information.",
8-
uri = "neovim://workspace/info",
8+
uri = "neovim://workspace",
99
mimeType = "text/plain",
1010
handler = function(req, res)
1111
local editor_info = req.editor_info
@@ -38,7 +38,7 @@ return {
3838

3939
local text = string.format(
4040
[[
41-
<environment_details>
41+
<workspace_details>
4242
## System Information
4343
OS: %s (%s)
4444
Hostname: %s
@@ -62,7 +62,7 @@ Files: %d
6262
6363
## Current Time
6464
%s
65-
</environment_details>
65+
</workspace_details>
6666
]],
6767
os_info.os_name,
6868
os_info.arch,

lua/mcphub/native/neovim/files/search.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ local search_tools = {
104104
},
105105
handler = function(req, res)
106106
local params = req.params
107-
-- local path = vim.fn.expand(params.path or ".")
108107
local path = Path:new(params.path or "."):absolute()
109108
local depth = nil
110109
local hidden = false

lua/mcphub/native/neovim/lsp.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ local lsp_utils = require("mcphub.native.neovim.utils.lsp")
22
local mcphub = require("mcphub")
33

44
mcphub.add_resource("neovim", {
5-
name = "Diagnostics: Current File",
5+
name = "Diagnostics: Buffer",
66
description = "Get diagnostics for the current file",
7-
uri = "neovim://diagnostics/current",
7+
uri = "neovim://diagnostics/buffer",
88
mimeType = "text/plain",
99
handler = function(req, res)
1010
-- local context = utils.parse_context(req.caller)

0 commit comments

Comments
 (0)