Fix server description

This commit is contained in:
Peter Steinberger 2025-05-25 22:06:50 +02:00
parent 9bc178f74c
commit cfc236153a
2 changed files with 2 additions and 8 deletions

View file

@ -152,8 +152,7 @@ export const imageToolSchema = z.object({
"- Versatile Targeting: Use `app_target` to specify what to capture (see `app_target` parameter description for examples).\n" +
"- Analysis Integration: Provide a `question` to have the captured image analyzed by an AI model (selected from the `PEEKABOO_AI_PROVIDERS` environment variable).\n" +
"- Output Options: Save as 'png' or 'jpg', or get 'data' (Base64 PNG). The format defaults to 'data' if `path` is omitted.\n" +
"- Window Handling: Window shadows and frames are excluded from captures.\n\n" +
`- Peekaboo MCP ${process.env.npm_package_version || 'VERSION_UNKNOWN'} using ${process.env.PEEKABOO_AI_PROVIDERS || 'AI_PROVIDERS_NOT_SET'}`
"- Window Handling: Window shadows and frames are excluded from captures."
);
export type ImageInput = z.infer<typeof imageToolSchema>;

View file

@ -10,10 +10,5 @@ export function generateServerStatusString(version: string): string {
providersText = providers.join(", ");
}
return `
--- Peekaboo MCP Server Status ---
Name: PeekabooMCP
Version: ${version}
Configured AI Providers (from PEEKABOO_AI_PROVIDERS ENV): ${providersText}
---`.trim();
return `\n- Peekaboo MCP ${version} using ${providersText}`.trim();
}