Add missing MCP annotations (#4347)

This commit is contained in:
Nolann B.
2026-06-29 10:15:57 +02:00
committed by GitHub
parent b7c3b847e8
commit f60afe1b25
@@ -65,6 +65,13 @@ export async function handleMcpRequest(
{
query: z.string(),
},
{
title: 'Search documentation',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
openWorldHint: true,
},
async ({ query }) => {
const results = await throwIfDataError(
dataFetcher.searchSiteContent({
@@ -163,6 +170,13 @@ export async function handleMcpRequest(
return z.NEVER;
}),
},
{
title: 'Get page content',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
openWorldHint: true,
},
async ({ url }) => {
try {
const match = findSiteSpaceByUrl(context.structure, url);