@redocly/theme 0.67.0-next.5 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,5 +64,9 @@ exports.TOOL_CALL_DISPLAY_TEXT = {
64
64
  inProgressText: 'Reading API description...',
65
65
  completedText: 'Read API description',
66
66
  },
67
+ [search_1.ToolCallName.DescribeTools]: {
68
+ inProgressText: 'Discovering available tools...',
69
+ completedText: 'Discovered available tools',
70
+ },
67
71
  };
68
72
  //# sourceMappingURL=search.js.map
@@ -190,24 +190,26 @@ function createMCPAction({ clientType, mcpConfig, translate, onClickCallback, })
190
190
  }
191
191
  function shouldHideAction(action, { pageProps, themeConfig, openapiExcludeFromSearch, isPublic, mcpUrl, isMcpDisabled, }) {
192
192
  var _a, _b, _c, _d, _e, _f, _g, _h;
193
- // Can't use any actions if search is globally disabled (markdown files are not generated)
194
- if ((_a = themeConfig.search) === null || _a === void 0 ? void 0 : _a.hide) {
195
- return true;
196
- }
197
- // Can't use any actions if no markdown files are generated for LLMs
198
- if ((_c = (_b = pageProps === null || pageProps === void 0 ? void 0 : pageProps.seo) === null || _b === void 0 ? void 0 : _b.llmstxt) === null || _c === void 0 ? void 0 : _c.hide) {
199
- return true;
200
- }
201
193
  // Page actions are explicitly disabled in config
202
- if ((_e = (_d = themeConfig.navigation) === null || _d === void 0 ? void 0 : _d.actions) === null || _e === void 0 ? void 0 : _e.hide) {
194
+ if ((_b = (_a = themeConfig.navigation) === null || _a === void 0 ? void 0 : _a.actions) === null || _b === void 0 ? void 0 : _b.hide) {
203
195
  return true;
204
196
  }
205
- const isOpenApiPage = ((_f = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _f === void 0 ? void 0 : _f.type) === 'openapi' || ((_g = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _g === void 0 ? void 0 : _g.subType) === 'openapi-operation';
206
- const isPageExcludedFromSearch = ((_h = pageProps === null || pageProps === void 0 ? void 0 : pageProps.frontmatter) === null || _h === void 0 ? void 0 : _h.excludeFromSearch) || (isOpenApiPage && openapiExcludeFromSearch);
207
- // Page excluded from search: only explicit MCP connect actions remain visible,
208
- // since they don't depend on the page's markdown.
209
- if (isPageExcludedFromSearch && action !== 'mcp-cursor' && action !== 'mcp-vscode') {
210
- return true;
197
+ const actionDependsOnLlmsTxt = ['view', 'copy', 'chatgpt', 'claude'].includes(action);
198
+ if (actionDependsOnLlmsTxt) {
199
+ // Can't use any actions if search is globally disabled (markdown files are not generated)
200
+ if ((_c = themeConfig.search) === null || _c === void 0 ? void 0 : _c.hide) {
201
+ return true;
202
+ }
203
+ // Can't use any actions if no markdown files are generated for LLMs
204
+ if ((_e = (_d = pageProps === null || pageProps === void 0 ? void 0 : pageProps.seo) === null || _d === void 0 ? void 0 : _d.llmstxt) === null || _e === void 0 ? void 0 : _e.hide) {
205
+ return true;
206
+ }
207
+ const isOpenApiPage = ((_f = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _f === void 0 ? void 0 : _f.type) === 'openapi' ||
208
+ ((_g = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _g === void 0 ? void 0 : _g.subType) === 'openapi-operation';
209
+ const isPageExcludedFromSearch = ((_h = pageProps === null || pageProps === void 0 ? void 0 : pageProps.frontmatter) === null || _h === void 0 ? void 0 : _h.excludeFromSearch) || (isOpenApiPage && openapiExcludeFromSearch);
210
+ if (isPageExcludedFromSearch) {
211
+ return true;
212
+ }
211
213
  }
212
214
  return shouldHideActionByType(action, { isPublic, mcpUrl, isMcpDisabled });
213
215
  }
@@ -1013,6 +1013,39 @@ const pages = (0, styled_components_1.css) `
1013
1013
 
1014
1014
  // @tokens End
1015
1015
 
1016
+ /**
1017
+ * @tokens 405 MCP Page
1018
+ * @presenter Color
1019
+ */
1020
+ --page-mcp-405-font-family: var(--font-family-base); // @presenter FontFamily
1021
+ --page-mcp-405-margin-vertical: var(--spacing-xl);
1022
+ --page-mcp-405-margin-horizontal: calc(var(--spacing-xxl) * 2);
1023
+ --page-mcp-405-gap: var(--spacing-lg);
1024
+ --page-mcp-405-max-width: 680px;
1025
+ --page-mcp-405-margin-vertical-mobile: var(--spacing-xxl);
1026
+ --page-mcp-405-margin-horizontal-mobile: 1rem;
1027
+
1028
+ --page-mcp-405-status-text-color: var(--text-color-helper);
1029
+ --page-mcp-405-status-font-size: var(--font-size-lg); // @presenter FontSize
1030
+ --page-mcp-405-status-line-height: var(--line-height-lg); // @presenter LineHeight
1031
+ --page-mcp-405-status-font-weight: var(--font-weight-semibold); // @presenter FontWeight
1032
+
1033
+ --page-mcp-405-title-text-color: var(--text-color-primary);
1034
+ --page-mcp-405-title-font-size: 42px; // @presenter FontSize
1035
+ --page-mcp-405-title-font-weight: var(--font-weight-bold); // @presenter FontWeight
1036
+ --page-mcp-405-title-line-height: 50px; // @presenter LineHeight
1037
+ --page-mcp-405-title-font-size-mobile: var(--h3-font-size);
1038
+ --page-mcp-405-title-line-height-mobile: var(--h3-line-height);
1039
+
1040
+ --page-mcp-405-description-text-color: var(--text-color-secondary);
1041
+ --page-mcp-405-description-font-size: var(--font-size-xl); // @presenter FontSize
1042
+ --page-mcp-405-description-font-weight: var(--font-weight-regular); // @presenter FontWeight
1043
+ --page-mcp-405-description-line-height: var(--line-height-xl);
1044
+ --page-mcp-405-description-font-size-mobile: var(--font-size-lg);
1045
+ --page-mcp-405-description-line-height-mobile: var(--line-height-lg);
1046
+
1047
+ // @tokens End
1048
+
1016
1049
  /**
1017
1050
  * @tokens 500 Page
1018
1051
  * @presenter Color
@@ -1,5 +1,5 @@
1
1
  import type { TOptions } from 'i18next';
2
- export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.create.app.dialog.callbackUrls' | 'dev.create.app.dialog.callbackUrls.placeholder' | 'dev.create.app.dialog.callbackUrls.hint' | 'dev.app.callbackUrls.title' | 'dev.edit.callbackUrls.dialog.title' | 'dev.edit.callbackUrls.dialog.placeholder' | 'dev.edit.callbackUrls.dialog.hint' | 'dev.edit.callbackUrls.dialog.save' | 'dev.edit.callbackUrls.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.error.title' | 'search.error.button' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.back' | 'search.ai.assistant' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.feedback.title' | 'search.ai.feedback.detailsPlaceholder' | 'search.ai.feedback.thanks' | 'search.ai.toolCall.executed' | 'search.ai.toolCall.executing' | 'search.ai.toolCall.withArgs' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'search.ai.feedback.more' | 'search.searchItem.deprecated' | 'search.groups.all' | 'search.filter.field.footer' | 'aiAssistant.trigger' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.forbidden.description' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.catalogs.apiOperation.title' | 'catalog.catalogs.apiOperation.description' | 'catalog.catalogs.apiOperation.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'catalog.backToAllLabel' | 'catalog.notConnected' | 'catalog.tags.label' | 'catalog.sort' | 'catalog.catalogs.label' | 'catalog.owners.label' | 'catalog.repositories.label' | 'catalog.email.label' | 'catalog.format.label' | 'catalog.entityType.label' | 'catalog.domains.label' | 'catalog.contact.label' | 'catalog.methodAndPath.label' | 'catalog.links.label' | 'catalog.metadata.domains' | 'catalog.metadata.owners' | 'catalog.history.button.label' | 'catalog.history.sidebar.title' | 'catalog.history.sidebar.close' | 'catalog.history.version.label' | 'catalog.filters.close' | 'catalog.history.version.notSpecified' | 'catalog.history.version.default' | 'catalog.history.revisions.limitMessage' | 'catalog.history.revision.current' | 'catalog.history.revisions.showLess' | 'catalog.history.revisions.showMore' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeToSingleColumn' | 'sidebar.actions.changeToTwoColumns' | 'sidebar.actions.singleColumn' | 'sidebar.actions.twoColumns' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.maxLength' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'codeSnippet.expand.tooltipText' | 'codeSnippet.collapse.tooltipText' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'page.actions.copyButtonText' | 'page.actions.copyTitle' | 'page.actions.copyDescription' | 'page.actions.viewAsMdTitle' | 'page.actions.viewAsMdButtonText' | 'page.actions.viewAsMdDescription' | 'page.actions.chatGptTitle' | 'page.actions.chatGptButtonText' | 'page.actions.chatGptDescription' | 'page.actions.claudeTitle' | 'page.actions.claudeButtonText' | 'page.actions.claudeDescription' | 'page.actions.cursorMcpButtonText' | 'page.actions.cursorMcpTitle' | 'page.actions.cursorMcpDescription' | 'page.actions.connectMcp' | 'page.actions.connectMcp.cursor' | 'page.actions.connectMcp.cursorDescription' | 'page.actions.connectMcp.vscode' | 'page.actions.connectMcp.vscodeDescription' | 'page.actions.connectMcp.copyConfig' | 'page.actions.connectMcp.copyConfigDescription' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.languages.moreButton.tooltipText' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.discriminator.searchPlaceholder' | 'openapi.discriminator.searchNoResults' | 'openapi.discriminator.defaultMapping' | 'openapi.discriminator.defaultMappingTooltip' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'openapi.schemaCatalogLink.title' | 'openapi.schemaCatalogLink.copyButtonTooltip' | 'openapi.schemaCatalogLink.copiedTooltip' | 'openapi.mcp.title' | 'openapi.mcp.endpoint' | 'openapi.mcp.tools' | 'openapi.mcp.protocolVersion' | 'openapi.mcp.capabilities' | 'openapi.mcp.experimentalCapabilities' | 'openapi.mcp.inputSchema' | 'openapi.mcp.inputExample' | 'openapi.mcp.outputSchema' | 'openapi.mcp.outputExample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.download.description.title' | 'graphql.info.title' | 'graphql.info.contact.url' | 'graphql.info.contact.name' | 'graphql.info.license' | 'graphql.info.termsOfService' | 'graphql.overview' | 'graphql.metadata' | 'graphql.key' | 'graphql.value' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.requiredScopes' | 'graphql.viewSecurityDetails' | 'graphql.objectScopes' | 'graphql.fieldScopes' | 'graphql.implementedInterfaces' | 'graphql.implementedBy' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'button.copy.tooltipText' | 'button.download.tooltipText' | 'button.externalLink.tooltipText' | 'button.email.tooltipText' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label' | 'select.noResults' | 'loaders.loading' | 'filter.dateRange.from' | 'filter.dateRange.to' | 'diagram.openFullscreen' | 'diagram.zoomIn' | 'diagram.zoomOut' | 'diagram.reset' | 'diagram.close' | 'diagram.viewer';
2
+ export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.create.app.dialog.callbackUrls' | 'dev.create.app.dialog.callbackUrls.placeholder' | 'dev.create.app.dialog.callbackUrls.hint' | 'dev.app.callbackUrls.title' | 'dev.edit.callbackUrls.dialog.title' | 'dev.edit.callbackUrls.dialog.placeholder' | 'dev.edit.callbackUrls.dialog.hint' | 'dev.edit.callbackUrls.dialog.save' | 'dev.edit.callbackUrls.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.error.title' | 'search.error.button' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.back' | 'search.ai.assistant' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.feedback.title' | 'search.ai.feedback.detailsPlaceholder' | 'search.ai.feedback.thanks' | 'search.ai.toolCall.executed' | 'search.ai.toolCall.executing' | 'search.ai.toolCall.withArgs' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'search.ai.feedback.more' | 'search.searchItem.deprecated' | 'search.groups.all' | 'search.filter.field.footer' | 'aiAssistant.trigger' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.forbidden.description' | 'page.notFound.title' | 'page.notFound.description' | 'page.mcpNotAllowed.title' | 'page.mcpNotAllowed.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.catalogs.dataSchema.title' | 'catalog.catalogs.dataSchema.description' | 'catalog.catalogs.dataSchema.switcherLabel' | 'catalog.catalogs.apiOperation.title' | 'catalog.catalogs.apiOperation.description' | 'catalog.catalogs.apiOperation.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.schema.title' | 'catalog.entity.properties.apiDescription.title' | 'catalog.backToAllLabel' | 'catalog.notConnected' | 'catalog.tags.label' | 'catalog.sort' | 'catalog.catalogs.label' | 'catalog.owners.label' | 'catalog.repositories.label' | 'catalog.email.label' | 'catalog.format.label' | 'catalog.entityType.label' | 'catalog.domains.label' | 'catalog.contact.label' | 'catalog.methodAndPath.label' | 'catalog.links.label' | 'catalog.metadata.domains' | 'catalog.metadata.owners' | 'catalog.history.button.label' | 'catalog.history.sidebar.title' | 'catalog.history.sidebar.close' | 'catalog.history.version.label' | 'catalog.filters.close' | 'catalog.history.version.notSpecified' | 'catalog.history.version.default' | 'catalog.history.revisions.limitMessage' | 'catalog.history.revision.current' | 'catalog.history.revisions.showLess' | 'catalog.history.revisions.showMore' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeToSingleColumn' | 'sidebar.actions.changeToTwoColumns' | 'sidebar.actions.singleColumn' | 'sidebar.actions.twoColumns' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.maxLength' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'codeSnippet.expand.tooltipText' | 'codeSnippet.collapse.tooltipText' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'page.actions.copyButtonText' | 'page.actions.copyTitle' | 'page.actions.copyDescription' | 'page.actions.viewAsMdTitle' | 'page.actions.viewAsMdButtonText' | 'page.actions.viewAsMdDescription' | 'page.actions.chatGptTitle' | 'page.actions.chatGptButtonText' | 'page.actions.chatGptDescription' | 'page.actions.claudeTitle' | 'page.actions.claudeButtonText' | 'page.actions.claudeDescription' | 'page.actions.cursorMcpButtonText' | 'page.actions.cursorMcpTitle' | 'page.actions.cursorMcpDescription' | 'page.actions.connectMcp' | 'page.actions.connectMcp.cursor' | 'page.actions.connectMcp.cursorDescription' | 'page.actions.connectMcp.vscode' | 'page.actions.connectMcp.vscodeDescription' | 'page.actions.connectMcp.copyConfig' | 'page.actions.connectMcp.copyConfigDescription' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.languages.moreButton.tooltipText' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.discriminator.searchPlaceholder' | 'openapi.discriminator.searchNoResults' | 'openapi.discriminator.defaultMapping' | 'openapi.discriminator.defaultMappingTooltip' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'openapi.schemaCatalogLink.title' | 'openapi.schemaCatalogLink.copyButtonTooltip' | 'openapi.schemaCatalogLink.copiedTooltip' | 'openapi.mcp.title' | 'openapi.mcp.endpoint' | 'openapi.mcp.tools' | 'openapi.mcp.protocolVersion' | 'openapi.mcp.capabilities' | 'openapi.mcp.experimentalCapabilities' | 'openapi.mcp.inputSchema' | 'openapi.mcp.inputExample' | 'openapi.mcp.outputSchema' | 'openapi.mcp.outputExample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.download.description.title' | 'graphql.info.title' | 'graphql.info.contact.url' | 'graphql.info.contact.name' | 'graphql.info.license' | 'graphql.info.termsOfService' | 'graphql.overview' | 'graphql.metadata' | 'graphql.key' | 'graphql.value' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.requiredScopes' | 'graphql.viewSecurityDetails' | 'graphql.objectScopes' | 'graphql.fieldScopes' | 'graphql.implementedInterfaces' | 'graphql.implementedBy' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'button.copy.tooltipText' | 'button.download.tooltipText' | 'button.externalLink.tooltipText' | 'button.email.tooltipText' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description' | 'page.skipToContent.label' | 'select.noResults' | 'loaders.loading' | 'filter.dateRange.from' | 'filter.dateRange.to' | 'diagram.openFullscreen' | 'diagram.zoomIn' | 'diagram.zoomOut' | 'diagram.reset' | 'diagram.close' | 'diagram.viewer';
3
3
  export type Locale = {
4
4
  code: string;
5
5
  name: string;
@@ -125,5 +125,6 @@ export declare enum ToolCallName {
125
125
  GetEndpointInfo = "get-endpoint-info",
126
126
  GetSecuritySchemes = "get-security-schemes",
127
127
  GetFullApiDescription = "get-full-api-description",
128
- Execute = "execute"
128
+ Execute = "execute",
129
+ DescribeTools = "describe-tools"
129
130
  }
@@ -15,5 +15,6 @@ var ToolCallName;
15
15
  ToolCallName["GetSecuritySchemes"] = "get-security-schemes";
16
16
  ToolCallName["GetFullApiDescription"] = "get-full-api-description";
17
17
  ToolCallName["Execute"] = "execute";
18
+ ToolCallName["DescribeTools"] = "describe-tools";
18
19
  })(ToolCallName || (exports.ToolCallName = ToolCallName = {}));
19
20
  //# sourceMappingURL=search.js.map
@@ -0,0 +1,2 @@
1
+ import type { JSX } from 'react';
2
+ export default function McpNotAllowed(): JSX.Element;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = McpNotAllowed;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const hooks_1 = require("../core/hooks");
10
+ const ConnectMCPButton_1 = require("../components/Buttons/ConnectMCPButton");
11
+ function McpNotAllowed() {
12
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
13
+ const { translate } = useTranslate();
14
+ return (react_1.default.createElement(NotAllowedWrapper, { "data-component-name": "layouts/McpNotAllowed" },
15
+ react_1.default.createElement(StatusText, null, "405"),
16
+ react_1.default.createElement(Title, { "data-translation-key": "page.mcpNotAllowed.title" }, translate('page.mcpNotAllowed.title', 'Method not allowed')),
17
+ react_1.default.createElement(Description, { "data-translation-key": "page.mcpNotAllowed.description" }, translate('page.mcpNotAllowed.description', 'To use this MCP server, register it in your MCP Client (for example: VS Code, Cursor, or Claude Code).')),
18
+ react_1.default.createElement(ButtonWrapper, null,
19
+ react_1.default.createElement(ConnectMCPButton_1.ConnectMCPButton, { alignment: "start" }))));
20
+ }
21
+ const NotAllowedWrapper = styled_components_1.default.div `
22
+ height: 100%;
23
+ max-width: var(--page-mcp-405-max-width);
24
+ display: flex;
25
+ flex-direction: column;
26
+ justify-content: center;
27
+ margin: var(--page-mcp-405-margin-vertical) var(--page-mcp-405-margin-horizontal);
28
+ font-family: var(--page-mcp-405-font-family);
29
+ gap: var(--page-mcp-405-gap);
30
+
31
+ @media (max-width: 480px) {
32
+ margin: var(--page-mcp-405-margin-vertical-mobile) var(--page-mcp-405-margin-horizontal-mobile);
33
+ }
34
+ `;
35
+ const StatusText = styled_components_1.default.div `
36
+ color: var(--page-mcp-405-status-text-color);
37
+ font-size: var(--page-mcp-405-status-font-size);
38
+ line-height: var(--page-mcp-405-status-line-height);
39
+ font-weight: var(--page-mcp-405-status-font-weight);
40
+ `;
41
+ const Title = styled_components_1.default.div `
42
+ font-size: var(--page-mcp-405-title-font-size);
43
+ line-height: var(--page-mcp-405-title-line-height);
44
+ font-weight: var(--page-mcp-405-title-font-weight);
45
+ color: var(--page-mcp-405-title-text-color);
46
+
47
+ @media (max-width: 480px) {
48
+ font-size: var(--page-mcp-405-title-font-size-mobile);
49
+ line-height: var(--page-mcp-405-title-line-height-mobile);
50
+ }
51
+ `;
52
+ const Description = styled_components_1.default.div `
53
+ color: var(--page-mcp-405-description-text-color);
54
+ font-size: var(--page-mcp-405-description-font-size);
55
+ line-height: var(--page-mcp-405-description-line-height);
56
+ font-weight: var(--page-mcp-405-description-font-weight);
57
+
58
+ @media (max-width: 480px) {
59
+ font-size: var(--page-mcp-405-description-font-size-mobile);
60
+ line-height: var(--page-mcp-405-description-line-height-mobile);
61
+ }
62
+ `;
63
+ const ButtonWrapper = styled_components_1.default.div `
64
+ position: relative;
65
+ display: inline-block;
66
+ `;
67
+ //# sourceMappingURL=McpNotAllowed.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.67.0-next.5",
3
+ "version": "0.67.0",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -63,7 +63,7 @@
63
63
  "vitest": "4.1.8",
64
64
  "vitest-when": "0.6.2",
65
65
  "webpack": "5.105.2",
66
- "@redocly/realm-asyncapi-sdk": "0.13.0-next.4"
66
+ "@redocly/realm-asyncapi-sdk": "0.13.0"
67
67
  },
68
68
  "dependencies": {
69
69
  "@tanstack/react-query": "5.62.3",
@@ -81,7 +81,7 @@
81
81
  "openapi-sampler": "^1.7.2",
82
82
  "react-calendar": "5.1.0",
83
83
  "react-date-picker": "11.0.0",
84
- "@redocly/config": "0.49.1"
84
+ "@redocly/config": "0.50.1"
85
85
  },
86
86
  "scripts": {
87
87
  "watch": "tsgo -p tsconfig.build.json && (concurrently \"tsgo -w -p tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\")",
@@ -73,4 +73,8 @@ export const TOOL_CALL_DISPLAY_TEXT: Partial<
73
73
  inProgressText: 'Reading API description...',
74
74
  completedText: 'Read API description',
75
75
  },
76
+ [ToolCallName.DescribeTools]: {
77
+ inProgressText: 'Discovering available tools...',
78
+ completedText: 'Discovered available tools',
79
+ },
76
80
  };
@@ -40,6 +40,7 @@ export type PageActionType =
40
40
  | 'claude'
41
41
  | 'docs-mcp-cursor'
42
42
  | 'docs-mcp-vscode'
43
+ // Used in OpenAPI docs x-mcp
43
44
  | 'mcp-cursor'
44
45
  | 'mcp-vscode';
45
46
 
@@ -289,28 +290,32 @@ function shouldHideAction(
289
290
  isMcpDisabled,
290
291
  }: ShouldHideActionContext,
291
292
  ): boolean {
292
- // Can't use any actions if search is globally disabled (markdown files are not generated)
293
- if (themeConfig.search?.hide) {
294
- return true;
295
- }
296
- // Can't use any actions if no markdown files are generated for LLMs
297
- if (pageProps?.seo?.llmstxt?.hide) {
298
- return true;
299
- }
300
293
  // Page actions are explicitly disabled in config
301
294
  if (themeConfig.navigation?.actions?.hide) {
302
295
  return true;
303
296
  }
304
297
 
305
- const isOpenApiPage =
306
- pageProps?.metadata?.type === 'openapi' || pageProps?.metadata?.subType === 'openapi-operation';
307
- const isPageExcludedFromSearch =
308
- pageProps?.frontmatter?.excludeFromSearch || (isOpenApiPage && openapiExcludeFromSearch);
298
+ const actionDependsOnLlmsTxt = ['view', 'copy', 'chatgpt', 'claude'].includes(action);
309
299
 
310
- // Page excluded from search: only explicit MCP connect actions remain visible,
311
- // since they don't depend on the page's markdown.
312
- if (isPageExcludedFromSearch && action !== 'mcp-cursor' && action !== 'mcp-vscode') {
313
- return true;
300
+ if (actionDependsOnLlmsTxt) {
301
+ // Can't use any actions if search is globally disabled (markdown files are not generated)
302
+ if (themeConfig.search?.hide) {
303
+ return true;
304
+ }
305
+ // Can't use any actions if no markdown files are generated for LLMs
306
+ if (pageProps?.seo?.llmstxt?.hide) {
307
+ return true;
308
+ }
309
+
310
+ const isOpenApiPage =
311
+ pageProps?.metadata?.type === 'openapi' ||
312
+ pageProps?.metadata?.subType === 'openapi-operation';
313
+ const isPageExcludedFromSearch =
314
+ pageProps?.frontmatter?.excludeFromSearch || (isOpenApiPage && openapiExcludeFromSearch);
315
+
316
+ if (isPageExcludedFromSearch) {
317
+ return true;
318
+ }
314
319
  }
315
320
 
316
321
  return shouldHideActionByType(action, { isPublic, mcpUrl, isMcpDisabled });
@@ -1026,6 +1026,39 @@ const pages = css`
1026
1026
 
1027
1027
  // @tokens End
1028
1028
 
1029
+ /**
1030
+ * @tokens 405 MCP Page
1031
+ * @presenter Color
1032
+ */
1033
+ --page-mcp-405-font-family: var(--font-family-base); // @presenter FontFamily
1034
+ --page-mcp-405-margin-vertical: var(--spacing-xl);
1035
+ --page-mcp-405-margin-horizontal: calc(var(--spacing-xxl) * 2);
1036
+ --page-mcp-405-gap: var(--spacing-lg);
1037
+ --page-mcp-405-max-width: 680px;
1038
+ --page-mcp-405-margin-vertical-mobile: var(--spacing-xxl);
1039
+ --page-mcp-405-margin-horizontal-mobile: 1rem;
1040
+
1041
+ --page-mcp-405-status-text-color: var(--text-color-helper);
1042
+ --page-mcp-405-status-font-size: var(--font-size-lg); // @presenter FontSize
1043
+ --page-mcp-405-status-line-height: var(--line-height-lg); // @presenter LineHeight
1044
+ --page-mcp-405-status-font-weight: var(--font-weight-semibold); // @presenter FontWeight
1045
+
1046
+ --page-mcp-405-title-text-color: var(--text-color-primary);
1047
+ --page-mcp-405-title-font-size: 42px; // @presenter FontSize
1048
+ --page-mcp-405-title-font-weight: var(--font-weight-bold); // @presenter FontWeight
1049
+ --page-mcp-405-title-line-height: 50px; // @presenter LineHeight
1050
+ --page-mcp-405-title-font-size-mobile: var(--h3-font-size);
1051
+ --page-mcp-405-title-line-height-mobile: var(--h3-line-height);
1052
+
1053
+ --page-mcp-405-description-text-color: var(--text-color-secondary);
1054
+ --page-mcp-405-description-font-size: var(--font-size-xl); // @presenter FontSize
1055
+ --page-mcp-405-description-font-weight: var(--font-weight-regular); // @presenter FontWeight
1056
+ --page-mcp-405-description-line-height: var(--line-height-xl);
1057
+ --page-mcp-405-description-font-size-mobile: var(--font-size-lg);
1058
+ --page-mcp-405-description-line-height-mobile: var(--line-height-lg);
1059
+
1060
+ // @tokens End
1061
+
1029
1062
  /**
1030
1063
  * @tokens 500 Page
1031
1064
  * @presenter Color
@@ -134,6 +134,8 @@ export type TranslationKey =
134
134
  | 'page.forbidden.description'
135
135
  | 'page.notFound.title'
136
136
  | 'page.notFound.description'
137
+ | 'page.mcpNotAllowed.title'
138
+ | 'page.mcpNotAllowed.description'
137
139
  | 'page.lastUpdated.timeago'
138
140
  | 'page.lastUpdated.on'
139
141
  | 'catalog.filters.placeholder'
@@ -133,4 +133,5 @@ export enum ToolCallName {
133
133
  GetSecuritySchemes = 'get-security-schemes',
134
134
  GetFullApiDescription = 'get-full-api-description',
135
135
  Execute = 'execute',
136
+ DescribeTools = 'describe-tools',
136
137
  }
@@ -0,0 +1,81 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ import type { JSX } from 'react';
5
+
6
+ import { useThemeHooks } from '@redocly/theme/core/hooks';
7
+ import { ConnectMCPButton } from '@redocly/theme/components/Buttons/ConnectMCPButton';
8
+
9
+ export default function McpNotAllowed(): JSX.Element {
10
+ const { useTranslate } = useThemeHooks();
11
+ const { translate } = useTranslate();
12
+
13
+ return (
14
+ <NotAllowedWrapper data-component-name="layouts/McpNotAllowed">
15
+ <StatusText>405</StatusText>
16
+ <Title data-translation-key="page.mcpNotAllowed.title">
17
+ {translate('page.mcpNotAllowed.title', 'Method not allowed')}
18
+ </Title>
19
+ <Description data-translation-key="page.mcpNotAllowed.description">
20
+ {translate(
21
+ 'page.mcpNotAllowed.description',
22
+ 'To use this MCP server, register it in your MCP Client (for example: VS Code, Cursor, or Claude Code).',
23
+ )}
24
+ </Description>
25
+ <ButtonWrapper>
26
+ <ConnectMCPButton alignment="start" />
27
+ </ButtonWrapper>
28
+ </NotAllowedWrapper>
29
+ );
30
+ }
31
+
32
+ const NotAllowedWrapper = styled.div`
33
+ height: 100%;
34
+ max-width: var(--page-mcp-405-max-width);
35
+ display: flex;
36
+ flex-direction: column;
37
+ justify-content: center;
38
+ margin: var(--page-mcp-405-margin-vertical) var(--page-mcp-405-margin-horizontal);
39
+ font-family: var(--page-mcp-405-font-family);
40
+ gap: var(--page-mcp-405-gap);
41
+
42
+ @media (max-width: 480px) {
43
+ margin: var(--page-mcp-405-margin-vertical-mobile) var(--page-mcp-405-margin-horizontal-mobile);
44
+ }
45
+ `;
46
+
47
+ const StatusText = styled.div`
48
+ color: var(--page-mcp-405-status-text-color);
49
+ font-size: var(--page-mcp-405-status-font-size);
50
+ line-height: var(--page-mcp-405-status-line-height);
51
+ font-weight: var(--page-mcp-405-status-font-weight);
52
+ `;
53
+
54
+ const Title = styled.div`
55
+ font-size: var(--page-mcp-405-title-font-size);
56
+ line-height: var(--page-mcp-405-title-line-height);
57
+ font-weight: var(--page-mcp-405-title-font-weight);
58
+ color: var(--page-mcp-405-title-text-color);
59
+
60
+ @media (max-width: 480px) {
61
+ font-size: var(--page-mcp-405-title-font-size-mobile);
62
+ line-height: var(--page-mcp-405-title-line-height-mobile);
63
+ }
64
+ `;
65
+
66
+ const Description = styled.div`
67
+ color: var(--page-mcp-405-description-text-color);
68
+ font-size: var(--page-mcp-405-description-font-size);
69
+ line-height: var(--page-mcp-405-description-line-height);
70
+ font-weight: var(--page-mcp-405-description-font-weight);
71
+
72
+ @media (max-width: 480px) {
73
+ font-size: var(--page-mcp-405-description-font-size-mobile);
74
+ line-height: var(--page-mcp-405-description-line-height-mobile);
75
+ }
76
+ `;
77
+
78
+ const ButtonWrapper = styled.div`
79
+ position: relative;
80
+ display: inline-block;
81
+ `;