Skip to content

feat: add MCP icm_learn tool + forget --topic#76

Merged
pszymkowiak merged 1 commit intomainfrom
feat/mcp-learn-forget-topic
Apr 7, 2026
Merged

feat: add MCP icm_learn tool + forget --topic#76
pszymkowiak merged 1 commit intomainfrom
feat/mcp-learn-forget-topic

Conversation

@pszymkowiak
Copy link
Copy Markdown
Contributor

Summary

Two new features:

1. icm forget --topic <name> (CLI + MCP)

Delete all memories in a topic at once:

icm forget --topic "errors-resolved"  # deletes all entries

Also available as MCP tool icm_memory_forget_topic.

2. icm_learn MCP tool

Exposes icm learn as an MCP tool — the AI agent can scan a project and create a knowledge graph:

{"name": "icm_learn", "arguments": {"directory": "/path/to/repo"}}

Learn logic moved from icm-cli to icm-core (shared between CLI and MCP).

Test plan

  • 194 tests pass (+6 new)
  • forget --topic tested: 2 memories deleted, other topics untouched
  • MCP icm_learn tested: 33 concepts, 32 links on ICM project

🤖 Generated with Claude Code

@pszymkowiak pszymkowiak merged commit 60420a9 into main Apr 7, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant