@iflow-mcp/claudeus-wp-mcp
Version:
The most comprehensive WordPress MCP server - 145 production-ready tools for complete WordPress management with AI
68 lines (67 loc) • 1.67 kB
TypeScript
/**
* Resource handling for WordPress MCP
* Manages resource listings and content retrieval
*/
import { ClientMap } from './tools.js';
/**
* Construct a resource URI for a WordPress site
*/
export declare function constructResourceUri(alias: string, baseUrl: string): string;
/**
* List all available WordPress site resources
*/
export declare function listResources(clients: Map<string, ClientMap>): {
resources: {
id: string;
name: string;
type: string;
uri: string;
metadata: {
url: string;
authType: "basic" | "jwt";
};
}[];
};
/**
* Read a specific WordPress site resource
*/
export declare function readResource(uri: string, clients: Map<string, ClientMap>): {
resource: {
id: string;
name: string;
type: string;
uri: string;
metadata: {
url: string;
authType: "basic" | "jwt";
capabilities: {
posts: boolean;
pages: boolean;
media: boolean;
blocks: boolean;
themes: boolean;
taxonomies: boolean;
shop: boolean;
};
};
};
contents: {
type: "text";
uri: string;
text: string;
}[];
};
/**
* List resource templates for a specific resource
*/
export declare function listResourceTemplates(resourceId: string, clients: Map<string, ClientMap>): {
resourceTemplates: {
id: string;
name: string;
description: string;
tool: string;
arguments: {
site: string;
};
}[];
};