Ink-based TUI that shows exactly what an LLM sees through MCP. Browse tools/resources/prompts, execute them, and see raw JSON-RPC traffic in a protocol log. Supports gated session flow with begin_session, raw JSON-RPC input, and session reconnect. - McpSession class wrapping HTTP transport with typed methods - 12 React/Ink components (header, protocol-log, menu, tool/resource/prompt views, etc.) - 21 unit tests for McpSession against a mock MCP server - Fish + Bash completions with project name argument - bun compile with --external react-devtools-core Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
248 B
TypeScript
12 lines
248 B
TypeScript
import { Box, Text } from 'ink';
|
|
import { Spinner } from '@inkjs/ui';
|
|
|
|
export function ConnectingView() {
|
|
return (
|
|
<Box gap={1}>
|
|
<Spinner label="Connecting..." />
|
|
<Text dimColor>Sending initialize request</Text>
|
|
</Box>
|
|
);
|
|
}
|