Files
oh-my-pi/packages/coding-agent/src/exa/index.ts
T
can1357 7aafa7547a feat(coding-agent): introduced pluggable code search provider system
- Added pluggable code search provider system supporting Exa and grep.app with provider selection via `providers.codeSearch` setting.
- Removed Exa-specific tools (`exa_linkedin`, `exa_company`, `exa_search_deep`, `exa_crawl`) and simplified web search tools to focus on core functionality.
- Refactored code search from Exa-only to provider-agnostic architecture with new `code_search` tool supporting context-aware grep.app queries and Exa fallback.
- Removed `exa.enableLinkedin` and `exa.enableCompany` configuration settings in favor of provider-based architecture.
- Added comprehensive test coverage for code search functionality including grep.app result normalization and provider fallback behavior.
2026-03-13 15:05:10 +01:00

28 lines
1.1 KiB
TypeScript

/**
* Exa MCP Tools
*
* 22 tools for Exa's MCP servers:
* - 4 search tools (search, deep, code, crawl)
* - 1 LinkedIn search tool
* - 1 company research tool
* - 2 researcher tools (start, poll)
* - 14 websets tools (CRUD, items, search, enrichment, monitor)
*/
import type { CustomTool } from "../extensibility/custom-tools/types";
import { researcherTools } from "./researcher";
import { searchTools } from "./search";
import type { ExaRenderDetails } from "./types";
import { websetsTools } from "./websets";
/** All Exa tools (22 total) - static export for backward compatibility */
export const exaTools: CustomTool<any, ExaRenderDetails>[] = [...searchTools, ...researcherTools, ...websetsTools];
export * from "./mcp-client";
export { renderExaCall, renderExaResult } from "./render";
export { researcherTools } from "./researcher";
// Re-export individual modules for selective importing
export { searchTools } from "./search";
// Re-export types and utilities
export type { ExaRenderDetails, ExaSearchResponse, ExaSearchResult, MCPToolWrapperConfig } from "./types";
export { websetsTools } from "./websets";