UNPKG

@aashari/mcp-server-atlassian-confluence

Version:

Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP in

32 lines (31 loc) 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SearchToolArgs = void 0; const zod_1 = require("zod"); /** * Base pagination arguments for all tools */ const PaginationArgs = { limit: zod_1.z .number() .min(1) .max(100) .optional() .describe('Maximum number of items to return (1-100). Use this to control the response size. Useful for pagination or when you only need a few results. The Confluence search API caps results at 100 items per request.'), cursor: zod_1.z .string() .optional() .describe('Pagination cursor for retrieving the next set of results. Use this to navigate through large result sets. The cursor value can be obtained from the pagination information in a previous response.'), }; /** * Arguments for searching Confluence content * Matches the controller's search function parameters */ const SearchToolArgs = zod_1.z.object({ cql: zod_1.z .string() .optional() .describe('Search query using Confluence Query Language (CQL). Use this to search for content using standard CQL syntax (e.g., "text ~ \'project plan\' AND space = DEV"). If omitted, returns recent content sorted by last modified date.'), ...PaginationArgs, }); exports.SearchToolArgs = SearchToolArgs;