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

Function getDefaultEntryPoint

src/cli/init.ts:129–141  ·  view source on GitHub ↗
(
  serverType: "node" | "python" | "binary",
  packageData?: PackageJson,
)

Source from the content-addressed store, hash-verified

127}
128
129export function getDefaultEntryPoint(
130 serverType: "node" | "python" | "binary",
131 packageData?: PackageJson,
132): string {
133 switch (serverType) {
134 case "node":
135 return packageData?.main || "server/index.js";
136 case "python":
137 return "server/main.py";
138 case "binary":
139 return "server/my-server";
140 }
141}
142
143export async function promptBasicInfo(
144 packageData: PackageJson,

Callers 3

init.test.tsFile · 0.85
getDefaultServerConfigFunction · 0.85
promptServerConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…