UNPKG

@kubb/plugin-mcp

Version:
13 lines (11 loc) 585 B
import type { ResponseErrorConfig } from './test/.kubb/fetch' import type { CallToolResult } from '@modelcontextprotocol/sdk/types' import { fetch } from './test/.kubb/fetch' /** * @description Returns all `pets` from the system \n that the user has access to * @summary List all pets * {@link /pets} */ export async function listPetsHandler({ params }: { params?: ListPetsQueryParams } = {}): Promise<Promise<CallToolResult>> { const res = await fetch<ListPetsQueryResponse, ResponseErrorConfig<Error>, unknown>({ method: 'GET', url: `/pets`, baseURL: `${123456}`, params }) }