File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments