Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# IDE
.idea
.vscode
.claude

# Dependencies
node_modules/
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export async function listSessionsAndAuthProfiles(options: {
console.log(chalk.bold('No OAuth profiles.'));
console.log(chalk.dim(' ↳ run: mcpc login mcp.example.com'));
} else {
console.log(chalk.bold('Available OAuth profiles:'));
console.log(chalk.bold('Saved OAuth profiles:'));
for (const profile of profiles) {
const hostStr = getServerHost(profile.serverUrl);
const nameStr = chalk.magenta(profile.name);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ function createTopLevelProgram(): Command {
`
${chalk.bold('MCP session commands (after connecting):')}
<@session> Show MCP server info and capabilities
<@session> ${chalk.cyan('tools-list')} List MCP tools
<@session> ${chalk.cyan('tools-get')} <name>
<@session> ${chalk.cyan('tools-list')} List MCP server tools
<@session> ${chalk.cyan('tools-get')} <name> Get tool details and schema
<@session> ${chalk.cyan('tools-call')} <name> [arg:=val ... | <json> | <stdin]
<@session> ${chalk.cyan('prompts-list')}
<@session> ${chalk.cyan('prompts-get')} <name> [arg:=val ... | <json> | <stdin]
Expand Down
40 changes: 20 additions & 20 deletions src/cli/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ function formatToolsSummary(tools: Tool[]): string[] {
const lines: string[] = [];

// Header with tool count
lines.push(chalk.bold(`Available tools (${tools.length}):`));
lines.push(chalk.bold(`Tools (${tools.length}):`));

// Summary list of tools
const bullet = chalk.dim('*');
Expand Down Expand Up @@ -497,7 +497,7 @@ function formatToolsCompact(tools: Tool[], options?: FormatOptions): string {
const session = options?.sessionName ? `${options.sessionName} ` : '';
lines.push('');
lines.push(
`For full tool details, run \`mcpc ${session}tools-list --full\` or \`mcpc ${session}tools-get <name>\``
`For full tool details and schema, run \`mcpc ${session}tools-list --full\` or \`mcpc ${session}tools-get <name>\``
);

return lines.join('\n');
Expand Down Expand Up @@ -570,7 +570,7 @@ export function formatResources(resources: Resource[]): string {
const lines: string[] = [];

// Header with resource count
lines.push(chalk.bold(`Available resources (${resources.length}):`));
lines.push(chalk.bold(`Resources (${resources.length}):`));

// Summary list of resources
const bullet = chalk.dim('*');
Expand Down Expand Up @@ -627,7 +627,7 @@ export function formatResourceTemplates(templates: ResourceTemplate[]): string {
const lines: string[] = [];

// Header with template count
lines.push(chalk.bold(`Available resource templates (${templates.length}):`));
lines.push(chalk.bold(`Resource templates (${templates.length}):`));

// Summary list of templates
const bullet = chalk.dim('*');
Expand Down Expand Up @@ -684,7 +684,7 @@ export function formatPrompts(prompts: Prompt[]): string {
const lines: string[] = [];

// Header with prompt count
lines.push(chalk.bold(`Available prompts (${prompts.length}):`));
lines.push(chalk.bold(`Prompts (${prompts.length}):`));

// Summary list of prompts
const bullet = chalk.dim('*');
Expand Down Expand Up @@ -1145,6 +1145,21 @@ export function formatServerDetails(
}
lines.push('');

// Tools list (from bridge cache, no extra server call)
if (tools && tools.length > 0) {
lines.push(formatToolsCompact(tools, { sessionName: target }));
lines.push('');
}

// Instructions in code block
const trimmed = instructions ? instructions.trim() : '';
if (trimmed) {
lines.push(chalk.bold('Instructions:'));
lines.push(chalk.gray('````'));
lines.push(trimmed);
lines.push(chalk.gray('````'));
}

// Commands
lines.push(chalk.bold('Available commands:'));
const commands: string[] = [];
Expand Down Expand Up @@ -1184,20 +1199,5 @@ export function formatServerDetails(
lines.push(commands.join('\n'));
lines.push('');

// Tools list (from bridge cache, no extra server call)
if (tools && tools.length > 0) {
lines.push(formatToolsCompact(tools, { sessionName: target }));
lines.push('');
}

// Instructions in code block
const trimmed = instructions ? instructions.trim() : '';
if (trimmed) {
lines.push(chalk.bold('Instructions:'));
lines.push(chalk.gray('````'));
lines.push(trimmed);
lines.push(chalk.gray('````'));
}

return lines.join('\n');
}
Loading