Skip to content

Commit 9d3945f

Browse files
adwsinghrhernandez35
authored andcommitted
Minor fixes to messages and error in AbstractCreateBundle
1 parent 1f90ff4 commit 9d3945f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp/mcp-cli-api/src/main/java/software/amazon/smithy/java/mcp/cli/AbstractCreateBundle.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@ protected void execute(ExecutionContext context) throws Exception {
4747
var input = getInput();
4848
var config = context.config();
4949
if (!input.overwrite && config.getToolBundles().containsKey(input.id)) {
50-
throw new IllegalArgumentException("Tool bundle " + input.id
51-
+ " already exists. Either choose a new name or pass --overwrite to overwrite the existing tool bundle");
50+
throw new IllegalArgumentException("MCP server " + input.id
51+
+ " already exists. Either choose a new id or pass --overwrite to overwrite the existing one.");
5252
}
5353

5454
if (input.name == null) {
5555
input.name = input.id;
5656
}
5757
if (input.description == null) {
58-
input.description = "[" + input.id + "]" + " MCP Server";
58+
input.description = "[" + input.id + "]" + " MCP server";
5959
}
6060

6161
var bundle = getNewBundle(input);
6262
ConfigUtils.addMcpBundle(config, input.id, bundle, true);
6363
ConfigUtils.createWrapperAndUpdateClientConfigs(input.id, bundle, config, input.clientsInput);
64-
System.out.println("Successfully created mcp server " + input.id);
64+
System.out.println("Successfully created MCP server " + input.id);
6565
}
6666

6767
protected abstract T getInput();

0 commit comments

Comments
 (0)