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 '
2
2
import { z } from 'zod'
3
3
4
4
import { getCloudflareClient } from '@repo/mcp-common/src/cloudflare-api'
@@ -7,8 +7,6 @@ import { pageParam, perPageParam } from '../types'
7
7
8
8
import type { AutoRAGMCP } from '../autorag.app'
9
9
10
- import V4PagePaginationArray = Cloudflare . V4PagePaginationArray
11
-
12
10
export function registerAutoRAGTools ( agent : AutoRAGMCP ) {
13
11
agent . server . tool (
14
12
'list_rags' ,
@@ -33,6 +31,7 @@ export function registerAutoRAGTools(agent: AutoRAGMCP) {
33
31
const client = getCloudflareClient ( agent . props . accessToken )
34
32
const r = ( await client . getAPIList (
35
33
`/accounts/${ accountId } /autorag/rags` ,
34
+ // @ts -ignore
36
35
V4PagePaginationArray ,
37
36
{ query : { page : params . page , per_page : params . per_page } }
38
37
) ) as unknown as {
You can’t perform that action at this time.
0 commit comments