fix(#108): expose les tools MCP autorisées dès le démarrage de session Codex
This commit is contained in:
@ -754,6 +754,9 @@ async fn tools_list_advertises_the_idea_tools_with_schemas() {
|
||||
"idea_ticket_bulk_delete",
|
||||
"idea_ticket_read_carnet",
|
||||
"idea_ticket_update_carnet",
|
||||
"idea_ticket_attachment_add",
|
||||
"idea_ticket_attachment_read",
|
||||
"idea_ticket_attachment_mark_summarized",
|
||||
"idea_ticket_link",
|
||||
"idea_ticket_unlink",
|
||||
"idea_sprint_list",
|
||||
@ -772,8 +775,8 @@ async fn tools_list_advertises_the_idea_tools_with_schemas() {
|
||||
assert!(!names.contains(&"idea_reply"));
|
||||
assert_eq!(
|
||||
tools.len(),
|
||||
34,
|
||||
"exactly the thirty-four exposed idea_* tools; got {names:?}"
|
||||
37,
|
||||
"exactly the thirty-seven exposed idea_* tools; got {names:?}"
|
||||
);
|
||||
|
||||
// Every tool advertises an object input schema.
|
||||
|
||||
@ -110,7 +110,8 @@ async fn save_then_load_roundtrips_project_default_and_agent_override() {
|
||||
.effective_policy(agent, READ_ONLY_TOOLS, &classified_tool_names())
|
||||
.unwrap();
|
||||
assert!(effective.permits("idea_ticket_update"));
|
||||
assert!(!effective.permits("idea_context_read"));
|
||||
assert!(effective.permits("idea_context_read"));
|
||||
assert!(effective.permits("idea_memory_read"));
|
||||
|
||||
let path = tmp.0.join(".ideai").join("mcp-tool-permissions.json");
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user