fix(mcp): completely eradicate camelCase backward compatibility by removing all serde aliases

This commit is contained in:
Riz Ashraf committed 2026-09-26 08:56:07 +01:00
1 parent a24ef598a2
commit e84c101515
2 files changed
-15

No files matched your search

-7
View File
@@ -17,7 +17,6 @@ pub struct CreateRelationsTool {
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct ObservationInput {
#[serde(alias = "entityName")]
pub entity_name: String,
pub contents: Vec<String>,
}
@@ -33,13 +32,11 @@ pub struct AddObservationsTool {
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct DeleteEntitiesTool {
/// Array of entity names to delete.
#[serde(alias = "entityNames")]
pub entity_names: Vec<String>,
}
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct DeleteObservationInput {
#[serde(alias = "entityName")]
pub entity_name: String,
pub observations: Vec<String>,
}
@@ -85,7 +82,6 @@ pub struct OpenNodesTool {
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct LogCodeChangeTool {
/// The path of the file that was changed.
#[serde(alias = "filePath")]
pub file_path: String,
/// A description of the change.
pub description: String,
@@ -134,7 +130,6 @@ pub struct ClearStickyNotesTool {}
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct CondenseEntityTool {
/// The name of the entity to condense.
#[serde(alias = "entityName")]
pub entity_name: String,
/// The condensed observations that will replace the existing ones.
pub summarized_observations: Vec<String>,
@@ -230,10 +225,8 @@ pub struct QueryDecisionsTool {
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct MergeEntitiesTool {
/// The name of the entity to merge from (will be deleted).
#[serde(alias = "sourceEntity")]
pub source_entity: String,
/// The name of the entity to merge into.
#[serde(alias = "targetEntity")]
pub target_entity: String,
}