-
-
Notifications
You must be signed in to change notification settings - Fork 303
feat(editing-support): Add mcphub.nvim #1401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
361329c
Create init.lua
Yorizel d67f1bb
Create README.md
Yorizel d45a103
Update README.md
Yorizel e209f23
Update init.lua
Yorizel 517b615
Update init.lua
Yorizel 483d2c2
Update lua/astrocommunity/editing-support/mcphub-nvim/README.md
Uzaaft 6d02ccc
Update lua/astrocommunity/editing-support/mcphub-nvim/init.lua
Uzaaft e4416e8
Update lua/astrocommunity/editing-support/mcphub-nvim/init.lua
Uzaaft ad6c8a5
Update lua/astrocommunity/editing-support/mcphub-nvim/README.md
Uzaaft 75a3dbe
feat: Move over to opts syntax, and format code
Uzaaft f81fcb5
Making sure it loads on file enter
Yorizel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Mcphub.nvim | ||
|
|
||
| A powerful Neovim plugin for managing MCP (Model Context Protocol) servers | ||
|
|
||
| _Note_: This plugin requires [mcp-hub](https://www.npmjs.com/package/mcp-hub) to be installed. This can be done with `npm`, `bun`, `yarn`, or `pnpm`. | ||
|
|
||
| **Repository:** <https://github.com/ravitemer/mcphub.nvim/tree/main> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| return { | ||
| "ravitemer/mcphub.nvim", | ||
| dependencies = { | ||
| "nvim-lua/plenary.nvim", -- Required for Job and HTTP requests | ||
| }, | ||
| event = "User AstroFile", | ||
| cmd = "MCPHub", | ||
| opts = { | ||
| port = 3000, | ||
| config = vim.fn.expand "~/mcpservers.json", | ||
| log = { | ||
| level = vim.log.levels.WARN, | ||
| to_file = false, | ||
| file_path = nil, | ||
| prefix = "MCPHub", | ||
| }, | ||
| }, | ||
| specs = { | ||
| { | ||
| "yetone/avante.nvim", | ||
| optional = true, | ||
| opts = { | ||
| system_prompt = function() | ||
| local hub = require("mcphub").get_hub_instance() | ||
| return hub:get_active_servers_prompt() | ||
| end, | ||
| -- The custom_tools type supports both a list and a function that returns a list. Using a function here prevents requiring mcphub before it's loaded | ||
| custom_tools = function() | ||
| return { | ||
| require("mcphub.extensions.avante").mcp_tool(), | ||
| } | ||
| end, | ||
| }, | ||
| }, | ||
| }, | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.