text: result ?()

in src/mcp/index.ts [68:78]


                text: result ? (isString(result) ? result : toJSONString(result, null, 2)) : '',
              }
            ]
          };
        } catch (error) {
          console.error("error", error);
          // Handle errors in MCP format
          return {
            isError: true,
            content: [
              {