@sigyl-dev/sdk
Version:
Sigyl SDK
61 lines • 2.12 kB
TypeScript
import type { SDKConfig, MCPServer, MCPSearchResult, MCPTool, ServerWithDetails } from './types';
/**
* SigylSDK - Advanced SDK class for working with MCP registry and tools
*/
export declare class SigylSDK {
private config;
/**
* SigylSDK always uses the Sigyl registry API at https://api.sigyl.dev/api/v1
* The registryUrl cannot be overridden by user config.
* @param config - Only apiKey, timeout, and requireAuth are respected
*/
constructor(config?: SDKConfig);
/**
* Search for MCP servers in the registry
*/
searchMCP(query?: string, tags?: string[], limit?: number, offset?: number): Promise<MCPSearchResult>;
/**
* Get detailed information about a specific MCP server
*/
getMCP(name: string): Promise<ServerWithDetails>;
/**
* Search all servers (public operation - limited results)
* This uses the public search endpoint with a high limit
*/
searchAllServers(limit?: number): Promise<MCPServer[]>;
/**
* Get all servers (admin operation - requires admin API key)
* This calls the admin endpoint that requires admin permissions
*/
getAllServers(): Promise<MCPServer[]>;
/**
* Update SDK configuration
*/
updateConfig(newConfig: Partial<SDKConfig>): void;
/**
* Get current SDK configuration
*/
getConfig(): SDKConfig;
/**
* Retrieve MCP server URL and metadata by name
*/
getMCPUrl(name: string): Promise<{
url: string;
server: MCPServer;
} | null>;
/**
* Semantic search for MCP servers
* @param query - user prompt or search string
* @param count - number of results to return (default 1)
*/
semanticMCP(query: string, count?: number): Promise<MCPServer[]>;
/**
* Semantic search for tools across all MCP servers
* @param query - user prompt or search string
* @param count - number of results to return (default 1)
*/
semanticTools(query: string, count?: number): Promise<(MCPTool & {
mcp_server: MCPServer;
})[]>;
}
//# sourceMappingURL=sdk.d.ts.map