File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1- import Cloudflare from 'cloudflare'
1+ import { V4PagePaginationArray } from 'cloudflare/src/pagination.js '
22import { z } from 'zod'
33
44import { getCloudflareClient } from '@repo/mcp-common/src/cloudflare-api'
@@ -7,8 +7,6 @@ import { pageParam, perPageParam } from '../types'
77
88import type { AutoRAGMCP } from '../autorag.app'
99
10- import V4PagePaginationArray = Cloudflare . V4PagePaginationArray
11-
1210export function registerAutoRAGTools ( agent : AutoRAGMCP ) {
1311 agent . server . tool (
1412 'list_rags' ,
@@ -33,6 +31,7 @@ export function registerAutoRAGTools(agent: AutoRAGMCP) {
3331 const client = getCloudflareClient ( agent . props . accessToken )
3432 const r = ( await client . getAPIList (
3533 `/accounts/${ accountId } /autorag/rags` ,
34+ // @ts -ignore
3635 V4PagePaginationArray ,
3736 { query : { page : params . page , per_page : params . per_page } }
3837 ) ) as unknown as {
You can’t perform that action at this time.
0 commit comments