@humanwhocodes/crosspost
Version:
A utility to post across multiple social networks.
20 lines (19 loc) • 758 B
TypeScript
/**
* The CrossPostMcpServer class extends the McpServer to handle cross-posting
* to multiple platforms using different strategies. It allows for flexible
* configuration of strategies and provides prompts and tools for posting
* messages to all or specific platforms.
*/
export class CrosspostMcpServer extends McpServer {
/**
* Creates a enw instance.
* @param {Object} options The options for creating the MCP server instance.
* @param {Array<Strategy>} options.strategies The strategies to use for this instance.
*/
constructor({ strategies }: {
strategies: Array<Strategy>;
});
#private;
}
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import type { Strategy } from "./types.js";