File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Base library data - lightweight, stays in main bundle
22// Extended library data (with React nodes, testimonials, etc.) is in individual library files
33
4- import { redirect } from '@tanstack/react-router'
54import type { LibrarySlim , LibraryId } from './types'
65
76export const query : LibrarySlim = {
@@ -413,21 +412,6 @@ export const mcp: LibrarySlim = {
413412 docsRoot : 'docs/mcp' ,
414413 defaultDocs : 'overview' ,
415414 visible : false ,
416- handleRedirects : ( href : string ) => {
417- const pathMap : Record < string , string > = {
418- overview : 'mcp/mcp-overview' ,
419- connecting : 'mcp/mcp-connecting' ,
420- tools : 'mcp/mcp-tools' ,
421- }
422- const mcpDocsMatch = href . match ( / \/ m c p \/ ( l a t e s t | v 1 ) \/ d o c s \/ ( .* ) / )
423- if ( mcpDocsMatch ) {
424- const newPath = pathMap [ mcpDocsMatch [ 2 ] ] || 'mcp/mcp-overview'
425- throw redirect ( { href : `/cli/latest/docs/${ newPath } ` } )
426- }
427- if ( / \/ m c p ( \/ l a t e s t ) ? $ / . test ( href ) ) {
428- throw redirect ( { href : '/cli/latest/docs/mcp/mcp-overview' } )
429- }
430- } ,
431415}
432416
433417export const cli : LibrarySlim = {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const landingComponents: Partial<
3030 ai : React . lazy ( ( ) => import ( '~/components/landing/AiLanding' ) ) ,
3131 devtools : React . lazy ( ( ) => import ( '~/components/landing/DevtoolsLanding' ) ) ,
3232 cli : React . lazy ( ( ) => import ( '~/components/landing/CliLanding' ) ) ,
33+ mcp : React . lazy ( ( ) => import ( '~/components/landing/McpLanding' ) ) ,
3334}
3435
3536export const Route = createFileRoute ( '/$libraryId/$version/' ) ( {
You can’t perform that action at this time.
0 commit comments