Skip to content

Register Lua functions as MCP tools #203

@guill

Description

@guill

Hello!

First of all, just want to say thanks for your work on this plugin -- it has fundamentally changed how I work.

The one thing I missed from this plugin that I used to use in CodeCompanion was the ability to easily register Lua functions in NeoVim as tools for the LLM to use. This is particularly useful to give the LLM access to driving the debugger in NeoVim.

In order to enable this functionality, I made https://github.com/guill/mcp-tools.nvim . While it technically isn't dependent on this plugin, it has integration in a way that allows every instance of OpenCode to connect to the NeoVim instance that created it (assuming it was started by opencode.nvim).

Feel free to close this issue if this isn't the right place to share, but I figure some other people might find it useful 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions