UNPKG
replicate-flux-mcp
Version:
latest (0.4.0)
0.4.0
0.1.2
0.1.1
0.1.0
0.0.9
0.0.7
0.0.6
0.0.4
0.0.3
0.0.2
0.0.1
MCP for Replicate Flux Model
github.com/awkoy/replicate-flux-mcp
awkoy/replicate-flux-mcp
replicate-flux-mcp
/
build
/
utils
/
error.js
8 lines
(7 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
function
handleError
(
error
) {
const
message = error
instanceof
Error
? error.
message
:
String
(error);
return
{
content
: [{
type
:
"text"
,
text
:
`Error:
${message}
`
}],
isError
:
true
, }; }