@seliseblocks/mcp-server
Version:
A Model Context Protocol (MCP) server for managing schemas in SELISE Blocks platform, built with TypeScript.
88 lines • 2.04 kB
TypeScript
export interface Field {
Name: string;
Type: string;
IsArray: boolean;
}
export interface CreateSchemaArgs {
CollectionName: string;
SchemaName: string;
SchemaType?: number;
Fields: Field[];
ProjectKey: string;
}
export interface UpdateSchemaArgs extends CreateSchemaArgs {
ItemId: string;
}
export interface AuthTokenRequest {
grant_type: string;
username: string;
password: string;
}
export interface AuthTokenResponse {
access_token?: string;
token?: string;
bearerToken?: string;
token_type?: string;
expires_in?: number;
scope?: string;
}
export interface McpToolResult {
content: Array<{
type: 'text';
text: string;
}>;
}
export interface ToolDefinition {
name: string;
description: string;
inputSchema: {
type: 'object';
properties: Record<string, any>;
required?: string[];
};
}
export interface LogEntry {
timestamp: string;
level: string;
message: string;
data?: any;
}
export interface LogFilePaths {
mainLog: string;
errorLog: string;
logsDirectory: string;
}
export interface ApiCallData {
method?: string;
headers?: Record<string, string>;
payload?: any;
status?: number;
statusText?: string;
data?: any;
}
export interface ToolExecutionData {
args?: any;
reason?: string;
missingFields?: string[];
error?: string;
schemaName?: string;
collectionName?: string;
fieldsCount?: number;
[key: string]: any;
}
export interface DataGatewayResponse<T> {
isSuccess: boolean;
data?: T;
message?: string;
httpStatusCode?: number;
errors?: any[];
}
export interface SchemaOperationResponse {
totalImpactedData: number;
itemId?: string;
acknowledged: boolean;
}
export type LogLevel = 'info' | 'warn' | 'error' | 'debug' | 'success';
export type ToolExecutionStatus = 'START' | 'SUCCESS' | 'ERROR';
export type ApiCallDirection = 'REQUEST' | 'RESPONSE';
//# sourceMappingURL=index.d.ts.map