Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JameZUK/Arkana
/ functions
Functions
6,492 in github.com/JameZUK/Arkana
⨍
Functions
6,492
◇
Types & classes
688
↳
Endpoints
6
↓ 3,255 callers
Method
get
Return cached items list or ``None`` on miss (including TTL expiry).
arkana/mcp/_input_helpers.py:85
↓ 821 callers
Method
get
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 callers
Method
info
Send a log-level info message to the MCP client.
arkana/mcp/_progress_bridge.py:84
↓ 349 callers
Function
min
* 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 callers
Function
max
* 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 callers
Function
_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 callers
Function
escapeHtml
(s)
arkana/dashboard/static/dashboard.js:8
↓ 212 callers
Function
safe_print
(text_to_print, verbose_prefix="")
arkana/utils.py:261
↓ 149 callers
Function
call_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 callers
Method
id
(self)
arkana/projects.py:270
↓ 137 callers
Method
report_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 callers
Function
managed_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 callers
Function
run
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 callers
Function
_run
Helper to run async functions in tests.
tests/test_debug.py:15
↓ 120 callers
Method
keys
Return a snapshot of cached param keys for *tool_name*.
arkana/mcp/_input_helpers.py:128
↓ 120 callers
Method
set
Store *items* in the cache, evicting LRU if needed.
arkana/mcp/_input_helpers.py:109
↓ 117 callers
Method
warning
(self, *args, **kwargs)
arkana/dashboard/app.py:419
↓ 115 callers
Method
emit
(self, record: logging.LogRecord)
arkana/warning_handler.py:54
↓ 112 callers
Method
nodes
(self)
tests/test_obfuscation.py:56
↓ 105 callers
Function
_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 callers
Method
close
(self)
arkana/mock.py:36
↓ 99 callers
Method
info
(self, msg)
arkana/imports.py:293
↓ 95 callers
Method
set_task
Thread-safe creation/replacement of a background task.
arkana/state.py:310
↓ 91 callers
Method
get_task
Thread-safe read of a background task.
arkana/state.py:304
↓ 89 callers
Function
_hex
Convert an integer to hex string, handling None.
scripts/qiling_runner.py:96
↓ 88 callers
Method
send_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 callers
Function
x
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 85 callers
Method
warning
(self, msg)
arkana/imports.py:295
↓ 81 callers
Function
_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 callers
Function
_is_authenticated
Check if request is authenticated via cookie, query param, or Bearer header.
arkana/dashboard/app.py:912
↓ 75 callers
Function
set_current_state
Explicitly set the ``AnalyzerState`` for the current context.
arkana/state.py:1523
↓ 73 callers
Function
showToast
(message, type)
arkana/dashboard/static/dashboard.js:205
↓ 72 callers
Function
v
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 71 callers
Method
update_task
Thread-safe partial update of a background task's fields.
arkana/state.py:316
↓ 69 callers
Method
clear
Remove all cache entries. Returns summary dict.
arkana/cache.py:455
↓ 68 callers
Method
error
(self, *args, **kwargs)
arkana/dashboard/app.py:420
↓ 68 callers
Method
info
(self, *args, **kwargs)
arkana/dashboard/app.py:418
↓ 67 callers
Function
_parse_addr
Parse an address string (hex or decimal) to int.
arkana/mcp/_angr_helpers.py:152
↓ 61 callers
Method
create
Create an empty project (no binaries yet). *name* may be None for auto-naming later via ``promote_scratch``.
arkana/projects.py:757
↓ 60 callers
Function
_make_features
Build a synthetic feature dict matching extract_function_features() output.
tests/test_bsim.py:31
↓ 59 callers
Method
check_path_allowed
Raise RuntimeError if the path is outside all allowed directories.
arkana/state.py:370
↓ 59 callers
Function
r
(e,t,r)
arkana/dashboard/static/cytoscape.min.js:23
↓ 58 callers
Function
_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 callers
Function
_issue
(severity: str, code: str, message: str)
arkana/integrity.py:58
↓ 57 callers
Function
fetchJSON
(url, options)
arkana/dashboard/static/dashboard.js:45
↓ 56 callers
Function
_run
(coro)
tests/test_fixed_tools_comprehensive.py:21
↓ 56 callers
Function
_run
(coro)
tests/test_fixed_tools_deep.py:24
↓ 55 callers
Function
_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 callers
Function
_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 callers
Function
e
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 54 callers
Method
get
(self, project_id: str)
arkana/projects.py:713
↓ 54 callers
Method
get_angr_snapshot
Return a consistent snapshot of (project, cfg).
arkana/state.py:1195
↓ 54 callers
Method
resolve
Resolve by ID first, then by name.
arkana/projects.py:724
↓ 53 callers
Function
L
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 53 callers
Function
_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 callers
Function
ne
()
arkana/dashboard/static/htmx.min.js:1
↓ 53 callers
Method
run
(self, transport: str = "stdio")
arkana/imports.py:290
↓ 53 callers
Method
write
(self, data)
tests/test_debug.py:29
↓ 52 callers
Function
_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 callers
Function
parse_sandbox_report
Parse a sandbox report into the unified schema.
arkana/parsers/sandbox.py:42
↓ 50 callers
Function
_make_full_pe
Build complete PE mock with customizable sections.
tests/test_fixed_tools_deep.py:125
↓ 50 callers
Function
he
(e,t,n)
arkana/dashboard/static/htmx.min.js:1
↓ 49 callers
Function
i
(e,t,n)
arkana/dashboard/static/cytoscape.min.js:23
↓ 48 callers
Function
_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 callers
Function
a
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 47 callers
Function
m
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 46 callers
Method
add_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 callers
Function
b
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 45 callers
Function
_escape_python_string
Escape a string for use inside a Python repr/string literal.
arkana/mcp/tools_export.py:502
↓ 45 callers
Function
_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 callers
Function
_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 callers
Function
_run
Helper to run async functions in tests.
tests/test_learning.py:11
↓ 41 callers
Function
s
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 41 callers
Function
se
(t,n)
arkana/dashboard/static/htmx.min.js:1
↓ 40 callers
Function
t
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 39 callers
Function
ue
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 39 callers
Function
y
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 38 callers
Function
_build_function_digest
Build a structured behavioral digest from decompiled pseudocode lines.
arkana/mcp/tools_angr.py:2096
↓ 36 callers
Function
c
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 36 callers
Function
o
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 36 callers
Method
wait
(self)
tests/test_debug.py:65
↓ 35 callers
Function
_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 callers
Method
acquire
Acquire the lock. Same API as ``threading.Lock.acquire``.
arkana/state.py:44
↓ 34 callers
Method
get_notes
Thread-safe filtered read of notes. Returns copies.
arkana/state.py:508
↓ 33 callers
Function
n
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 32 callers
Function
get_display_name
Return user-assigned function name or fall back to default.
arkana/mcp/_rename_helpers.py:77
↓ 31 callers
Function
_run
Helper to run async functions in tests.
tests/test_frida.py:6
↓ 31 callers
Function
d
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 31 callers
Method
error
(self, msg)
arkana/imports.py:294
↓ 31 callers
Method
get_session
Get a session by ID, or the most recent one if ID is None.
arkana/mcp/tools_debug.py:309
↓ 31 callers
Function
save_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 callers
Function
store_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 callers
Function
time
(name,fn)
arkana/dashboard/static/dagre.min.js:509
↓ 30 callers
Function
_run_pipeline_single
Execute a pipeline on a single data blob. Returns (result_bytes, step_log).
arkana/mcp/tools_refinery.py:1220
↓ 30 callers
Function
detect_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 callers
Function
je
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 30 callers
Method
register_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 callers
Method
release
Release the lock. Silently ignored if generation changed (stale).
arkana/state.py:62
↓ 29 callers
Function
_get_debug_manager
Get or create the debug session manager for the current state.
arkana/mcp/tools_debug.py:374
↓ 29 callers
Function
_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