mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 10:34:35 -07:00
Remove MCP Tips and reorganize MCP slash commands (#11387)
This commit is contained in:
committed by
GitHub
parent
6786684962
commit
7c086fe55b
@@ -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 <server-name></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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user