@microagents/server-hackernews
Version:
MCP server for Hacker News API integration
31 lines (30 loc) • 719 B
TypeScript
/**
* Client for the Algolia Hacker News API
*/
export declare class AlgoliaAPI {
/**
* Search for stories and comments
*/
search(query: string, options?: {
tags?: string;
numericFilters?: string;
page?: number;
hitsPerPage?: number;
}): Promise<any>;
/**
* Search for stories only
*/
searchStories(query: string, options?: {
page?: number;
hitsPerPage?: number;
}): Promise<any>;
/**
* Get a story with its comments
*/
getStoryWithComments(storyId: number): Promise<any>;
/**
* Get a user profile
*/
getUser(username: string): Promise<any>;
}
export declare const algoliaApi: AlgoliaAPI;