Skip to content

Commit 9214780

Browse files
author
Bruce Hauman
committed
reverting this error semantics change
1 parent 008e0f1 commit 9214780

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/clojure_mcp/tool_system.clj

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,7 @@
9595
validated (validate-inputs tool-config keywordized-params)
9696
result (execute-tool tool-config validated)
9797
formatted (format-results tool-config result)]
98-
;; signaling an error to the MCP server should only
99-
;; happen on tool failure IE an exception.
100-
;; currently our internal errors conflate processing
101-
;; errors that occur as a matter of course with
102-
;; errors in the tools function we need to treat
103-
;; the (:error formatted) as errors that occur from
104-
;; the MCP sending bad data vs a new level of
105-
;; error (:exception-error formatted) [This dosn't exist yet]
106-
;; which should indicate the the tool isn't functioning correctly.
107-
108-
(callback (:result formatted) false #_(:error formatted)))
98+
(callback (:result formatted) (:error formatted)))
10999
(catch Exception e
110100
(log/error e)
111101
;; On error, create a sequence of error messages

0 commit comments

Comments
 (0)