luxe 0.1.4: remembered models, wheel-driven lists, and a steadier phone app
- luxe starts on the model you last chose in this project, then the last one anywhere. Signing in opens the model picker instead of choosing for you. - Every list in a modal takes the mouse wheel and a draggable scrollbar. - The phone app shows reasoning in full, stays put while you read back through a long session, and shows a question's answer on its card. - On Windows, luxe update replaces the running luxe, and a signed-in install no longer sees setup again. - The file tree no longer shows "engine busy" in a large project, loop output is easier to follow, and the name is written lowercase. The CHANGELOG has the full list.
This commit is contained in:
@@ -3,7 +3,7 @@ name = "luxe-mcp"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
description = "Model Context Protocol client for Luxe: stdio and HTTP transports, with OAuth for hosted servers"
|
||||
description = "Model Context Protocol client for luxe: stdio and HTTP transports, with OAuth for hosted servers"
|
||||
repository.workspace = true
|
||||
homepage.workspace = true
|
||||
|
||||
@@ -13,7 +13,7 @@ homepage.workspace = true
|
||||
# no-HTTP rule forbids in core itself. The low-level stdio transport stays in luxe-core.
|
||||
|
||||
[dependencies]
|
||||
luxe-core = { path = "../luxe-core", version = "0.1.3" }
|
||||
luxe-core = { path = "../luxe-core", version = "0.1.4" }
|
||||
thiserror = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! The problem this solves: MCP tool definitions are verbose. Registering every tool from every
|
||||
//! server up front burns thousands of context tokens whether or not the agent uses them, and eager
|
||||
//! connections spawn processes at launch. Instead Luxe exposes **one** proxy tool ([`McpProxyTool`],
|
||||
//! connections spawn processes at launch. Instead luxe exposes **one** proxy tool ([`McpProxyTool`],
|
||||
//! `mcp`) — the agent *discovers* tools on demand (`search` → `describe` → `call`) — backed by a
|
||||
//! [`ServerRegistry`] that connects servers **lazily** and caches their tool metadata so discovery
|
||||
//! works without a live connection.
|
||||
@@ -15,7 +15,7 @@
|
||||
//! Both transports are reached through [`connect`], so nothing has to know which one a server
|
||||
//! uses. A remote server is configured with a URL and, where it needs one, a bearer token or an
|
||||
//! OAuth flow — which is how a vendor's hosted MCP server (Firecrawl, Exa, and the rest) is used
|
||||
//! from Luxe without Luxe carrying an adapter for it.
|
||||
//! from luxe without luxe carrying an adapter for it.
|
||||
|
||||
pub mod http;
|
||||
pub mod oauth;
|
||||
|
||||
@@ -307,12 +307,12 @@ impl OAuthClient {
|
||||
fn landing(server: &str, outcome: &Result<(), OAuthError>) -> (u16, &'static str, String) {
|
||||
match outcome {
|
||||
Ok(()) => {
|
||||
(200, "Signed in", format!("Luxe signed in to {server}. You can close this tab."))
|
||||
(200, "Signed in", format!("luxe signed in to {server}. You can close this tab."))
|
||||
}
|
||||
Err(error) => (
|
||||
400,
|
||||
"Luxe couldn't finish the sign-in",
|
||||
format!("Luxe could not sign in to {server}: {error}"),
|
||||
"luxe couldn't finish the sign-in",
|
||||
format!("luxe could not sign in to {server}: {error}"),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ use luxe_core::secret_command::SECRET_COMMAND_TIMEOUT;
|
||||
/// Each carries the sentence that says what to do about it, with the secret's own name in it.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum SecretError {
|
||||
/// Nothing there: it is empty, or a `${VAR}` that is not set where Luxe runs
|
||||
/// Nothing there: it is empty, or a `${VAR}` that is not set where luxe runs
|
||||
#[error("{0}")]
|
||||
Unset(String),
|
||||
/// A `!command` in a config that may not run one
|
||||
@@ -56,7 +56,7 @@ async fn resolve(written: &str, commands_allowed: bool, what: &str) -> Result<St
|
||||
if expanded.trim().is_empty() {
|
||||
return Err(SecretError::Unset(match named_variable(written) {
|
||||
Some(name) => format!(
|
||||
"{what} is `${{{name}}}`, and {name} is not set where Luxe is running — export \
|
||||
"{what} is `${{{name}}}`, and {name} is not set where luxe is running — export \
|
||||
it, or add the export to your shell profile so every terminal has it"
|
||||
),
|
||||
None => format!("{what} is empty"),
|
||||
@@ -80,7 +80,7 @@ async fn resolve(written: &str, commands_allowed: bool, what: &str) -> Result<St
|
||||
///
|
||||
/// Asked only once the secret has expanded to nothing, so whatever it names is unset or blank, and
|
||||
/// the first is the one to name: a secret that expands to nothing is nearly always a variable
|
||||
/// exported in one terminal and not the one Luxe runs in, and saying which is the whole of the fix.
|
||||
/// exported in one terminal and not the one luxe runs in, and saying which is the whole of the fix.
|
||||
/// Whichever marker comes first, the order [`luxe_core::mcp_client::expand_env`] reads them in.
|
||||
fn named_variable(written: &str) -> Option<&str> {
|
||||
let braced = written.find("${");
|
||||
@@ -124,7 +124,7 @@ mod tests {
|
||||
unset.to_string(),
|
||||
format!(
|
||||
"{WHAT} is `${{LUXE_MCP_SECRET_UNSET}}`, and LUXE_MCP_SECRET_UNSET is not set where \
|
||||
Luxe is running — export it, or add the export to your shell profile so every \
|
||||
luxe is running — export it, or add the export to your shell profile so every \
|
||||
terminal has it"
|
||||
)
|
||||
);
|
||||
|
||||
@@ -209,7 +209,7 @@ fn an_unreadable_store_is_not_overwritten() {
|
||||
assert_eq!(store.signed_in_ids(), ["linear".to_string()].into_iter().collect());
|
||||
}
|
||||
|
||||
/// One entry an older or newer Luxe wrote differently does not hide the others, and survives a
|
||||
/// One entry an older or newer luxe wrote differently does not hide the others, and survives a
|
||||
/// write for another server.
|
||||
#[test]
|
||||
fn an_entry_that_does_not_parse_hides_nothing_else() {
|
||||
|
||||
@@ -36,7 +36,7 @@ impl Tool for McpProxyTool {
|
||||
"mcp"
|
||||
}
|
||||
|
||||
/// An MCP server is a third-party process or endpoint that Luxe does not control, and the
|
||||
/// An MCP server is a third-party process or endpoint that luxe does not control, and the
|
||||
/// JSON-RPC exchange has no deadline of its own. Untrusted means untrusted about liveness too: a
|
||||
/// server that accepts a call and never replies must cost a bounded wait, not the turn.
|
||||
fn timeout(&self) -> Option<std::time::Duration> {
|
||||
|
||||
@@ -240,7 +240,7 @@ async fn spawn_expiring_mock(seen: Seen) -> String {
|
||||
/// A session the server expired is started again, once, and the request goes through on the new
|
||||
/// one; every request after `initialize` names the version the server agreed to.
|
||||
///
|
||||
/// The break this catches: a 404 for an expired session failed every later call until Luxe was
|
||||
/// The break this catches: a 404 for an expired session failed every later call until luxe was
|
||||
/// restarted, and the transport offered a version older than Streamable HTTP, ignored the one the
|
||||
/// server answered with and never sent the header the spec asks for.
|
||||
#[tokio::test]
|
||||
@@ -272,6 +272,6 @@ async fn a_404_with_a_session_reinitializes_once() {
|
||||
],
|
||||
);
|
||||
let offered = format!("offered {}", luxe_core::mcp_client::MCP_PROTOCOL_VERSION);
|
||||
assert_eq!(seen[0].2, offered, "initialize offers the version Luxe speaks");
|
||||
assert_eq!(seen[0].2, offered, "initialize offers the version luxe speaks");
|
||||
assert_eq!(seen[5], ("tools/list".into(), "sess-2".into(), "2025-03-26".into()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user