char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: enforce alphabetical enum member ordering (#27272)01818e495

char/aliceai-t5-moe
1.2 KiB68 linesraw
1/**
2 * Connection lifecycle phases for MCP protocol
3 */
4export enum MCPConnectionPhase {
5	CAPABILITIES_EXCHANGED = 'capabilities_exchanged',
6	CONNECTED = 'connected',
7	DISCONNECTED = 'disconnected',
8	ERROR = 'error',
9	IDLE = 'idle',
10	INITIALIZING = 'initializing',
11	LISTING_TOOLS = 'listing_tools',
12	TRANSPORT_CREATING = 'transport_creating',
13	TRANSPORT_READY = 'transport_ready'
14}
15
16/**
17 * Log level for connection events
18 */
19export enum MCPLogLevel {
20	ERROR = 'error',
21	INFO = 'info',
22	WARN = 'warn'
23}
24
25/**
26 * Transport types for MCP connections
27 */
28export enum MCPTransportType {
29	SSE = 'sse',
30	STREAMABLE_HTTP = 'streamable_http',
31	WEBSOCKET = 'websocket'
32}
33
34/**
35 * Health check status for MCP servers
36 */
37export enum HealthCheckStatus {
38	CONNECTING = 'connecting',
39	ERROR = 'error',
40	IDLE = 'idle',
41	SUCCESS = 'success'
42}
43
44/**
45 * Content types for MCP tool results
46 */
47export enum MCPContentType {
48	IMAGE = 'image',
49	RESOURCE = 'resource',
50	TEXT = 'text'
51}
52
53/**
54 * JSON Schema types used in MCP tool definitions
55 */
56export enum JsonSchemaType {
57	NUMBER = 'number',
58	OBJECT = 'object',
59	STRING = 'string'
60}
61
62/**
63 * Reference types for MCP completions
64 */
65export enum MCPRefType {
66	PROMPT = 'ref/prompt',
67	RESOURCE = 'ref/resource'
68}