Install uvx in project virtualenv

This commit is contained in:
Codex
2026-04-28 16:12:18 +00:00
parent 9362668448
commit 33510bba85
5 changed files with 53 additions and 28 deletions
+2
View File
@@ -54,6 +54,8 @@ function discoverHomeFiles(relativePath: string) {
function pathEntries() {
return [
process.env.TERMINAL_EXTRA_PATH,
process.env.OPENSHELL_CONTROL_VENV ? path.join(process.env.OPENSHELL_CONTROL_VENV, "bin") : undefined,
path.join(process.cwd(), ".venv/bin"),
HOME ? path.join(HOME, ".local/bin") : undefined,
HOME ? path.join(HOME, ".nvm/versions/node/v22.22.2/bin") : undefined,
HOME ? path.join(HOME, ".nvm/versions/node/v22.22.1/bin") : undefined,
+2
View File
@@ -1,6 +1,7 @@
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { HOST_PATH } from "./hostCommands"
import type { McpServerInstall } from "./mcpServerStore"
const MCP_BROKER_REQUEST_TIMEOUT_MS = Number.parseInt(process.env.MCP_BROKER_REQUEST_TIMEOUT_MS || "45000", 10)
@@ -31,6 +32,7 @@ function transportForServer(server: McpServerInstall) {
args: server.args,
env: {
...inheritedEnv(),
PATH: HOST_PATH,
...cleanEnv(server.env),
},
stderr: "pipe",