mcp-brave-search
Version:
Brave Search MCP Server - Web and News Search via stdio
85 lines • 1.91 kB
TypeScript
/**
* Brave Search API Types
*/
export interface BraveWebSearchParams {
q: string;
count?: number;
offset?: number;
country?: string;
search_lang?: string;
ui_lang?: string;
safesearch?: 'off' | 'moderate' | 'strict';
freshness?: 'pd' | 'pw' | 'pm' | 'py' | string;
text_decorations?: boolean;
spellcheck?: boolean;
}
export interface BraveNewsSearchParams {
q: string;
count?: number;
offset?: number;
country?: string;
search_lang?: string;
ui_lang?: string;
safesearch?: 'off' | 'moderate' | 'strict';
freshness?: 'pd' | 'pw' | 'pm' | 'py' | string;
spellcheck?: boolean;
}
export interface BraveSearchResult {
title: string;
url: string;
description?: string;
age?: string;
page_age?: string;
page_fetched?: string;
}
export interface BraveNewsResult {
title: string;
url: string;
description?: string;
age?: string;
meta_url?: {
scheme?: string;
netloc?: string;
hostname?: string;
favicon?: string;
path?: string;
};
}
export interface BraveWebSearchResponse {
query: {
original: string;
show_strict_warning?: boolean;
altered?: string;
safesearch?: boolean;
};
mixed?: {
type: string;
main?: any[];
top?: any[];
side?: any[];
};
type: string;
web?: {
type: string;
results: BraveSearchResult[];
family_friendly: boolean;
};
news?: {
type: string;
results: BraveNewsResult[];
};
}
export interface BraveNewsSearchResponse {
query: {
original: string;
show_strict_warning?: boolean;
altered?: string;
};
type: string;
results: BraveNewsResult[];
}
export interface ServerConfig {
apiKey: string;
baseUrl?: string;
}
//# sourceMappingURL=types.d.ts.map