Skip to content

Commit 3ffb8a2

Browse files
committed
Merge branch 'mcp'
2 parents 3acdd60 + 32f3a51 commit 3ffb8a2

17 files changed

+39
-1722
lines changed

build-setup/build-cli.ts

Lines changed: 0 additions & 80 deletions
This file was deleted.

httptoolkit-ctl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
3+
APP_DIR="$(dirname "$SCRIPT_DIR")"
4+
export HTK_DESKTOP_RESOURCES="$SCRIPT_DIR"
5+
if [ "$(uname)" = "Darwin" ]; then
6+
export HTK_DESKTOP_EXE="$APP_DIR/MacOS/HTTP Toolkit"
7+
else
8+
export HTK_DESKTOP_EXE="$APP_DIR/httptoolkit"
9+
fi
10+
exec "$SCRIPT_DIR/httptoolkit-server/bin/httptoolkit-server" ctl "$@"

httptoolkit-ctl.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
set "HTK_DESKTOP_RESOURCES=%~dp0"
3+
for %%I in ("%~dp0..") do set "HTK_DESKTOP_EXE=%%~fI\HTTP Toolkit.exe"
4+
"%~dp0httptoolkit-server\bin\httptoolkit-server.cmd" ctl %*

httptoolkit-mcp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
3+
APP_DIR="$(dirname "$SCRIPT_DIR")"
4+
export HTK_DESKTOP_RESOURCES="$SCRIPT_DIR"
5+
if [ "$(uname)" = "Darwin" ]; then
6+
export HTK_DESKTOP_EXE="$APP_DIR/MacOS/HTTP Toolkit"
7+
else
8+
export HTK_DESKTOP_EXE="$APP_DIR/httptoolkit"
9+
fi
10+
exec "$SCRIPT_DIR/httptoolkit-server/bin/httptoolkit-server" mcp "$@"

httptoolkit-mcp.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
set "HTK_DESKTOP_RESOURCES=%~dp0"
3+
for %%I in ("%~dp0..") do set "HTK_DESKTOP_EXE=%%~fI\HTTP Toolkit.exe"
4+
"%~dp0httptoolkit-server\bin\httptoolkit-server.cmd" mcp %*

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,21 @@
1010
"scripts": {
1111
"postinstall": "electron-builder install-app-deps",
1212
"server:setup": "tsx ./build-setup/setup-server.ts",
13-
"build": "npm run build:src && npm run build:cli && npm run build:electron",
13+
"build": "npm run build:src && npm run build:electron",
1414
"build:src": "tsc",
1515
"postbuild:src": "tsx ./build-setup/strip-preload-map.ts",
1616
"build:electron": "npm run server:setup && electron-builder build --config ./build-setup/electron-builder.config.cjs",
1717
"build:dir-only": "npm run server:setup && electron-builder --dir",
1818
"start": "npm run server:setup && npm run start:app",
1919
"start:dev": "tsx ./build-setup/skip-server.ts && cross-env HTK_DEV=true APP_URL='http://localhost:8080' npm run start:app",
2020
"start:app": "tsc-watch --onSuccess \"electron .\"",
21-
"build:cli": "tsx ./build-setup/build-cli.ts",
22-
"test": "npm run server:setup && npm run build:src && npm run test:unit && npm run build:cli && npm run test:smoke",
23-
"test:unit": "node --experimental-strip-types --import ./test/register-stubs.js --test test/ui-bridge.spec.ts",
24-
"test:smoke": "playwright test"
21+
"test": "npm run server:setup && npm run build:src && playwright test"
2522
},
2623
"keywords": [],
2724
"author": "Tim Perry",
2825
"license": "AGPL-3.0-or-later",
2926
"config": {
30-
"httptoolkit-server-version": "1.24.4"
27+
"httptoolkit-server-version": "1.25.0"
3128
},
3229
"build": {
3330
"appId": "tech.httptoolkit.desktop",
@@ -61,7 +58,8 @@
6158
],
6259
"extraResources": [
6360
"httptoolkit-server/**/*",
64-
"httptoolkit-cli{,.*}"
61+
"httptoolkit-ctl{,.*}",
62+
"httptoolkit-mcp{,.*}"
6563
],
6664
"artifactName": "HttpToolkit-${version}-${arch}.${ext}",
6765
"mac": {

playwright.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { defineConfig } from '@playwright/test';
22

33
export default defineConfig({
44
testDir: './test',
5-
testIgnore: 'ui-bridge.spec.ts',
65
timeout: 30000,
76
workers: 1,
87
retries: 0,

0 commit comments

Comments
 (0)