Skip to content

Print human-readable titles alongside MCP server identifiers in list subcommand#760

Merged
rhernandez35 merged 1 commit into
mainfrom
mcp-server-titles
Jun 10, 2025
Merged

Print human-readable titles alongside MCP server identifiers in list subcommand#760
rhernandez35 merged 1 commit into
mainfrom
mcp-server-titles

Conversation

@rhernandez35

Copy link
Copy Markdown
Collaborator

We now print a friendly title with each server. The server identifier is bolded so users will know to use it with start-server and install. We can move the title into the body of the listing if we think we'll need additional clarity.

@rhernandez35
rhernandez35 requested a review from adwsingh June 10, 2025 00:08

public interface Registry {

final class RegistryEntry {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentionally not a record. I don't want this to be usable in record destructuring statements.

.getColorScheme()
.string("@|bold " + bundle.getName() + (isInstalled ? " [installed]" : "") + "|@"));
.string("@|bold " + bundle.getName() + (isInstalled ? " [installed]" : "") + "|@: "
+ entry.getTitle()));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a println at the end of description. Otherwise descriptions are clobberred.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "clobbered?" The output appears fine on my screen, if not a bit cramped.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I meant cramped. I did it in #761

@rhernandez35
rhernandez35 merged commit d776cf6 into main Jun 10, 2025
2 checks passed
@rhernandez35
rhernandez35 deleted the mcp-server-titles branch June 10, 2025 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants