getMcpConfig() — ui Function Reference
Architecture documentation for the getMcpConfig() function in utils.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 14c8be16_4f89_554a_f94f_c96a19f7a27b["getMcpConfig()"] 7f4634ea_efbc_d613_10b1_f8b135d63ff3["utils.ts"] 14c8be16_4f89_554a_f94f_c96a19f7a27b -->|defined in| 7f4634ea_efbc_d613_10b1_f8b135d63ff3 style 14c8be16_4f89_554a_f94f_c96a19f7a27b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/mcp/utils.ts lines 13–21
export async function getMcpConfig(cwd = process.cwd()) {
const config = await getRegistriesConfig(cwd, {
useCache: false,
})
return {
registries: config.registries,
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getMcpConfig() do?
getMcpConfig() is a function in the ui codebase, defined in packages/shadcn/src/mcp/utils.ts.
Where is getMcpConfig() defined?
getMcpConfig() is defined in packages/shadcn/src/mcp/utils.ts at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free