Home / File/ mcp.ts — ui Source File

mcp.ts — ui Source File

Architecture documentation for mcp.ts, a typescript file in the ui codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  8612e6f9_f842_9081_f6b2_e2d4a60804a4["mcp.ts"]
  15e8bad0_00cc_3d96_8e33_2f062120ea7f["highlighter"]
  8612e6f9_f842_9081_f6b2_e2d4a60804a4 --> 15e8bad0_00cc_3d96_8e33_2f062120ea7f
  1df8bbed_5110_29f0_12f0_996fc7a1eda1["logger"]
  8612e6f9_f842_9081_f6b2_e2d4a60804a4 --> 1df8bbed_5110_29f0_12f0_996fc7a1eda1
  7d629454_eee6_73fe_2526_919af8d00ef9["commander"]
  8612e6f9_f842_9081_f6b2_e2d4a60804a4 --> 7d629454_eee6_73fe_2526_919af8d00ef9
  style 8612e6f9_f842_9081_f6b2_e2d4a60804a4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { highlighter } from "@/src/utils/highlighter"
import { logger } from "@/src/utils/logger"
import { Command } from "commander"

export const mcp = new Command()
  .name("registry:mcp")
  .description("starts the registry MCP server [DEPRECATED]")
  .option(
    "-c, --cwd <cwd>",
    "the working directory. defaults to the current directory.",
    process.cwd()
  )
  .action(async () => {
    logger.warn(
      `The ${highlighter.info(
        "shadcn registry:mcp"
      )} command is deprecated. Use the ${highlighter.info(
        "shadcn mcp"
      )} command instead.`
    )
    logger.break()
  })

Subdomains

Functions

Dependencies

  • commander
  • highlighter
  • logger

Frequently Asked Questions

What does mcp.ts do?
mcp.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain, SchemaValidation subdomain.
What functions are defined in mcp.ts?
mcp.ts defines 1 function(s): mcp.
What does mcp.ts depend on?
mcp.ts imports 3 module(s): commander, highlighter, logger.
Where is mcp.ts in the architecture?
mcp.ts is located at packages/shadcn/src/commands/registry/mcp.ts (domain: FrameworkTooling, subdomain: SchemaValidation, directory: packages/shadcn/src/commands/registry).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free