Skip to content

Commit 96ea007

Browse files
HugoRCDvercel[bot]
andauthored
Update server/mcp/tools/get-page.ts
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
1 parent 3baf5f3 commit 96ea007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/mcp/tools/get-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ WORKFLOW: This tool returns the complete page content including title, descripti
1919
cache: '1h',
2020
handler: async ({ path }) => {
2121
const event = useEvent()
22-
const siteUrl = import.meta.dev ? 'http://localhost:3000' : 'https://mcp-toolkit.nuxt.dev'
22+
const siteUrl = import.meta.dev ? 'http://localhost:3000' : getRequestURL(event).origin
2323

2424
try {
2525
const page = await queryCollection(event, 'docs')

0 commit comments

Comments
 (0)