Integrum - Reflection based MCP Server from any Python module or library
Yesterday I open sourced Integrum, a library that is a part of AlphaDeep world. It allows you to quickly create MCP server(s) from existing Python libraries or modules (or even plain classes!). It is released with MIT license and I hope somebody else also finds it useful for a more formal approach to giving agents additional capabilities (compared to just letting them writing arbitrary code with or without a sandbox).
Couple of interesting things about it:
State Management
Obviously not all Python code is functional, so some state management is required. I opted for a simple in memory object store pattern with keys being “model-friendly” -> they are words to save tokens. Also there is tuple unpacking, array access and other simple needed things to get started.
Multi-user isolation
LLM sessions are stateless by design so I thought it would be hard to keep track of which object...


