Commit 6858078
committed
refactor: deduplicate MCP server, add object_id support, remove config tools
- Extract shared AnalysisType::from_api_name() and ComplianceType::from_name()
so MCP reuses enum parsing instead of duplicating match arms
- Make resolve_analysis_id public, reuse from MCP instead of reimplementing
- All scan tools now accept object_id as alternative to scan_id, matching
the CLI's --object flag and aligning with ELI's natural interaction model
- Remove configure_profile/config_get/config_set (config mutation is out
of scope for AI agents); keep whoami for diagnostics
- Add [Read]/[Write]/[Critical] classification to tool descriptions,
preparing for ELI's Permission Gate
- Fix &PathBuf -> &Path (Clippy), trim instructions block
Net -145 lines from mcp.rs.1 parent f64fed7 commit 6858078
3 files changed
Lines changed: 153 additions & 298 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
608 | 616 | | |
609 | 617 | | |
610 | 618 | | |
| |||
644 | 652 | | |
645 | 653 | | |
646 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
647 | 674 | | |
648 | 675 | | |
649 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
0 commit comments