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

Function promptServerConfig

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

Source from the content-addressed store, hash-verified

199}
200
201export async function promptServerConfig(packageData?: PackageJson) {
202 const serverType = (await select({
203 message: "Server type:",
204 choices: [
205 { name: "Node.js", value: "node" },
206 { name: "Python", value: "python" },
207 { name: "Binary", value: "binary" },
208 ],
209 default: "node",
210 })) as "node" | "python" | "binary";
211
212 const entryPoint = await input({
213 message: "Entry point:",
214 default: getDefaultEntryPoint(serverType, packageData),
215 });
216
217 const mcp_config = createMcpConfig(serverType, entryPoint);
218
219 return { serverType, entryPoint, mcp_config };
220}
221
222export async function promptTools() {
223 const addTools = await confirm({

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…