MCPcopy Create free account

hub / github.com/JameZUK/Arkana / functions

Functions6,492 in github.com/JameZUK/Arkana

↓ 3,255 callersMethodget
Return cached items list or ``None`` on miss (including TTL expiry).
arkana/mcp/_input_helpers.py:85
↓ 821 callersMethodget
Look up cached analysis by SHA256. Returns the ``pe_data`` dict (with *filepath* patched to the caller's current path) or ``
arkana/cache.py:189
↓ 370 callersMethodinfo
Send a log-level info message to the MCP client.
arkana/mcp/_progress_bridge.py:84
↓ 349 callersFunctionmin
* Computes the minimum value of `array`. If `array` is empty or falsey, * `undefined` is returned. * * @static * @since 0.1.0 * @memberOf _ * @c
arkana/dashboard/static/dagre.min.js:3324
↓ 309 callersFunctionmax
* Computes the maximum value of `array`. If `array` is empty or falsey, * `undefined` is returned. * * @static * @since 0.1.0 * @memberOf _ * @c
arkana/dashboard/static/dagre.min.js:3228
↓ 275 callersFunction_check_mcp_response_size
Smart Size Guard with dual-limit system. Primary: Soft character limit (_SOFT_LIMIT, default 8K chars) — prevents Claude Code CLI from t
arkana/mcp/server.py:695
↓ 269 callersFunctionescapeHtml
(s)
arkana/dashboard/static/dashboard.js:8
↓ 212 callersFunctionsafe_print
(text_to_print, verbose_prefix="")
arkana/utils.py:261
↓ 149 callersFunctioncall_tool
Call an MCP tool, parse the response, and run standard assertions. If the server reports the tool is unknown or the required library is not i
tests/integration/mcp_test_client.py:248
↓ 144 callersMethodid
(self)
arkana/projects.py:270
↓ 137 callersMethodreport_progress
Send a progress notification to the MCP client. Throttled by default; pass ``force=True`` for critical milestones (start / complete).
arkana/mcp/_progress_bridge.py:70
↓ 129 callersFunctionmanaged_mcp_session
Connect to the Arkana server. Transport selection (ARKANA_TEST_TRANSPORT env var): "auto" — try streamable-http first, fall bac
tests/integration/mcp_test_client.py:145
↓ 129 callersFunctionrun
Run an async coroutine using a shared event loop. Reuses a single event loop across all tests in the session to avoid the overhead of creatin
tests/integration/mcp_test_client.py:406
↓ 123 callersFunction_run
Helper to run async functions in tests.
tests/test_debug.py:15
↓ 120 callersMethodkeys
Return a snapshot of cached param keys for *tool_name*.
arkana/mcp/_input_helpers.py:128
↓ 120 callersMethodset
Store *items* in the cache, evicting LRU if needed.
arkana/mcp/_input_helpers.py:109
↓ 117 callersMethodwarning
(self, *args, **kwargs)
arkana/dashboard/app.py:419
↓ 115 callersMethodemit
(self, record: logging.LogRecord)
arkana/warning_handler.py:54
↓ 112 callersMethodnodes
(self)
tests/test_obfuscation.py:56
↓ 105 callersFunction_check_pe_loaded
Raise a descriptive RuntimeError if no file has been loaded. Snapshots both ``pe_data`` and ``filepath`` in a single read to avoid a potentia
arkana/mcp/server.py:480
↓ 100 callersMethodclose
(self)
arkana/mock.py:36
↓ 99 callersMethodinfo
(self, msg)
arkana/imports.py:293
↓ 95 callersMethodset_task
Thread-safe creation/replacement of a background task.
arkana/state.py:310
↓ 91 callersMethodget_task
Thread-safe read of a background task.
arkana/state.py:304
↓ 89 callersFunction_hex
Convert an integer to hex string, handling None.
scripts/qiling_runner.py:96
↓ 88 callersMethodsend_command
Send JSONL command, read JSONL response. Execution commands (step/continue/run_until/step_over) include ``timeout_seconds`` in the pa
arkana/mcp/tools_debug.py:139
↓ 87 callersFunctionx
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 85 callersMethodwarning
(self, msg)
arkana/imports.py:295
↓ 81 callersFunction_dash_to_thread
Like asyncio.to_thread() but uses the dashboard's dedicated thread pool. Resilient to a shut-down executor: raises ``DashboardShutdownError``
arkana/dashboard/app.py:139
↓ 78 callersFunction_is_authenticated
Check if request is authenticated via cookie, query param, or Bearer header.
arkana/dashboard/app.py:912
↓ 75 callersFunctionset_current_state
Explicitly set the ``AnalyzerState`` for the current context.
arkana/state.py:1523
↓ 73 callersFunctionshowToast
(message, type)
arkana/dashboard/static/dashboard.js:205
↓ 72 callersFunctionv
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 71 callersMethodupdate_task
Thread-safe partial update of a background task's fields.
arkana/state.py:316
↓ 69 callersMethodclear
Remove all cache entries. Returns summary dict.
arkana/cache.py:455
↓ 68 callersMethoderror
(self, *args, **kwargs)
arkana/dashboard/app.py:420
↓ 68 callersMethodinfo
(self, *args, **kwargs)
arkana/dashboard/app.py:418
↓ 67 callersFunction_parse_addr
Parse an address string (hex or decimal) to int.
arkana/mcp/_angr_helpers.py:152
↓ 61 callersMethodcreate
Create an empty project (no binaries yet). *name* may be None for auto-naming later via ``promote_scratch``.
arkana/projects.py:757
↓ 60 callersFunction_make_features
Build a synthetic feature dict matching extract_function_features() output.
tests/test_bsim.py:31
↓ 59 callersMethodcheck_path_allowed
Raise RuntimeError if the path is outside all allowed directories.
arkana/state.py:370
↓ 59 callersFunctionr
(e,t,r)
arkana/dashboard/static/cytoscape.min.js:23
↓ 58 callersFunction_safe_env_int
Read an environment variable as int with fallback to *default*. Resolution order: 1. Environment variable (key) 2. User config file (
arkana/utils.py:18
↓ 57 callersFunction_issue
(severity: str, code: str, message: str)
arkana/integrity.py:58
↓ 57 callersFunctionfetchJSON
(url, options)
arkana/dashboard/static/dashboard.js:45
↓ 56 callersFunction_run
(coro)
tests/test_fixed_tools_comprehensive.py:21
↓ 56 callersFunction_run
(coro)
tests/test_fixed_tools_deep.py:24
↓ 55 callersFunction_raise_on_error_dict
Convert an ``{"error": "..."}`` dict return into a RuntimeError. Many inner synchronous helpers return error dicts instead of raising. Callin
arkana/mcp/_angr_helpers.py:199
↓ 55 callersFunction_update_progress
Helper to safely update progress in the global registry. If a :class:`~arkana.mcp._progress_bridge.ProgressBridge` is provided, also push the
arkana/background.py:180
↓ 55 callersFunctione
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 54 callersMethodget
(self, project_id: str)
arkana/projects.py:713
↓ 54 callersMethodget_angr_snapshot
Return a consistent snapshot of (project, cfg).
arkana/state.py:1195
↓ 54 callersMethodresolve
Resolve by ID first, then by name.
arkana/projects.py:724
↓ 53 callersFunctionL
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 53 callersFunction_check_angr_ready
Raise a descriptive RuntimeError if angr is unavailable or still initializing. Provides actionable guidance to the MCP client. Args:
arkana/mcp/server.py:561
↓ 53 callersFunctionne
()
arkana/dashboard/static/htmx.min.js:1
↓ 53 callersMethodrun
(self, transport: str = "stdio")
arkana/imports.py:290
↓ 53 callersMethodwrite
(self, data)
tests/test_debug.py:29
↓ 52 callersFunction_api_error_response
Return a sanitized JSON error response — logs full details, returns generic message. Promotes ``DashboardShutdownError`` to a 503 with a brief me
arkana/dashboard/app.py:804
↓ 51 callersFunctionparse_sandbox_report
Parse a sandbox report into the unified schema.
arkana/parsers/sandbox.py:42
↓ 50 callersFunction_make_full_pe
Build complete PE mock with customizable sections.
tests/test_fixed_tools_deep.py:125
↓ 50 callersFunctionhe
(e,t,n)
arkana/dashboard/static/htmx.min.js:1
↓ 49 callersFunctioni
(e,t,n)
arkana/dashboard/static/cytoscape.min.js:23
↓ 48 callersFunction_ensure_project_and_cfg
Ensure angr project and CFG are initialized. Uses a module-level lock to prevent concurrent callers from both creating separate ``angr.Projec
arkana/mcp/_angr_helpers.py:69
↓ 47 callersFunctiona
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 47 callersFunctionm
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 46 callersMethodadd_note
Thread-safe note creation. Returns the new note dict. For hypothesis notes, extra fields are attached: - confidence (float 0.0-1.0, d
arkana/state.py:469
↓ 46 callersFunctionb
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 45 callersFunction_escape_python_string
Escape a string for use inside a Python repr/string literal.
arkana/mcp/tools_export.py:502
↓ 45 callersFunction_safe_decode
Attempt to decode bytes as UTF-8 text, falling back to latin-1. When *max_len* > 0 the input is truncated **before** decoding so we never all
arkana/mcp/_refinery_helpers.py:68
↓ 44 callersFunction_get_state
Return the most relevant AnalyzerState for dashboard reads. In stdio mode the MCP SDK still creates a session, so tools write to a per-sessio
arkana/dashboard/state_api.py:51
↓ 44 callersFunction_run
Helper to run async functions in tests.
tests/test_learning.py:11
↓ 41 callersFunctions
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 41 callersFunctionse
(t,n)
arkana/dashboard/static/htmx.min.js:1
↓ 40 callersFunctiont
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 39 callersFunctionue
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 39 callersFunctiony
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 38 callersFunction_build_function_digest
Build a structured behavioral digest from decompiled pseudocode lines.
arkana/mcp/tools_angr.py:2096
↓ 36 callersFunctionc
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 36 callersFunctiono
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 36 callersMethodwait
(self)
tests/test_debug.py:65
↓ 35 callersFunction_paginate_field
Slice a list and return ``(page, pagination_dict)``. Lightweight helper for adding pagination metadata to individual fields within a larger r
arkana/mcp/_input_helpers.py:277
↓ 34 callersMethodacquire
Acquire the lock. Same API as ``threading.Lock.acquire``.
arkana/state.py:44
↓ 34 callersMethodget_notes
Thread-safe filtered read of notes. Returns copies.
arkana/state.py:508
↓ 33 callersFunctionn
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 32 callersFunctionget_display_name
Return user-assigned function name or fall back to default.
arkana/mcp/_rename_helpers.py:77
↓ 31 callersFunction_run
Helper to run async functions in tests.
tests/test_frida.py:6
↓ 31 callersFunctiond
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 31 callersMethoderror
(self, msg)
arkana/imports.py:294
↓ 31 callersMethodget_session
Get a session by ID, or the most recent one if ID is None.
arkana/mcp/tools_debug.py:309
↓ 31 callersFunctionsave_user_config
Write config dict to ~/.arkana/config.json, creating the directory if needed. Uses atomic write (temp file + rename) to prevent partial writes fr
arkana/user_config.py:237
↓ 31 callersFunctionstore_binary_features
Store a binary and its function features into the DB. Returns the binary_id. If the SHA256 already exists, the old entry is replaced (DELETE
arkana/mcp/_bsim_features.py:785
↓ 31 callersFunctiontime
(name,fn)
arkana/dashboard/static/dagre.min.js:509
↓ 30 callersFunction_run_pipeline_single
Execute a pipeline on a single data blob. Returns (result_bytes, step_log).
arkana/mcp/tools_refinery.py:1220
↓ 30 callersFunctiondetect_format_from_magic
Return a short format string from the first 4 bytes of a file. Returns one of: ``'pe'``, ``'elf'``, ``'macho'``, or ``'unknown'``.
arkana/mcp/_format_helpers.py:42
↓ 30 callersFunctionje
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 30 callersMethodregister_artifact
Thread-safe artifact registration. Returns the new artifact dict. Schema fields: id, path, sha256, md5, size, source_tool, descri
arkana/state.py:634
↓ 30 callersMethodrelease
Release the lock. Silently ignored if generation changed (stale).
arkana/state.py:62
↓ 29 callersFunction_get_debug_manager
Get or create the debug session manager for the current state.
arkana/mcp/tools_debug.py:374
↓ 29 callersFunction_run_background_task_wrapper
Helper to run a blocking function in a thread and update the registry. Parameters ---------- task_id : str Unique identifier for
arkana/background.py:234
next →1–100 of 6,492, ranked by callers