@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
76 lines • 2.03 kB
TypeScript
/**
* Resource Registry for MCP Server
* Manages read-only data resources that AI assistants can access
*/
import { PicaClient } from "@withpica/mcp-sdk";
import { ServerConfig } from "../config.js";
export interface ResourceDefinition {
uri: string;
name: string;
description: string;
mimeType: string;
}
export interface ResourceContent {
contents: Array<{
uri: string;
mimeType: string;
text: string;
}>;
}
export type ResourceResult = any;
export declare class ResourceRegistry {
private pica;
private config?;
private skills;
constructor(pica: PicaClient | null, config?: ServerConfig);
/**
* List all available resources
*/
listResources(): ResourceDefinition[];
/**
* Read a resource by URI
*/
readResource(uri: string): Promise<any>;
/**
* Resolve a skill:// URI to its content. Two URI shapes are accepted:
* - skill://withpica/index.json → enumeration JSON
* - skill://withpica/<name>/SKILL.md → per-skill markdown (frontmatter + body)
*
* ADR-140 Phase 2b. SEP-2640 bridge pattern — these URIs are the
* forward-compatible lane for when the MCP skill primitive lands.
*/
private readSkillResource;
/**
* Get OpenAPI specification resource
*/
private getOpenAPISpec;
/**
* Get works list resource
*/
private getWorksList;
/**
* Get people list resource
*/
private getPeopleList;
/**
* Get recordings list resource
*/
private getRecordingsList;
/**
* Get catalog statistics resource
*/
private getCatalogStats;
/**
* Get catalog health (PICA Score) resource
*/
private getCatalogHealth;
/**
* Get workspace context resource — aggregated orientation for agents
*/
private getWorkspaceContext;
/**
* Get recent events resource — webhook deliveries
*/
private getRecentEvents;
}
//# sourceMappingURL=index.d.ts.map