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>
23 lines
1.0 KiB
TypeScript
23 lines
1.0 KiB
TypeScript
/**
|
|
* Utilities for handling OAuth resource URIs.
|
|
*/
|
|
/**
|
|
* Converts a server URL to a resource URL by removing the fragment.
|
|
* RFC 8707 section 2 states that resource URIs "MUST NOT include a fragment component".
|
|
* Keeps everything else unchanged (scheme, domain, port, path, query).
|
|
*/
|
|
export declare function resourceUrlFromServerUrl(url: URL | string): URL;
|
|
/**
|
|
* Checks if a requested resource URL matches a configured resource URL.
|
|
* A requested resource matches if it has the same scheme, domain, port,
|
|
* and its path starts with the configured resource's path.
|
|
*
|
|
* @param requestedResource The resource URL being requested
|
|
* @param configuredResource The resource URL that has been configured
|
|
* @returns true if the requested resource matches the configured resource, false otherwise
|
|
*/
|
|
export declare function checkResourceAllowed({ requestedResource, configuredResource }: {
|
|
requestedResource: URL | string;
|
|
configuredResource: URL | string;
|
|
}): boolean;
|
|
//# sourceMappingURL=auth-utils.d.ts.map
|