MCPcopy Create free account
hub / github.com/modelcontextprotocol/mcpb / getDefaultServerConfig

Function getDefaultServerConfig

src/cli/init.ts:81–87  ·  view source on GitHub ↗
(packageData?: PackageJson)

Source from the content-addressed store, hash-verified

79}
80
81export function getDefaultServerConfig(packageData?: PackageJson) {
82 const serverType = "node" as const;
83 const entryPoint = getDefaultEntryPoint(serverType, packageData);
84 const mcp_config = createMcpConfig(serverType, entryPoint);
85
86 return { serverType, entryPoint, mcp_config };
87}
88
89export function getDefaultOptionalFields(packageData: PackageJson) {
90 return {

Callers 1

initExtensionFunction · 0.85

Calls 2

getDefaultEntryPointFunction · 0.85
createMcpConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…