Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
09c9a78
feat(mcp): first version of MCP client
cairijun Dec 14, 2025
450926c
feat(mcp): move tool output formatting to success/error
cairijun Dec 24, 2025
5833e1d
feat(mcp): prefix tool names with "mcp"
cairijun Dec 24, 2025
af0f3eb
feat(mcp): move config section to interactions.chat
cairijun Dec 24, 2025
fa0ccf5
refactor(mcp): readability improvement
cairijun Dec 25, 2025
c795f75
refactor(mcp): Connection -> Transport
cairijun Dec 25, 2025
4a46c03
refactor(mcp): remove vim.inspect in logging
cairijun Dec 25, 2025
da13a4d
refactor(mcp): make some static methods mockable
cairijun Dec 25, 2025
00503e9
fix(mcp): fix some issues found in CR
cairijun Dec 25, 2025
2eac686
feat(mcp): stop the server on initialization failure
cairijun Dec 30, 2025
4ec8224
Merge branch 'main' into feat/mcp_init_ver
olimorris Jan 8, 2026
ea8bba8
Merge branch 'main' into feat/mcp_init_ver
olimorris Jan 11, 2026
32556d4
nit
olimorris Jan 11, 2026
370b9f9
Merge branch 'main' into feat/mcp_init_ver
olimorris Jan 11, 2026
3cb017a
fix(mcp): fix LSP warnings
cairijun Jan 13, 2026
d616d64
ensure servers are stopped on close
olimorris Jan 24, 2026
7af1962
show mcp server status in debug window
olimorris Jan 24, 2026
3b8eb34
Merge branch 'develop' into feat/mcp_init_ver
olimorris Jan 25, 2026
d9e9614
add refresh capability and enable toggle
olimorris Jan 25, 2026
2031e50
wip
olimorris Jan 25, 2026
d97e799
wip
olimorris Jan 27, 2026
a757646
can use slash commands to enable/disable mcp servers
olimorris Jan 28, 2026
42aad0f
update config
olimorris Jan 28, 2026
19e05fc
fix tools test
olimorris Jan 28, 2026
458252b
prevent modification of config when adding/removing tools
olimorris Jan 28, 2026
453fc84
add a default timeout
olimorris Jan 28, 2026
d5be34f
wrap tool output in markdown code blocks
olimorris Jan 28, 2026
1d929b3
fix tests
olimorris Jan 29, 2026
f046ebc
refactor
olimorris Jan 29, 2026
7197796
start on docs
olimorris Jan 29, 2026
acff061
unify timeout
olimorris Jan 29, 2026
f88c30f
can cancel mcp requests
olimorris Jan 30, 2026
fb99a0a
don't sort servers in slash command
olimorris Jan 31, 2026
4eb88c7
update docs
olimorris Jan 31, 2026
0c4b1d0
change default_tool_opts to tool_defaults
olimorris Jan 31, 2026
8879fd9
update docs
olimorris Jan 31, 2026
13e4299
feat(mcp): allows ${env} in server cmd
cairijun Jan 31, 2026
348bf38
feat(mcp): more useful msgs in error/prompt callback
cairijun Jan 31, 2026
913cbf8
feat(mcp): truncates long tool output in chat buffer
cairijun Jan 31, 2026
0b2049c
doc(mcp): add a warning about the roots feature
cairijun Jan 31, 2026
a3292cb
finish docs
olimorris Feb 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lua/codecompanion/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ If you are providing code changes, use the insert_edit_into_file tool (if availa
},
},
},
mcp = {
servers = {},
},
keymaps = {
options = {
modes = { n = "?" },
Expand Down
2 changes: 2 additions & 0 deletions lua/codecompanion/interactions/chat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ function Chat.new(args)

self:update_metadata()

require("codecompanion.interactions.chat.mcp").start_servers()

-- Likely this hasn't been set by the time the user opens the chat buffer
if not _G.codecompanion_current_context then
_G.codecompanion_current_context = self.buffer_context.bufnr
Expand Down
Loading