ChainGraph API Documentation / @badaitech/chaingraph-trpc / server / mcpProcedures
Variable: mcpProcedures
constmcpProcedures:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<any,string> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{addPromptToFlow:MutationProcedure<{input: {flowId:string;position: {x:number;y:number; };promptName:string;serverId:string; };meta:object;output:INode; }>;addResourceToFlow:MutationProcedure<{input: {flowId:string;position: {x:number;y:number; };resourceName:string;serverId:string; };meta:object;output:INode; }>;addToolToFlow:MutationProcedure<{input: {flowId:string;position: {x:number;y:number; };serverId:string;toolName:string; };meta:object;output:INode; }>;buildPromptNode:QueryProcedure<{input: {promptName:string;serverId:string; };meta:object;output:INode; }>;buildResourceNode:QueryProcedure<{input: {resourceName:string;serverId:string; };meta:object;output:INode; }>;buildToolNode:QueryProcedure<{input: {serverId:string;toolName:string; };meta:object;output:INode; }>;createServer:MutationProcedure<{input: {authHeaders:object[];title:string;url:string; };meta:object;output:MCPServer; }>;deleteServer:MutationProcedure<{input: {id:string; };meta:object;output: {success:true; }; }>;getAllNodesForServer:QueryProcedure<{input: {serverId:string; };meta:object;output:AllNodesResponse; }>;listServers:QueryProcedure<{input:void;meta:object;output:MCPServer[]; }>;serverCapabilities:QueryProcedure<{input: {serverId:string; };meta:object;output:ServerCapabilities; }>;updateServer:MutationProcedure<{input: {authHeaders:object[];id:string;title:string;url:string; };meta:object;output:MCPServer; }>; }>>
Defined in: packages/chaingraph-trpc/server/mcp/procedures/index.ts:23