prd-comment-server
Version:
fetch confluence page comments
28 lines (23 loc) • 634 B
text/typescript
#!/usr/bin/env node
import { FastMCP } from "fastmcp";
import { z } from "zod";
import { fetchComments } from "./fetch_comments.js";
const server = new FastMCP({
name: "Prd_comment_server",
version: "1.0.0",
});
server.addTool({
description: "Fetch PRD comments",
execute: async (args) => {
return fetchComments(args.pageId, args.token, args.baseUrl);
},
name: "fetch",
parameters: z.object({
baseUrl: z.string().describe("The base URL, start with https://"),
pageId: z.string().describe("The page ID"),
token: z.string().describe("The token"),
}),
});
server.start({
transportType: "stdio",
});