From d327ea40ed06422852ab28058bbc7ff7d4e6991c Mon Sep 17 00:00:00 2001 From: Kent Wang Date: Thu, 12 Mar 2026 17:08:20 +0800 Subject: [PATCH] 1.add initial spike for mcp ext app --- CLAUDE.md | 222 ++++++++++++++++++ .../ui/components/mcp/mcp-request-pane.tsx | 110 +++++++-- 2 files changed, 308 insertions(+), 24 deletions(-) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000000..776981c5b6 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,222 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## About Insomnia + +Insomnia is an open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE, gRPC and other HTTP protocols. It's built on Electron with a React frontend. + +## Development Commands + +**Prerequisites:** + +- Node.js version: `22.20.0` (see `.nvmrc`) +- npm >= 10 + +**Setup:** + +```bash +npm i +``` + +**Development:** + +```bash +npm run dev # Start app with live reload +npm run dev:autoRestart # Start with both renderer live reload and main process auto-restart +``` + +**Code Quality:** + +```bash +npm run lint # Run linting across all workspaces +npm run type-check # Run TypeScript type checking across all workspaces +npm test # Run tests across all workspaces +``` + +**Building:** + +```bash +npm run app-build # Build the app +npm run app-package # Package the app for distribution +``` + +**Inso CLI Development:** + +```bash +npm run inso-start # Start Inso CLI in watch mode +npm run inso-package # Build and package Inso CLI +./packages/insomnia-inso/bin/inso -v # Run Inso CLI locally +``` + +**Testing:** + +```bash +# Smoke tests +npm run test:smoke:dev # Run smoke tests in dev mode +npm run test:smoke:build # Run smoke tests on built app +npm run test:smoke:package # Run smoke tests on packaged app + +# Critical tests +npm run test:crit:dev # Run critical tests in dev mode +npm run test:crit:package # Run critical tests on packaged app +``` + +**Package-specific commands:** + +```bash +npm run