clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

adding mcphub

+26
+26
nvim/lua/sspaeti/plugins/chatgpt.lua
··· 38 38 ---Provider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string 39 39 provider = "claude", 40 40 hints = { enabled = false }, 41 + -- for MCPhub 42 + -- system_prompt as function ensures LLM always has latest MCP server state 43 + -- This is evaluated for every message, even in existing chats 44 + system_prompt = function() 45 + local hub = require("mcphub").get_hub_instance() 46 + return hub and hub:get_active_servers_prompt() or "" 47 + end, 48 + -- Using function prevents requiring mcphub before it's loaded 49 + custom_tools = function() 50 + return { 51 + require("mcphub.extensions.avante").mcp_tool(), 52 + } 53 + end, 41 54 }) 42 55 end, 43 56 -- keys = { 44 57 -- { "<leader>ai", "<cmd>AvanteAsk<cr>", desc = "Open AI/Claude on this file" }, 45 58 -- } 46 59 }, 60 + { 61 + "ravitemer/mcphub.nvim", 62 + dependencies = { 63 + "nvim-lua/plenary.nvim", 64 + }, 65 + build = "npm install -g mcp-hub@latest", -- Installs `mcp-hub` node binary globally 66 + config = function() 67 + require("mcphub").setup() 68 + end 69 + }, 70 + 71 + 72 + -- 47 73 { 48 74 "github/copilot.vim", 49 75 event = "VeryLazy",