ida-pro-mcp-xjoker 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ida_pro_mcp/__init__.py +0 -0
- ida_pro_mcp/__main__.py +6 -0
- ida_pro_mcp/ida_mcp/__init__.py +68 -0
- ida_pro_mcp/ida_mcp/api_analysis.py +1296 -0
- ida_pro_mcp/ida_mcp/api_core.py +337 -0
- ida_pro_mcp/ida_mcp/api_debug.py +617 -0
- ida_pro_mcp/ida_mcp/api_memory.py +304 -0
- ida_pro_mcp/ida_mcp/api_modify.py +406 -0
- ida_pro_mcp/ida_mcp/api_python.py +179 -0
- ida_pro_mcp/ida_mcp/api_resources.py +295 -0
- ida_pro_mcp/ida_mcp/api_stack.py +167 -0
- ida_pro_mcp/ida_mcp/api_types.py +480 -0
- ida_pro_mcp/ida_mcp/auth.py +166 -0
- ida_pro_mcp/ida_mcp/cache.py +232 -0
- ida_pro_mcp/ida_mcp/config.py +228 -0
- ida_pro_mcp/ida_mcp/framework.py +547 -0
- ida_pro_mcp/ida_mcp/http.py +859 -0
- ida_pro_mcp/ida_mcp/port_utils.py +104 -0
- ida_pro_mcp/ida_mcp/rpc.py +187 -0
- ida_pro_mcp/ida_mcp/server_manager.py +339 -0
- ida_pro_mcp/ida_mcp/sync.py +233 -0
- ida_pro_mcp/ida_mcp/tests/__init__.py +14 -0
- ida_pro_mcp/ida_mcp/tests/test_api_analysis.py +336 -0
- ida_pro_mcp/ida_mcp/tests/test_api_core.py +237 -0
- ida_pro_mcp/ida_mcp/tests/test_api_memory.py +207 -0
- ida_pro_mcp/ida_mcp/tests/test_api_modify.py +123 -0
- ida_pro_mcp/ida_mcp/tests/test_api_resources.py +199 -0
- ida_pro_mcp/ida_mcp/tests/test_api_stack.py +77 -0
- ida_pro_mcp/ida_mcp/tests/test_api_types.py +249 -0
- ida_pro_mcp/ida_mcp/ui.py +357 -0
- ida_pro_mcp/ida_mcp/utils.py +1186 -0
- ida_pro_mcp/ida_mcp/zeromcp/__init__.py +5 -0
- ida_pro_mcp/ida_mcp/zeromcp/jsonrpc.py +384 -0
- ida_pro_mcp/ida_mcp/zeromcp/mcp.py +883 -0
- ida_pro_mcp/ida_mcp.py +186 -0
- ida_pro_mcp/idalib_server.py +354 -0
- ida_pro_mcp/idalib_session_manager.py +259 -0
- ida_pro_mcp/server.py +1060 -0
- ida_pro_mcp/test.py +170 -0
- ida_pro_mcp_xjoker-1.0.1.dist-info/METADATA +405 -0
- ida_pro_mcp_xjoker-1.0.1.dist-info/RECORD +45 -0
- ida_pro_mcp_xjoker-1.0.1.dist-info/WHEEL +5 -0
- ida_pro_mcp_xjoker-1.0.1.dist-info/entry_points.txt +4 -0
- ida_pro_mcp_xjoker-1.0.1.dist-info/licenses/LICENSE +21 -0
- ida_pro_mcp_xjoker-1.0.1.dist-info/top_level.txt +1 -0
ida_pro_mcp/__init__.py
ADDED
|
File without changes
|
ida_pro_mcp/__main__.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""IDA Pro MCP Plugin - Modular Package Version
|
|
2
|
+
|
|
3
|
+
This package provides MCP (Model Context Protocol) integration for IDA Pro,
|
|
4
|
+
enabling AI assistants to interact with IDA's disassembler and decompiler.
|
|
5
|
+
|
|
6
|
+
Architecture:
|
|
7
|
+
- rpc.py: JSON-RPC infrastructure and registry
|
|
8
|
+
- mcp.py: MCP protocol server (HTTP/SSE)
|
|
9
|
+
- sync.py: IDA synchronization decorator (@idasync)
|
|
10
|
+
- utils.py: Shared helpers and TypedDict definitions
|
|
11
|
+
- api_*.py: Modular API implementations (71 tools + 24 resources)
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
# Import infrastructure modules
|
|
15
|
+
from . import rpc
|
|
16
|
+
from . import sync
|
|
17
|
+
from . import utils
|
|
18
|
+
from . import port_utils
|
|
19
|
+
|
|
20
|
+
# Import all API modules to register @tool functions and @resource functions
|
|
21
|
+
from . import api_core
|
|
22
|
+
from . import api_analysis
|
|
23
|
+
from . import api_memory
|
|
24
|
+
from . import api_types
|
|
25
|
+
from . import api_modify
|
|
26
|
+
from . import api_stack
|
|
27
|
+
from . import api_debug
|
|
28
|
+
from . import api_python
|
|
29
|
+
from . import api_resources
|
|
30
|
+
|
|
31
|
+
# Re-export key components for external use
|
|
32
|
+
from .sync import idasync, IDAError, IDASyncError, CancelledError
|
|
33
|
+
from .rpc import MCP_SERVER, MCP_UNSAFE, tool, unsafe, resource
|
|
34
|
+
from .http import IdaMcpHttpRequestHandler, set_server_restart_callback, get_server_config, set_server_config
|
|
35
|
+
from .api_core import init_caches
|
|
36
|
+
|
|
37
|
+
__all__ = [
|
|
38
|
+
# Infrastructure modules
|
|
39
|
+
"rpc",
|
|
40
|
+
"sync",
|
|
41
|
+
"utils",
|
|
42
|
+
"port_utils",
|
|
43
|
+
# API modules
|
|
44
|
+
"api_core",
|
|
45
|
+
"api_analysis",
|
|
46
|
+
"api_memory",
|
|
47
|
+
"api_types",
|
|
48
|
+
"api_modify",
|
|
49
|
+
"api_stack",
|
|
50
|
+
"api_debug",
|
|
51
|
+
"api_python",
|
|
52
|
+
"api_resources",
|
|
53
|
+
# Re-exported components
|
|
54
|
+
"idasync",
|
|
55
|
+
"IDAError",
|
|
56
|
+
"IDASyncError",
|
|
57
|
+
"CancelledError",
|
|
58
|
+
"MCP_SERVER",
|
|
59
|
+
"MCP_UNSAFE",
|
|
60
|
+
"tool",
|
|
61
|
+
"unsafe",
|
|
62
|
+
"resource",
|
|
63
|
+
"IdaMcpHttpRequestHandler",
|
|
64
|
+
"set_server_restart_callback",
|
|
65
|
+
"get_server_config",
|
|
66
|
+
"set_server_config",
|
|
67
|
+
"init_caches",
|
|
68
|
+
]
|