-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Problem
Confluence short URLs (tinyui links) like https://COMPANY.atlassian.net/wiki/x/0-TJU cannot be resolved to their page IDs using the current MCP tools.
These short links are commonly used in:
- Runbook URLs in alert definitions
- Documentation references
- Slack messages and emails
Currently, to fetch a page from a short URL, users must:
- Manually search for the page by title/content using
searchConfluenceUsingCql - Find the matching page in results by checking the
tinyuifield in_links - Extract the page ID
- Construct the ARI manually:
ari:cloud:confluence:{cloudId}:page/{pageId}
This is cumbersome and error-prone, especially when you only have the short URL.
Proposed Solution
Add support for short URL resolution in one of these ways:
Option A: Accept short URLs in fetch tool
Allow the fetch tool to accept Confluence short URLs directly and resolve them internally:
fetch({ id: "https://COMPANY.atlassian.net/wiki/x/0-TJU" })
Option B: Add a resolveConfluenceShortUrl tool
New tool that converts a short URL to a page ID or ARI:
resolveConfluenceShortUrl({
cloudId: "...",
shortCode: "0-TJU"
})
// Returns: { pageId: "1355412691", ari: "ari:cloud:confluence:...:page/1355412691" }
Option C: Accept short URLs in getConfluencePage
Allow pageId parameter to accept tinyui codes:
getConfluencePage({ cloudId: "...", pageId: "x/0-TJU" })
Additional Context
- The tinyui code appears in search results under
_links.tinyuibut CQL doesn't support querying by tinyui - The Confluence REST API may have an endpoint to resolve these links (needs investigation)
- Short URLs require authentication to follow redirects, so
fetchcannot resolve them