|
| 1 | +# MCPHub Server |
| 2 | + |
| 3 | +The MCPHub server (`mcphub`) provides management utilities for the MCPHub plugin itself. It allows LLMs to dynamically control MCP server lifecycle, query system state, and access comprehensive documentation. |
| 4 | + |
| 5 | +## Tools |
| 6 | + |
| 7 | +### `get_current_servers` |
| 8 | +Retrieve the current state of all MCP servers, including both connected and disabled servers. |
| 9 | + |
| 10 | +**Parameters:** |
| 11 | +- `include_disabled` (boolean, optional): Whether to include disabled servers (default: true) |
| 12 | +- `format` (string, optional): Response format - "detailed" or "summary" (default: "detailed") |
| 13 | + |
| 14 | +**Response Formats:** |
| 15 | + |
| 16 | +**Summary Format:** |
| 17 | +``` |
| 18 | +# Current MCP Server Status |
| 19 | +
|
| 20 | +Connected servers (3): github, filesystem, search |
| 21 | +Disabled servers (2): database, analytics |
| 22 | +``` |
| 23 | + |
| 24 | +**Detailed Format:** |
| 25 | +Provides complete server information including: |
| 26 | +- Server capabilities (tools, resources, prompts) |
| 27 | +- Connection status and uptime |
| 28 | +- Configuration details |
| 29 | +- Available tools with descriptions |
| 30 | + |
| 31 | +### `toggle_mcp_server` |
| 32 | +Start or stop MCP servers dynamically based on task requirements. |
| 33 | + |
| 34 | +**Parameters:** |
| 35 | +- `server_name` (string, required): Name of the MCP server to control |
| 36 | +- `action` (string, required): Action to perform - "start" or "stop" |
| 37 | + |
| 38 | +## Resources |
| 39 | + |
| 40 | +#### `MCPHub Plugin Docs` (`mcphub://docs`) |
| 41 | +Comprehensive documentation for the mcphub.nvim plugin. |
| 42 | + |
| 43 | +#### `MCPHub Native Server Guide` (`mcphub://native_server_guide`) |
| 44 | +Complete guide for creating Lua Native MCP servers. |
| 45 | + |
| 46 | +**Intended For:** |
| 47 | +- LLMs helping users create custom servers |
| 48 | +- Developer documentation and reference |
| 49 | +- Advanced plugin customization |
| 50 | + |
| 51 | +#### `MCPHub Changelog` (`mcphub://changelog`) |
| 52 | +Version history and feature updates for the plugin. |
| 53 | + |
| 54 | + |
| 55 | +## Prompts |
| 56 | + |
| 57 | +#### `create_native_server` |
| 58 | +Assists users in creating custom native MCP servers with guided prompts. |
| 59 | + |
| 60 | +**Parameters:** |
| 61 | +- `mcphub_setup_file` (string, required): Path to file where `mcphub.setup({})` is called (default: Neovim config directory) |
| 62 | + |
| 63 | +**Functionality:** |
| 64 | +- Loads comprehensive native server creation guide |
| 65 | +- Provides context about user's Neovim configuration |
| 66 | +- Integrates with chat plugins for seamless assistance |
0 commit comments