Commit graph

49 commits

Author SHA1 Message Date
Dallin Romney
ff89a88299
fix: coerce MCP tool args to match schema string types (#11852)
* fix: coerce MCP tool args to match schema string types

When tool call arguments are parsed via JSON.parse(), string-typed
parameters containing valid JSON (e.g. file content for .json files)
get deeply parsed into objects. Built-in tools handle this via
getStringArg(), but MCP tools with dynamic schemas had no equivalent
fix, causing write_file and similar tools to receive objects instead
of strings.

Add coerceArgsToSchema() that checks the tool's inputSchema and
re-stringifies any values that should be strings before passing
args to the MCP client.

Fixes #8510

* fix: narrow coercion to only objects/arrays, not numbers/booleans

Only re-stringify values that are objects or arrays (the actual
deep-parsing issue). Numbers and booleans passed to a string-typed
parameter are left as-is so they surface as type errors rather than
being silently converted.
2026-03-25 16:39:01 -07:00
Dallin Romney
a7a5351b9c
feat: limited MCP App support (#10132)
* feat: MCP apps part 1

* feat: MCP app support part 3

* chore: cleanup PR

* chore: clean up mcp ui app types

* fix: address cubic feedback
2026-02-05 19:07:44 -08:00
uinstinct
b6eddec2f4 add read skill tool 2025-12-30 12:51:16 +05:30
Patrick Erichsen
33bec4922f Update callTool.ts 2025-10-14 15:31:12 -07:00
Patrick Erichsen
88ef07eb23 dallin's feedback 2025-10-14 15:25:46 -07:00
Patrick Erichsen
1d7da38a66 fix: log correct tool call error from gui 2025-10-14 14:40:09 -07:00
uinstinct
93144a6a96 feat: add mcp request timeout when calling tool 2025-09-05 19:11:33 +05:30
chezsmithy
c596f8b872 fix: 🐛 Remove head tool and move range tool to experimental 2025-08-27 23:06:39 -07:00
chezsmithy
820822196b feat: ✨ Add range and head tools for file operations 2025-08-27 22:27:15 -07:00
Nate Sesti
de8db5cdcb
Merge pull request #6434 from tingwai/tingwai/at-codebase-experimental-call-tools
@codebase use tool calling (under experimental flag)
2025-07-03 18:05:12 -07:00
Ting-Wai To
7345ad2c7a Address comments 2025-07-03 12:29:51 -07:00
adarshramiyer
6635135ec6 removed need for idemessenger and added necessary logging locations 2025-07-02 19:30:14 -07:00
adarshramiyer
18f9808915 added tool into ToolCallState on generation 2025-07-02 16:07:07 -07:00
Dallin Romney
8c6b16922e
Revert "Quick fix: removing functionally redundant items in dev data toolusage" 2025-07-01 19:25:36 -07:00
Dallin Romney
7aea3e79f7
Merge pull request #6392 from continuedev/adarsh/feat/devdata-toolusage
Quick fix: removing functionally redundant items in dev data toolusage
2025-07-01 19:22:12 -07:00
adarshramiyer
c2e8905cbf removing functionally redundant items in dev data toolusage 2025-07-01 17:33:42 -07:00
Nate Sesti
130c1e02bb
Merge pull request #6315 from continuedev/adarsh/feat/devdata-toolusage
toolUsage devdata events
2025-07-01 13:54:04 -07:00
adarshramiyer
30d8b14d58 removed toolCallCompleted message 2025-07-01 10:47:10 -07:00
Ting-Wai To
287c1fac0a Add @codebase as experimental tool for agent mode 2025-06-30 22:27:50 -07:00
Dallin Romney
bfca8a17ad Fetch URL Content tool 2025-06-12 10:40:24 -07:00
Dallin Romney
aa7ba35b00 read url tool 2025-06-11 11:22:13 -07:00
Dallin Romney
dcdc04f0ba JSON parsing progress 2025-06-04 15:16:41 -07:00
Patrick Erichsen
af30fbe360 feat: requestRule tool 2025-05-27 10:19:31 -07:00
Dallin Romney
c62180f721 remove let 2025-05-16 12:29:31 -07:00
Dallin Romney
d40fc96346 better URI tool errors and no hanging for nonexistent tool 2025-05-14 10:59:34 -07:00
Dallin Romney
bfb4d41324 tool error makeover 2025-04-22 13:46:00 -07:00
Dallin Romney
3cd77bf9ab pruning updates 2025-04-22 11:19:03 -07:00
Nate
fc7e3ccf7f Merge branch 'main' into nate/e2e-test-tools 2025-04-19 22:44:52 -07:00
Nate
afa41b771d separate connection and singleton in mcp folder 2025-04-18 10:11:19 -07:00
Patrick Erichsen
2c8032c339 feat: create_rule_block tool 2025-04-17 21:42:52 -07:00
Dallin Romney
4e0ac878f7 BROKEN - tools updates 2025-04-13 19:43:53 -07:00
Dallin Romney
e382cddeed merge-main 2025-04-04 18:37:05 -07:00
Dallin Romney
f2237c0399 cleanup 2025-04-04 17:10:24 -07:00
Dallin Romney
8f556c0b01 move to custom edit impl 2025-04-04 01:02:48 -07:00
Dallin Romney
e02741cb5e edit tool first take 2025-04-03 19:04:28 -07:00
Dallin Romney
b9e4737c77 glob search 2025-04-03 15:19:34 -07:00
Dallin Romney
f58469ffc9 lstool 2025-04-02 13:48:50 -07:00
Dallin Romney
7a79473417 fix return 2025-03-17 15:37:05 -07:00
Dallin Romney
b980f24f65 mcp progress 2025-03-17 14:22:03 -07:00
Dallin Romney
045bb0e630 can parse url 2025-02-27 15:03:27 -08:00
Nate
35584f2e26 improvements to tool call display 2025-02-05 22:25:22 -08:00
Nate
9551170193 fix tsc err 2024-12-24 17:17:09 -05:00
Nate
38a7c3a9a2 fix mcp decoding for tools 2024-12-24 14:42:59 -05:00
Nate
a427c4c2df multiple mcp servers 2024-12-09 08:11:21 -08:00
Nate
ceace39aa2 fix tsc error 2024-11-29 16:35:44 -08:00
Nate
aee7e21bce read current file tool 2024-11-29 15:08:52 -08:00
Nate
823f96ca30 inject and call MCP tools 2024-11-29 13:51:31 -08:00
Nate
5d4e6e9494 read file tool 2024-11-29 08:38:26 -08:00
Nate
025dc0840d fix type errors 2024-11-22 22:08:58 -08:00