Remove MCP Tips and reorganize MCP slash commands (#11387)

This commit is contained in:
Tommaso Sciortino
2025-10-17 12:35:14 -07:00
committed by GitHub
parent 6786684962
commit 7c086fe55b
8 changed files with 139 additions and 169 deletions
@@ -43,7 +43,6 @@ describe('McpStatus', () => {
connectingServers: [],
showDescriptions: true,
showSchema: false,
showTips: false,
};
it('renders correctly with a connected server', () => {
@@ -123,11 +122,6 @@ describe('McpStatus', () => {
expect(lastFrame()).toMatchSnapshot();
});
it('renders correctly with tips enabled', () => {
const { lastFrame } = render(<McpStatus {...baseProps} showTips={true} />);
expect(lastFrame()).toMatchSnapshot();
});
it('renders correctly with prompts', () => {
const { lastFrame } = render(
<McpStatus
@@ -26,7 +26,6 @@ interface McpStatusProps {
connectingServers: string[];
showDescriptions: boolean;
showSchema: boolean;
showTips: boolean;
}
export const McpStatus: React.FC<McpStatusProps> = ({
@@ -40,7 +39,6 @@ export const McpStatus: React.FC<McpStatusProps> = ({
connectingServers,
showDescriptions,
showSchema,
showTips,
}) => {
const serverNames = Object.keys(servers);
@@ -249,29 +247,6 @@ export const McpStatus: React.FC<McpStatusProps> = ({
<Text> - Blocked</Text>
</Box>
))}
{showTips && (
<Box flexDirection="column" marginTop={1}>
<Text color={theme.text.accent}>💡 Tips:</Text>
<Text>
{' '}- Use <Text color={theme.text.accent}>/mcp desc</Text> to show
server and tool descriptions
</Text>
<Text>
{' '}- Use <Text color={theme.text.accent}>/mcp schema</Text> to
show tool parameter schemas
</Text>
<Text>
{' '}- Use <Text color={theme.text.accent}>/mcp nodesc</Text> to
hide descriptions
</Text>
<Text>
{' '}- Use{' '}
<Text color={theme.text.accent}>/mcp auth &lt;server-name&gt;</Text>{' '}
to authenticate with OAuth-enabled servers
</Text>
</Box>
)}
</Box>
);
};
@@ -136,23 +136,6 @@ A test server
"
`;
exports[`McpStatus > renders correctly with tips enabled 1`] = `
"Configured MCP servers:
🟢 server-1 - Ready (1 tool)
A test server
Tools:
- tool-1
A test tool
💡 Tips:
- Use /mcp desc to show server and tool descriptions
- Use /mcp schema to show tool parameter schemas
- Use /mcp nodesc to hide descriptions
- Use /mcp auth <server-name> to authenticate with OAuth-enabled servers"
`;
exports[`McpStatus > renders correctly with unauthenticated OAuth status 1`] = `
"Configured MCP servers: