Overview
The Sigyl SDK provides a simple interface for discovering, searching, and retrieving metadata about MCP servers (Model Context Protocol servers) from the Sigyl registry. It is designed for developers who want to integrate, search, or connect to MCP servers, but does not handle package creation or deployment.Installation
Importing and Instantiating
Class: SigylSDK
Constructor
config(optional):apiKey?: string— Your API key for authenticated/admin endpointsrequireAuth?: boolean— If true, requires API key for all requests (default: false)timeout?: number— Request timeout in ms (default: 10000)
Methods
searchMCP
- Parameters:
query?: string— Search string (default: undefined)tags?: string[]— Filter by tags (default: undefined)limit?: number— Max results (default: 20)offset?: number— Pagination offset (default: 0)
- Returns:
Promise<MCPSearchResult>
getMCP
- Parameters:
name: string— Name of the MCP server
- Returns:
Promise<PackageWithDetails>
searchAllPackages
- Parameters:
limit?: number— Max results (default: 100)
- Returns:
Promise<MCPServer[]>
getAllServers
- Returns:
Promise<MCPServer[]>(admin only)
updateConfig
- Parameters:
newConfig: Partial<SDKConfig>— Update SDK config
getConfig
- Returns:
SDKConfig(current config)
getMCPUrl
- Parameters:
name: string— Name of the MCP server
- Returns:
Promise<{ url: string; package: MCPServer } | null>
semanticMCP
- Parameters:
query: string— Natural language searchcount?: number— Max results (default: 1)
- Returns:
Promise<MCPServer[]>
semanticTools
- Parameters:
query: string— Natural language searchcount?: number— Max results (default: 1)
- Returns:
Promise<Array<MCPTool & { mcp_server: MCPServer }>>
Types
MCPServer
PackageWithDetails
MCPDeployment
MCPTool
MCPSearchQuery
MCPSearchResult
SDKConfig
Example Usage
Import and Instantiate
Search for MCP Servers
Get Details for a Specific MCP Server
Get the URL for a Server (for use with modelcontextprotocol/sdk Client)
Semantic Search for Servers
Semantic Search for Tools
Authentication & Configuration
- Most endpoints are public, but some (like
getAllServers) require an API key with admin permissions. - You can update the SDK config at runtime using
updateConfig.
Best Practices & Notes
- Use
searchMCPfor lightweight search; usegetMCPfor full details. - Use
getMCPUrlto retrieve the endpoint for direct integration with MCP servers. - The SDK does not support package creation or deployment.
- Types are provided for TypeScript support and can be imported as needed.

