Skip to content

Commit 200861a

Browse files
committed
chore(docs): make docs
1 parent cf4dbed commit 200861a

File tree

2 files changed

+165
-62
lines changed

2 files changed

+165
-62
lines changed

doc/mcphub.txt

Lines changed: 164 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
*mcphub.nvim.txt* For NVIM v0.10.0 Last change: 2025 May 16
1+
*mcphub.nvim.txt* For NVIM v0.10.0 Last change: 2025 May 17
22

33
==============================================================================
44
Table of Contents *mcphub.nvim-table-of-contents*
55

6-
1. Welcome to MCP Hub |mcphub.nvim-welcome-to-mcp-hub|
7-
- Getting Started |mcphub.nvim-welcome-to-mcp-hub-getting-started|
8-
- Next Steps |mcphub.nvim-welcome-to-mcp-hub-next-steps|
6+
1. What is MCP HUB? |mcphub.nvim-what-is-mcp-hub?|
7+
- How does MCP Hub work?|mcphub.nvim-what-is-mcp-hub?-how-does-mcp-hub-work?|
8+
- Feature Support Matrix|mcphub.nvim-what-is-mcp-hub?-feature-support-matrix|
9+
- Next Steps |mcphub.nvim-what-is-mcp-hub?-next-steps|
910
2. Installation |mcphub.nvim-installation|
1011
- Requirements |mcphub.nvim-installation-requirements|
1112
- Lazy.nvim |mcphub.nvim-installation-lazy.nvim|
@@ -27,68 +28,169 @@ Table of Contents *mcphub.nvim-table-of-contents*
2728
7. Links |mcphub.nvim-links|
2829

2930
==============================================================================
30-
1. Welcome to MCP Hub *mcphub.nvim-welcome-to-mcp-hub*
31+
1. What is MCP HUB? *mcphub.nvim-what-is-mcp-hub?*
3132

32-
MCPHub.nvim is a MCP Client for neovim that seamlessly integrates MCP (Model
33+
MCPHub.nvim is a MCP client for neovim that seamlessly integrates MCP (Model
3334
Context Protocol) <https://modelcontextprotocol.io/> servers into your editing
3435
workflow. It provides an intuitive interface for managing, testing, and using
35-
MCP servers with your favorite LLM chat plugins.
36+
MCP servers with your favorite chat plugins.
3637

3738

38-
[!IMPORTANT] It is recommended to read the below "Getting Started" section
39-
before going through the rest of the documentation.
39+
[!IMPORTANT] It is recommended to read this page before going through the rest
40+
of the documentation.
4041

41-
GETTING STARTED *mcphub.nvim-welcome-to-mcp-hub-getting-started*
42+
HOW DOES MCP HUB WORK? *mcphub.nvim-what-is-mcp-hub?-how-does-mcp-hub-work?*
4243

4344
Let’s break down how MCP Hub operates in simple terms:
4445

45-
1. **Declare MCP Servers**- MCP servers are defined in a JSON configuration file
46-
- Each server can be a local script or a remote endpoint
47-
- You can configure authentication, environment variables, and other settings
4846

47+
MCP CONFIG FILE ~
4948

49+
Like any MCP client, MCP Hub requires a configuration file to define the MCP
50+
servers you want to use. This file is typically located at
51+
`~/.config/mcphub/servers.json`. MCP Hub supports local `stdio` servers as well
52+
as remote `streamable-http` or `sse` servers. This is similar to
53+
`claude_desktop_config.json` file for Claude desktop or `mcp.json` file used by
54+
VSCode. In fact you can use the same file for MCP Hub as well with some
55+
additional benefits. It looks something like:
5056

5157
>js
52-
// Example: ~/.config/mcphub/servers.json
53-
{
54-
"mcpServers": {
55-
"fetch": {
56-
"command": "uvx",
57-
"args": [
58-
"mcp-server-fetch"
59-
]
60-
},
61-
"remote-server": {
62-
"url": "https://api.example.com/mcp"
63-
}
64-
}
65-
}
66-
<
67-
68-
1. **Server Management**- When you start Neovim, our plugin launches the nodejs binary, mcp-hub <https://github.com/ravitemer/mcp-hub> (an Express server)
69-
- `mcp-hub` binary reads your servers config file and starts the MCP servers
70-
- It provides a REST API endpoint (default: `http://localhost:37373`) for interacting with servers
58+
// Example: ~/.config/mcphub/servers.json
59+
{
60+
"mcpServers": {
61+
"fetch": {
62+
"command": "uvx",
63+
"args": [
64+
"mcp-server-fetch"
65+
]
66+
},
67+
"remote-server": {
68+
"url": "https://api.example.com/mcp"
69+
}
70+
}
71+
}
72+
<
73+
74+
75+
SERVERS MANAGER ~
76+
77+
- When MCP Hub’s `setup()` is called typically when Neovim starts, it launches the nodejs binary, mcp-hub <https://github.com/ravitemer/mcp-hub> with the `servers.json` file.
78+
- The `mcp-hub` binary reads `servers.json` file and starts the MCP servers.
79+
- It provides a express REST API endpoint (default: `http://localhost:37373`) for clients to interact with MCP servers
7180
- The plugin communicates with this endpoint to:
7281
- Start/stop MCP servers
7382
- Execute tools, resources, prompts etc
74-
- Handle real-time server events
83+
- Handle real-time server events when tools or resources are changed.
84+
7585

86+
USAGE ~
7687

77-
2. **Usage**- Use `:MCPHub` command to open the interface
78-
- Manage servers, tools, and resources
79-
- Browse and install servers from marketplace
88+
- Use `:MCPHub` command to open the interface
89+
- Adding (`<A>`), editing (`<e>`), deleting (`<d>`) MCP servers in easy and intuitive with MCP Hub. You don’t need to edit the `servers.json` file directly.
90+
- Install servers from the Marketplace (`M`)
91+
- Toggle servers, tools, and resources etc
8092
- Test tools and resources directly in Neovim
8193

8294

83-
3. **Chat Integration**- Works with popular chat plugins like Avante <https://github.com/yetone/avante.nvim>, CodeCompanion <https://github.com/olimorris/codecompanion.nvim>, CopilotChat <https://github.com/CopilotC-Nvim/CopilotChat.nvim>
84-
- LLMs can use MCP servers through our `@mcp` tool
85-
- Resources show up as `#variables` in chat
86-
- Prompts become `/slash_commands`
95+
CHAT INTEGRATIONS ~
96+
97+
- MCP Hub provides integrations with popular chat plugins like Avante <https://github.com/yetone/avante.nvim>, CodeCompanion <https://github.com/olimorris/codecompanion.nvim>, CopilotChat <https://github.com/CopilotC-Nvim/CopilotChat.nvim>.
98+
- LLMs can use MCP servers through our `@mcp` tool.
99+
- Resources show up as `#variables` in chat.
100+
- Prompts become `/slash_commands`.
101+
102+
103+
FEATURE SUPPORT MATRIX *mcphub.nvim-what-is-mcp-hub?-feature-support-matrix*
104+
105+
---------------------------------------------------------------------------------
106+
Category Feature Support Details
107+
-------------------- -------------------- ------------------ --------------------
108+
Capabilities
109+
110+
Tools ✅ Full support
111+
112+
🔔 Tool List Changed ✅ Real-time updates
113+
114+
Resources ✅ Full support
115+
116+
🔔 Resource List ✅ Real-time updates
117+
Changed
118+
119+
Resource Templates ✅ URI templates
120+
121+
Prompts ✅ Full support
122+
123+
🔔 Prompts List ✅ Real-time updates
124+
Changed
125+
126+
Roots ❌ Not supported
127+
128+
Sampling ❌ Not supported
129+
130+
MCP Server
131+
Transports
132+
133+
Streamable-HTTP ✅ Primary transport
134+
protocol for remote
135+
servers
136+
137+
SSE ✅ Fallback transport
138+
for remote servers
139+
140+
STDIO ✅ For local servers
141+
142+
Authentication for
143+
remote servers
144+
145+
OAuth ✅ With PKCE flow
146+
147+
Headers ✅ For API keys/tokens
148+
149+
Chat Integration
150+
151+
Avante.nvim ✅ Tools, resources,
152+
resourceTemplates,
153+
prompts(as
154+
slash_commands)
155+
156+
CodeCompanion.nvim ✅ Tools, resources,
157+
resourceTemplates,
158+
prompts (as
159+
slash_commands)
160+
161+
CopilotChat.nvim ✅ In-built support
162+
Draft
163+
164+
Marketplace
165+
166+
Server Discovery ✅ Browse from verified
167+
MCP servers
168+
169+
Installation ✅ Manual and auto
170+
install with AI
171+
172+
Advanced
173+
174+
Smart File-watching ✅ Smart updates with
175+
config file watching
87176

177+
Multi-instance ✅ All neovim instances
178+
stay in sync
88179

180+
Shutdown-delay ✅ Can run as systemd
181+
service with
182+
configure delay
183+
before stopping the
184+
hub
89185

186+
Lua Native MCP ✅ Write once , use
187+
Servers everywhere. Can
188+
write tools,
189+
resources, prompts
190+
directly in lua
191+
---------------------------------------------------------------------------------
90192

91-
NEXT STEPS *mcphub.nvim-welcome-to-mcp-hub-next-steps*
193+
NEXT STEPS *mcphub.nvim-what-is-mcp-hub?-next-steps*
92194

93195
- Installation Guide </installation> - Set up MCPHub in your Neovim
94196
- Configuration Guide </configuration> - Learn about configuring MCP Hub
@@ -2536,26 +2638,27 @@ doc/other/architecture.md doc/other/troubleshooting.md
25362638
==============================================================================
25372639
7. Links *mcphub.nvim-links*
25382640

2539-
1. *Image*: doc/https:/github.com/user-attachments/assets/f85380dc-e70b-4821-88a8-f1ec2c4e3cf6
2540-
2. *Image*: doc/https:/github.com/user-attachments/assets/64708065-3428-4eb3-82a5-e32d2d1f98c6
2541-
3. *Image*: doc/mcp/https:/github.com/user-attachments/assets/f5c8adfa-601e-4d03-8745-75180a9d3648
2542-
4. *Image*: doc/mcp/https:/github.com/user-attachments/assets/2d0a0d8b-18ca-4ac8-a207-4758d09d359d
2543-
5. *Image*: doc/mcp/https:/github.com/user-attachments/assets/359bc81e-d6fe-47bb-a25b-572bf280851e
2544-
6. *Image*: doc/mcp/https:/github.com/user-attachments/assets/1cb950da-2f7f-46e9-a623-4cc4b00cc3d0
2545-
7. *Image*: doc/extensions/https:/github.com/user-attachments/assets/47086587-d10a-4749-a5df-3a562750010e
2546-
8. *Image*: doc/extensions/https:/github.com/user-attachments/assets/dbc0d210-2ccf-49f8-b1f5-58d868dc02c8
2547-
9. *Image*: doc/extensions/https:/github.com/user-attachments/assets/f85380dc-e70b-4821-88a8-f1ec2c4e3cf6
2548-
10. *Image*: doc/extensions/https:/github.com/user-attachments/assets/64708065-3428-4eb3-82a5-e32d2d1f98c6
2549-
11. *image*: doc/extensions/https:/github.com/user-attachments/assets/fb04393c-a9da-4704-884b-2810ff69f59a
2550-
12. *image*: doc/extensions/https:/github.com/user-attachments/assets/678a06a5-ada9-4bb5-8f49-6e58549c8f32
2551-
13. *Image*: doc/extensions/https:/github.com/user-attachments/assets/f85380dc-e70b-4821-88a8-f1ec2c4e3cf6
2552-
14. *Image*: doc/extensions/https:/github.com/user-attachments/assets/64708065-3428-4eb3-82a5-e32d2d1f98c6
2553-
15. *Image*: doc/extensions/https:/github.com/user-attachments/assets/7c16bc7e-a9df-4afc-9736-2ee6a39919a9
2554-
16. *Image*: doc/extensions/https:/github.com/user-attachments/assets/adc556bb-7d5f-4d22-820a-a7daeb0ac72c
2555-
17. *Image*: doc/extensions/https:/github.com/user-attachments/assets/7f77bf1e-12b7-4745-a87b-40181a619733
2556-
18. *image*: doc/extensions/https:/github.com/user-attachments/assets/f67802fe-6b0c-48a5-9275-bff9f830ce29
2557-
19. *image*: doc/extensions/https:/github.com/user-attachments/assets/f90f7cc4-ff34-4481-9732-a0331a26502b
2558-
20. *image*: doc/extensions/https:/github.com/user-attachments/assets/f6bdeeec-48f7-48de-89a5-22236a52843f
2641+
1. *Image*: doc/https:/github.com/user-attachments/assets/21fe7703-9bc3-4c01-93ce-3230521bd5bf
2642+
2. *Image*: doc/https:/github.com/user-attachments/assets/f85380dc-e70b-4821-88a8-f1ec2c4e3cf6
2643+
3. *Image*: doc/https:/github.com/user-attachments/assets/64708065-3428-4eb3-82a5-e32d2d1f98c6
2644+
4. *Image*: doc/mcp/https:/github.com/user-attachments/assets/f5c8adfa-601e-4d03-8745-75180a9d3648
2645+
5. *Image*: doc/mcp/https:/github.com/user-attachments/assets/2d0a0d8b-18ca-4ac8-a207-4758d09d359d
2646+
6. *Image*: doc/mcp/https:/github.com/user-attachments/assets/359bc81e-d6fe-47bb-a25b-572bf280851e
2647+
7. *Image*: doc/mcp/https:/github.com/user-attachments/assets/1cb950da-2f7f-46e9-a623-4cc4b00cc3d0
2648+
8. *Image*: doc/extensions/https:/github.com/user-attachments/assets/47086587-d10a-4749-a5df-3a562750010e
2649+
9. *Image*: doc/extensions/https:/github.com/user-attachments/assets/dbc0d210-2ccf-49f8-b1f5-58d868dc02c8
2650+
10. *Image*: doc/extensions/https:/github.com/user-attachments/assets/f85380dc-e70b-4821-88a8-f1ec2c4e3cf6
2651+
11. *Image*: doc/extensions/https:/github.com/user-attachments/assets/64708065-3428-4eb3-82a5-e32d2d1f98c6
2652+
12. *image*: doc/extensions/https:/github.com/user-attachments/assets/fb04393c-a9da-4704-884b-2810ff69f59a
2653+
13. *image*: doc/extensions/https:/github.com/user-attachments/assets/678a06a5-ada9-4bb5-8f49-6e58549c8f32
2654+
14. *Image*: doc/extensions/https:/github.com/user-attachments/assets/f85380dc-e70b-4821-88a8-f1ec2c4e3cf6
2655+
15. *Image*: doc/extensions/https:/github.com/user-attachments/assets/64708065-3428-4eb3-82a5-e32d2d1f98c6
2656+
16. *Image*: doc/extensions/https:/github.com/user-attachments/assets/7c16bc7e-a9df-4afc-9736-2ee6a39919a9
2657+
17. *Image*: doc/extensions/https:/github.com/user-attachments/assets/adc556bb-7d5f-4d22-820a-a7daeb0ac72c
2658+
18. *Image*: doc/extensions/https:/github.com/user-attachments/assets/7f77bf1e-12b7-4745-a87b-40181a619733
2659+
19. *image*: doc/extensions/https:/github.com/user-attachments/assets/f67802fe-6b0c-48a5-9275-bff9f830ce29
2660+
20. *image*: doc/extensions/https:/github.com/user-attachments/assets/f90f7cc4-ff34-4481-9732-a0331a26502b
2661+
21. *image*: doc/extensions/https:/github.com/user-attachments/assets/f6bdeeec-48f7-48de-89a5-22236a52843f
25592662

25602663
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
25612664

scripts/vimdoc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ doc/mcp/servers_json.md
1111

1212
## Lua MCP Servers
1313
```{.include shift-heading-level-by=2}
14-
doc/mcp/native/why.md
14+
doc/mcp/native/index.md
1515
doc/mcp/native/registration.md
1616
doc/mcp/native/tools.md
1717
doc/mcp/native/resources.md

0 commit comments

Comments
 (0)