feat: Initial confluence-mcp server for realtime collaboration

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>
This commit is contained in:
Christian Gick
2026-02-10 18:09:30 +02:00
commit 2768650b42
3824 changed files with 859428 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
// src/router/pattern-router/index.ts
import { PatternRouter } from "./router.js";
export {
PatternRouter
};

48
node_modules/hono/dist/router/pattern-router/router.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
// src/router/pattern-router/router.ts
import { METHOD_NAME_ALL, UnsupportedPathError } from "../../router.js";
var emptyParams = /* @__PURE__ */ Object.create(null);
var PatternRouter = class {
name = "PatternRouter";
#routes = [];
add(method, path, handler) {
const endsWithWildcard = path.at(-1) === "*";
if (endsWithWildcard) {
path = path.slice(0, -2);
}
if (path.at(-1) === "?") {
path = path.slice(0, -1);
this.add(method, path.replace(/\/[^/]+$/, ""), handler);
}
const parts = (path.match(/\/?(:\w+(?:{(?:(?:{[\d,]+})|[^}])+})?)|\/?[^\/\?]+/g) || []).map(
(part) => {
const match = part.match(/^\/:([^{]+)(?:{(.*)})?/);
return match ? `/(?<${match[1]}>${match[2] || "[^/]+"})` : part === "/*" ? "/[^/]+" : part.replace(/[.\\+*[^\]$()]/g, "\\$&");
}
);
try {
this.#routes.push([
new RegExp(`^${parts.join("")}${endsWithWildcard ? "" : "/?$"}`),
method,
handler
]);
} catch {
throw new UnsupportedPathError();
}
}
match(method, path) {
const handlers = [];
for (let i = 0, len = this.#routes.length; i < len; i++) {
const [pattern, routeMethod, handler] = this.#routes[i];
if (routeMethod === method || routeMethod === METHOD_NAME_ALL) {
const match = pattern.exec(path);
if (match) {
handlers.push([handler, match.groups || emptyParams]);
}
}
}
return [handlers];
}
};
export {
PatternRouter
};