systemprompt-mcp-core
Version:
A specialized Model Context Protocol (MCP) server that integrates with systemprompt.io to provide powerful prompt management capabilities. This server enables seamless creation, management, and versioning of system prompts and agents through MCP. It works
27 lines (26 loc) • 1.7 kB
TypeScript
import type { SystempromptBlockRequest, SystempromptPromptRequest, SystempromptBlockResponse, SystempromptPromptResponse, SystempromptUserStatusResponse, SystempromptAgentResponse, SystempromptAgentRequest, SystempromptUserRequest } from "../types/index.js";
export declare class SystemPromptService {
private static instance;
private apiKey;
private baseUrl;
private constructor();
static initialize(apiKey: string, baseUrl?: string): void;
static getInstance(): SystemPromptService;
static cleanup(): void;
private request;
getAllPrompts(): Promise<SystempromptPromptResponse[]>;
createPrompt(data: SystempromptPromptRequest): Promise<SystempromptPromptResponse>;
editPrompt(uuid: string, data: Partial<SystempromptPromptRequest>): Promise<SystempromptPromptResponse>;
deletePrompt(uuid: string): Promise<void>;
createBlock(data: SystempromptBlockRequest): Promise<SystempromptBlockResponse>;
editBlock(uuid: string, data: Partial<SystempromptBlockRequest>): Promise<SystempromptBlockResponse>;
listBlocks(): Promise<SystempromptBlockResponse[]>;
getBlock(blockId: string): Promise<SystempromptBlockResponse>;
getAgent(agentId: string): Promise<SystempromptAgentResponse>;
listAgents(): Promise<SystempromptAgentResponse[]>;
createAgent(data: SystempromptAgentRequest): Promise<SystempromptAgentResponse>;
editAgent(uuid: string, data: Partial<SystempromptAgentRequest>): Promise<SystempromptAgentResponse>;
deleteBlock(uuid: string): Promise<void>;
fetchUserStatus(): Promise<SystempromptUserStatusResponse>;
editUser(uuid: string, data: SystempromptUserRequest): Promise<SystempromptUserStatusResponse>;
}