import { Value } from "../../values/index.js";
/**
* The result of running a function on the server.
*
* If the function hit an exception it will have an `errorMessage`. Otherwise
* it will produce a `Value`.
*
* @public
*/
export type FunctionResult = FunctionSuccess | FunctionFailure;
export type FunctionSuccess = {
success: true;
value: Value;
logLines: string[];
};
export type FunctionFailure = {
success: false;
errorMessage: string;
errorData?: Value | undefined;
logLines: string[];
};
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'
If you have feedback or need assistance with the MCP directory API, please join our Discord server