Buckets:
evalstate/sandbox-testing-2 / hf-mcp-server /packages /app /dist /server /utils /mcp-api-client.d.ts
| import { EventEmitter } from 'events'; | |
| import type { AppSettings } from '../../shared/settings.js'; | |
| import type { TransportInfo } from '../../shared/transport-info.js'; | |
| interface ToolStateChangeCallback { | |
| (toolId: string, enabled: boolean): void; | |
| } | |
| export interface GradioEndpoint { | |
| name: string; | |
| subdomain: string; | |
| id?: string; | |
| emoji?: string; | |
| isPrivate?: boolean; | |
| } | |
| export interface ApiClientConfig { | |
| type: 'polling' | 'external'; | |
| baseUrl?: string; | |
| pollInterval?: number; | |
| externalUrl?: string; | |
| userConfigUrl?: string; | |
| hfToken?: string; | |
| staticGradioEndpoints?: GradioEndpoint[]; | |
| } | |
| export declare class McpApiClient extends EventEmitter { | |
| private config; | |
| private pollTimer; | |
| private cache; | |
| private gradioEndpoints; | |
| private gradioEndpointStates; | |
| private isPolling; | |
| private transportInfo; | |
| constructor(config: ApiClientConfig, transportInfo?: TransportInfo); | |
| getTransportInfo(): TransportInfo | null; | |
| getSettings(overrideToken?: string): Promise<AppSettings>; | |
| getToolStates(overrideToken?: string): Promise<Record<string, boolean> | null>; | |
| getGradioEndpoints(): GradioEndpoint[]; | |
| updateGradioEndpointState(index: number, enabled: boolean): void; | |
| updateGradioEndpoint(index: number, endpoint: GradioEndpoint): void; | |
| startPolling(onUpdate: ToolStateChangeCallback): Promise<void>; | |
| stopPolling(): void; | |
| destroy(): void; | |
| } | |
| export {}; | |
| //# sourceMappingURL=mcp-api-client.d.ts.map |
Xet Storage Details
- Size:
- 1.49 kB
- Xet hash:
- 2fde57e1adf37821f221816058c9f79e77bae0a689d19f1e7d0d1fdaa45d9471
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.