apple-developer-docs-mcp
Version:
An MCP server that fetches the right data from Apple's developer documentation site
39 lines • 1.04 kB
TypeScript
/**
* Interface for Apple Doc Search Results
*/
export interface AppleDocSearchResult {
title: string;
url: string;
description: string;
type: string;
}
/**
* Parse HTML search results from Apple Developer Documentation
*
* @param html HTML content from the search results page
* @param query Original search query
* @param searchUrl URL of the search
* @returns Formatted search results or error response
*/
export declare function parseSearchResults(html: string, query: string, searchUrl: string): {
content: {
type: "text";
text: string;
}[];
isError?: undefined;
} | {
content: {
type: "text";
text: string;
}[];
isError: boolean;
};
/**
* Filter search results by content type
*
* @param results The search results to filter
* @param type The type to filter by
* @returns Filtered results
*/
export declare function filterResultsByType(results: AppleDocSearchResult[], type: string): AppleDocSearchResult[];
//# sourceMappingURL=search-parser.d.ts.map