Module: NvimMcpServer

Extended by:
Forwardable
Defined in:
lib/nvim_mcp_server.rb,
lib/nvim-mcp-server/config.rb,
lib/nvim-mcp-server/version.rb,
lib/nvim-mcp-server/tools/base_tool.rb,
lib/nvim-mcp-server/tools/update_buffer_tool.rb,
lib/nvim-mcp-server/tools/get_project_buffers_tool.rb

Defined Under Namespace

Classes: BaseTool, Config, Error, GetProjectBuffersTool, UpdateBufferTool

Constant Summary collapse

VERSION =
"0.2.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



17
18
19
# File 'lib/nvim_mcp_server.rb', line 17

def config
  @config
end

Class Method Details

.log(level, message) ⇒ Object



22
23
24
25
26
# File 'lib/nvim_mcp_server.rb', line 22

def log(level, message)
  log_level = @levels[level] || Logger::INFO

  @config.logger.add(log_level, message)
end