aKode 0.8.0: grafo del codice locale (tree-sitter + git) e strumento code_graph, memorie ancorate ai simboli con stato stale, client MCP akode-mcp-client

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-15 11:14:42 +01:00
parent b87057603d
commit 83959bccd0
74 changed files with 5019 additions and 229 deletions

View File

@@ -69,7 +69,7 @@ pub(crate) async fn start_authorization(
auth_manager.set_metadata(metadata);
let request = AuthorizationRequest::new(redirect_uri.clone())
.with_scopes(scopes.iter().copied())
.with_client_name("Codex");
.with_client_name("aKode");
let session = AuthorizationSession::new(auth_manager, request)
.await
.map_err(|(_auth_manager, error)| error)?;

View File

@@ -11,7 +11,7 @@ use std::collections::HashMap;
use std::env;
use std::ffi::OsString;
pub(crate) const MCP_USER_AGENT: &str = concat!("codex-mcp-client/", env!("CARGO_PKG_VERSION"));
pub(crate) const MCP_USER_AGENT: &str = concat!("akode-mcp-client/", env!("CARGO_PKG_VERSION"));
pub(crate) fn create_env_for_mcp_server(
extra_env: Option<HashMap<OsString, OsString>>,

View File

@@ -28,7 +28,7 @@ use wiremock::matchers::path;
const RESOURCE_AUTHORIZATION: &str = "Bearer resource-only-secret";
const RESOURCE_API_KEY: &str = "resource-api-key-secret";
const RESOURCE_USER_AGENT: &str = "resource-only-user-agent";
const MCP_USER_AGENT: &str = concat!("codex-mcp-client/", env!("CARGO_PKG_VERSION"));
const MCP_USER_AGENT: &str = concat!("akode-mcp-client/", env!("CARGO_PKG_VERSION"));
// This is a test safety ceiling, not rmcp's private redirect limit.
const MAX_METADATA_REDIRECT_REQUESTS: u64 = 100;
const REDIRECT_DISCOVERY_TEST_TIMEOUT: Duration = Duration::from_secs(5);

View File

@@ -83,7 +83,7 @@ async fn exercise_stdio_server(
.initialize(
InitializeRequestParams::new(
capabilities,
Implementation::new("codex-mcp-client", "0.0.0-test"),
Implementation::new("akode-mcp-client", "0.0.0-test"),
)
.with_protocol_version(ProtocolVersion::V_2025_06_18),
Some(Duration::from_secs(if server_mode.ends_with("-late") {

View File

@@ -55,7 +55,7 @@ const REFRESH_TOKEN: &str = "valid-refresh-token";
const REFRESHED_ACCESS_TOKEN: &str = "refreshed-access-token";
const RESOURCE_API_KEY: &str = "resource-api-key-secret";
const RESOURCE_USER_AGENT: &str = "resource-only-user-agent";
const MCP_USER_AGENT: &str = concat!("codex-mcp-client/", env!("CARGO_PKG_VERSION"));
const MCP_USER_AGENT: &str = concat!("akode-mcp-client/", env!("CARGO_PKG_VERSION"));
const CHILD_SERVER_URL_ENV: &str = "MCP_TEST_OAUTH_STARTUP_SERVER_URL";
const CLIENT_SECRET: &str = "configured-client-secret";
const CHILD_CONFIDENTIAL_CLIENT_ID_ENV: &str = "MCP_TEST_OAUTH_CONFIDENTIAL_CLIENT_ID";