-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix: separate codex mcp
into codex mcp-server
and codex app-server
#4471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+1,525
−414
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[package] | ||
edition = "2024" | ||
name = "codex-app-server" | ||
version = { workspace = true } | ||
|
||
[[bin]] | ||
name = "codex-app-server" | ||
path = "src/main.rs" | ||
|
||
[lib] | ||
name = "codex_app_server" | ||
path = "src/lib.rs" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
codex-arg0 = { workspace = true } | ||
codex-common = { workspace = true, features = ["cli"] } | ||
codex-core = { workspace = true } | ||
codex-file-search = { workspace = true } | ||
codex-login = { workspace = true } | ||
codex-protocol = { workspace = true } | ||
codex-utils-json-to-toml = { workspace = true } | ||
# We should only be using mcp-types for JSON-RPC types: it would be nice to | ||
# split this out into a separate crate at some point. | ||
mcp-types = { workspace = true } | ||
serde = { workspace = true, features = ["derive"] } | ||
serde_json = { workspace = true } | ||
tokio = { workspace = true, features = [ | ||
"io-std", | ||
"macros", | ||
"process", | ||
"rt-multi-thread", | ||
"signal", | ||
] } | ||
tracing = { workspace = true, features = ["log"] } | ||
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] } | ||
uuid = { workspace = true, features = ["serde", "v7"] } | ||
|
||
[dev-dependencies] | ||
app_test_support = { workspace = true } | ||
assert_cmd = { workspace = true } | ||
base64 = { workspace = true } | ||
core_test_support = { workspace = true } | ||
os_info = { workspace = true } | ||
pretty_assertions = { workspace = true } | ||
tempfile = { workspace = true } | ||
toml = { workspace = true } | ||
wiremock = { workspace = true } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub(crate) const INVALID_REQUEST_ERROR_CODE: i64 = -32600; | ||
pub(crate) const INTERNAL_ERROR_CODE: i64 = -32603; |
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codex/event/session_configured
The new
resume_conversation
path now sends aServerNotification::SessionConfigured
JSON‑RPC notification (method: "sessionConfigured"
) instead of reusingsend_event_as_notification
to emit the standardcodex/event/session_configured
event. There is no code anywhere in the repo that listens forsessionConfigured
(searching forSessionConfiguredNotification
or the method name returns nothing outside this file), while numerous consumers handle session initialization viaEventMsg::SessionConfigured
routed through the genericcodex/event
handler. This means a client resuming a conversation will no longer receive the expected session_configured event and will miss metadata like history log IDs, breaking any UI logic that depends on that event. Consider continuing to publish the event via the existingcodex/event
path (possibly in addition to the new notification) or updating clients to handle the new method.Useful? React with 👍 / 👎.