mirror of
https://github.com/openai/codex.git
synced 2026-11-13 21:30:47 +00:00
## Why MCP servers registered under the same name in different environments need distinct inventory, routing, and status reporting. ## What changed - Keep MCP inventory and runtime status keyed by registration scope so same-named servers remain separate. - Add optional `environmentId` selectors for status lookup, tool calls, resource reads, and OAuth login. Omitting the selector preserves existing name-only routing. - Carry environment identity through startup notifications, elicitation requests, and tool-call history, and display it in the TUI. - Support `/mcp login <name> --environment <id>` and update generated protocol schemas and SDK types. ## Testing Add integration coverage for two environments with identically named MCP servers, tools, and resource URIs. Verify separate inventory, explicit environment routing, legacy routing when the selector is omitted, and errors for unknown environments. Update protocol and TUI tests for environment identity. GitOrigin-RevId: 074a3db10549438cb6aff33eb7bed10791adae4d
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
load("//:defs.bzl", "codex_rust_crate")
|
|
load("//bazel/rules:runtime_package.bzl", "release_binary")
|
|
|
|
codex_rust_crate(
|
|
name = "app-server",
|
|
crate_name = "codex_app_server",
|
|
extra_binaries = [
|
|
"//codex-rs/bwrap:bwrap",
|
|
"//codex-rs/cli:codex",
|
|
"//codex-rs/code-mode-host:codex-code-mode-host",
|
|
"//codex-rs/rmcp-client:test_stdio_server",
|
|
],
|
|
integration_test_timeout = "long",
|
|
run_tests_with_wine_exec = True,
|
|
test_shard_counts = {
|
|
# Note app-server-all-test has a large number of integration tests, so
|
|
# even a single shard can be quite slow. When there is a legitimate
|
|
# test failure in a shard, it will still get run 3x in total, which
|
|
# can cause us to exhaust our CI timeout if the shard happens to run
|
|
# long. Using a higher shard count for app-server-all-test should help
|
|
# mitigate this risk.
|
|
"app-server-all-test": 16,
|
|
"app-server-unit-tests": 8,
|
|
},
|
|
test_tags = ["no-sandbox"],
|
|
test_threads = select({
|
|
"@platforms//os:macos": 1,
|
|
"//conditions:default": 0,
|
|
}),
|
|
)
|
|
|
|
release_binary(
|
|
binary = ":codex-app-server",
|
|
)
|