(packageData?: PackageJson)
| 199 | } |
| 200 | |
| 201 | export 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 | |
| 222 | export async function promptTools() { |
| 223 | const addTools = await confirm({ |
no test coverage detected
searching dependent graphs…