Provides 8 MCP tools for Confluence Cloud: - confluence_list_spaces, confluence_create_space - confluence_search, confluence_get_page - confluence_create_page, confluence_update_page - confluence_get_comments, confluence_add_comment Uses Confluence REST API v2 with basic auth. Registered in Claude Code and mcp-proxy. Refs: CF-935 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
1.0 KiB
JavaScript
33 lines
1.0 KiB
JavaScript
import { parseDef } from "../parseDef.js";
|
|
export function parseTupleDef(def, refs) {
|
|
if (def.rest) {
|
|
return {
|
|
type: "array",
|
|
minItems: def.items.length,
|
|
items: def.items
|
|
.map((x, i) => parseDef(x._def, {
|
|
...refs,
|
|
currentPath: [...refs.currentPath, "items", `${i}`],
|
|
}))
|
|
.reduce((acc, x) => (x === undefined ? acc : [...acc, x]), []),
|
|
additionalItems: parseDef(def.rest._def, {
|
|
...refs,
|
|
currentPath: [...refs.currentPath, "additionalItems"],
|
|
}),
|
|
};
|
|
}
|
|
else {
|
|
return {
|
|
type: "array",
|
|
minItems: def.items.length,
|
|
maxItems: def.items.length,
|
|
items: def.items
|
|
.map((x, i) => parseDef(x._def, {
|
|
...refs,
|
|
currentPath: [...refs.currentPath, "items", `${i}`],
|
|
}))
|
|
.reduce((acc, x) => (x === undefined ? acc : [...acc, x]), []),
|
|
};
|
|
}
|
|
}
|