Logo Kahlo MCP

Kahlo MCP

Cộng đồng
FuzzySecurity

A Frida MCP server to enable autonomous AI assistance for Android instrumentation

Nhà phát hànhFuzzySecurity
Kho mãkahlo-mcp
Ngôn ngữTypeScript
Bản fork
15
Sao
137
Công cụ có sẵn
0
Phương thức truyền tảistdio
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Kahlo MCP cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    137 sao và 15 bản fork từ kho mã được liên kết.

(Frida) Kahlo MCP

For more details, please read the accompanying blog post: https://knifecoat.com/Posts/Scalable+research+tooling+for+agent+systems

Setup & Installation

Edit the existing kahlo-mcp/config.json in this repo and set adbPath to the full path of the ADB binary you want to use. This works fine on Windows and UNIX systems.

json
{
  "transport": "stdio",
  "logLevel": "info",
  "dataDir": "./data",
  "adbPath": "/path/to/adb"
}

Install dependencies and build:

bash
cd kahlo-mcp
npm install
npm run build
FieldRequiredDescription
transportYesOnly "stdio" is supported for now (SSE coming)
logLevelYesUse "info" for now (more controls coming)
dataDirYesDirectory for runs, modules, drafts, artifacts. Defaults to kahlo-mcp/data
adbPathYesFull path to ADB binary

Upload a frida-server binary to your device that matches the frida version in kahlo-mcp/package.json, then run it (ideally as root).

MCP Integration

Claude Code

Edit your claude user json preference file (/mcp will show you where):

json
{
  "mcpServers": {
    "frida-kahlo": {
      "type": "stdio",
      "command": "node",
      "args": [
        "C:/Your/Full/Path/k4hlo/kahlo-mcp/dist/index.js"
      ],
      "cwd": "C:/Your/Full/Path/k4hlo/kahlo-mcp"
    }
  }
}

Cursor

Add to Cursor MCP settings (Preferences > Cursor Settings > Tools & MCP):

json
{
  "mcpServers": {
    "frida-kahlo": {
      "command": "node",
      "args": ["/Your/Full/Path/k4hlo/kahlo-mcp/dist/index.js"],
      "cwd": "/Your/Full/Path/k4hlo/kahlo-mcp"
    }
  }
}

Codex CLI

You will find your toml file under your user configuration folder for .codex:

toml
model = "gpt-5.3-codex"
model_reasoning_effort = "medium"

[mcp_servers.frida-kahlo]
command = "node"
args = ["/Your/Full/Path/k4hlo/kahlo-mcp/dist/index.js"]
cwd = "/Your/Full/Path/k4hlo/kahlo-mcp"

MCP Tools Reference

This section is a quick, utilitarian map of the tool surface. For the complete operational contract (concepts, workflows, failure modes, and full stdlib reference), ask you AI to call kahlo_mcp_about to tell you more!

Introspection

  • kahlo_mcp_about: returns the kahlo operational contract (tool inventory, concepts, workflows, failure modes, stdlib reference).

Devices, processes, and ADB

  • kahlo_devices_list: list connected devices ready for instrumentation.
  • kahlo_devices_get (device_id): detailed device info (model/version/transport) and readiness signals.
  • kahlo_devices_health (device_id): health check for ADB + frida-server presence/running.
  • kahlo_processes_list (device_id, scope?): list running processes (pid + name). Use this before mode="attach" to get the exact process name.
  • kahlo_adb_command (command[], device_id?, timeout_ms?): run an ADB command with the configured ADB binary. For root-only paths, wrap with su -c (e.g., ['shell','su','-c','ls /data/data/<pkg>']).

Targets (attach/spawn + lifecycle)

  • kahlo_targets_ensure:
    • Purpose: create/ensure a target (an instrumented app process hosting the in-process orchestrator).
    • Params: device_id, package, mode (attach|spawn), gating? (none|spawn|child), bootstrap?, bootstrap_params?, bootstrap_type?, plus optional child_* bootstrap fields.
    • Notes:
      • mode="attach": package is the process name from kahlo_processes_list (often not the Android package id).
      • mode="spawn": package is the Android package id (e.g., com.example.app).
      • gating="spawn" requires bootstrap (early hooks while app is suspended, then it resumes automatically).
      • gating="child" is present but does not work on Android (zygote forks child processes). For multi-process apps, discover com.example.app:process names and attach separately.
  • kahlo_targets_status (target_id): target lifecycle + orchestrator agent state (use to diagnose crashes/reinjecting).
  • kahlo_targets_detach (target_id): detach cleanly; cancels all jobs for that target.

Jobs (run instrumentation code)

  • kahlo_jobs_start:
    • Purpose: start an isolated job (one Frida script instance) inside a target.
    • Params: target_id, type? (oneshot|interactive|daemon), ttl?, params?, and module:
      • { kind: 'module_ref', module_ref: 'name@version' }
      • { kind: 'draft_id', draft_id: '...' }
      • { kind: 'source', source: '...' } (inline JS for fast iteration)
    • Notes: daemon jobs should call ctx.heartbeat() periodically; cancellation unloads the script and Frida cleans up hooks/timers/state.
  • kahlo_jobs_status (job_id): job lifecycle + heartbeat health + metrics + error/result.
  • kahlo_jobs_list (target_id): list jobs for a target (active + historical).
  • kahlo_jobs_cancel (job_id): cancel a job; unloads its script (best-effort cleanup via Frida).

Telemetry and snapshots

  • kahlo_events_fetch (target_id? or job_id?, cursor?, limit?, filters?): poll structured events with cursor-based pagination. filters supports kind and/or level.
  • kahlo_snapshots_get (target_id, kind, options?): point-in-time state queries (use sparingly; can be expensive).

Artifacts (large outputs)

  • kahlo_artifacts_list (target_id? or job_id?): list artifacts produced by jobs (files/dumps/traces/etc).
  • kahlo_artifacts_get (artifact_id): fetch artifact metadata and either inline payload (small) or a storage reference (large).

Modules and drafts (reusable job code)

  • kahlo_modules_list: list versioned modules in the module store.
  • kahlo_modules_get (module_ref like name@1.2.3): fetch module source + manifest + provenance.
  • kahlo_modules_createDraft (source, name?, manifest?): create a mutable draft for iteration.
  • kahlo_modules_createDraftFromJob (job_id, name?): "save my working job" as a draft.
  • kahlo_modules_listDrafts: list drafts (metadata only).
  • kahlo_modules_getDraft (draft_id): fetch draft metadata + full source.
  • kahlo_modules_updateDraft (draft_id, source): replace draft source (iterate quickly).
  • kahlo_modules_promoteDraft (draft_id, name, version_strategy, notes?): freeze a draft into a versioned module (patch|minor|major).
  • kahlo_modules_promoteFromJob (job_id, name, version_strategy, notes?): promote a tested job directly into a versioned module.

Stdlib (ctx.stdlib)

Every job script gets a preloaded standard library under ctx.stdlib. This is the preferred way to do common "instrumentation chores" (stack capture, safe Java calls, overload-safe hooks, bytes/strings, Intent parsing, etc.) without rewriting boilerplate.

Source of truth: kahlo-mcp/src/backend/jobs/jobScriptStdlib.js.

Top-level helpers

  • ctx.stdlib.isJavaAvailable(): returns true if Java APIs can be used in this process.
  • ctx.stdlib.getJavaBridge(): returns the Java bridge handle (or null).
  • ctx.stdlib.requireJava(operation?): returns the Java bridge or throws with a helpful message.

stack - Java stack traces

  • capture({ skip?, limit? }): capture frames as objects (className, methodName, fileName, lineNumber, isNative).
  • toString({ skip?, limit?, separator? }): formatted stack trace string.
  • filter(frames, pattern): keep frames matching a prefix string or RegExp.
  • findFirst(frames, pattern): first matching frame (or null).
  • getCaller(): best-effort "caller" frame (skips internal/runtime frames).
  • getException(throwable): format a Java Throwable (message + stack + causes) as a string.

inspect - Java object introspection

  • className(obj), simpleClassName(obj)
  • fields(obj, { includeInherited?, includeStatic? }?): enumerate fields (including private).
  • methods(obj, { includeInherited?, includeStatic? }?): enumerate methods.
  • getField(obj, fieldName): safe field read ({ ok, value, error? }).
  • toJson(obj, { maxDepth?, maxArrayLength?, maxStringLength? }?): convert common Java objects to JSON-safe structures.
  • isInstance(obj, className)
  • superclassChain(obj)
  • interfaces(obj, includeInherited?)

classes - discovery and loading

  • find(pattern, { limit? }?): search loaded classes by prefix string or RegExp.
  • enumerate(callbackOrOptions?): list loaded classes (either returns an array, or streams via callback depending on usage).
  • load(className): safe Java.use (returns null on failure).
  • isLoaded(className): quick check if a class is loaded.
  • instances(className, { limit? }?): enumerate live heap instances (best-effort, can be expensive).
  • getClassLoader(className): get the ClassLoader for a loaded class (or null).

bytes - binary helpers

  • toHex(data, { uppercase?, separator? }?), fromHex(hex)
  • toBase64(data), fromBase64(base64)
  • fromJavaBytes(byteArray), toJavaBytes(uint8Array)
  • equals(a, b), concat(...arrays), slice(data, start, end?)

strings - conversions and encoding

  • fromJava(javaStringLike), toJava(jsString)
  • truncate(str, maxLength, ellipsis?)
  • fromUtf8(data), toUtf8(str)
  • matches(str, pattern)
  • safeToString(obj, maxLength?)

intent - Intent parsing and construction

  • parse(intent): returns a structured summary (action/data/type/categories/component/flags/extras).
  • getExtras(intent): extract extras Bundle into a JS object (recurses on nested Bundles).
  • getComponent(intent), isExplicit(intent)
  • create({ action?, data?, type?, flags?, packageName?, className?, extras? }): build a new Intent (returns null on failure).
  • flagsToStrings(flags): decode the bitmask to flag names.

hook - hook helpers (Java + native)

  • method(className, methodName, { onEnter?, onLeave? }): hook a method (all overloads if present).
  • methodWithSignature(className, methodName, paramTypes[], { onEnter?, onLeave? }): hook a specific overload.
  • allOverloads(className, methodName, handler): hook all overloads with a single handler.
  • constructor(className, handler): hook all $init overloads.
  • onClassLoad(className, callback): run callback(Java.use(className)) once the class becomes available.
  • native(addressOrSymbol, callbacks): Interceptor.attach wrapper for native hooks.
  • replace(classWrapper, methodName, replacement): replace implementation and get a restore function.

safe - fail-closed wrappers

  • java(fn): run in Java.performNow and return { ok, result?, error? }.
  • call(fn): try/catch wrapper returning { ok, result?, error? }.
  • timeout(fn, timeoutMs): Promise wrapper returning { ok, result?, error? } (does not cancel underlying work).
  • tryUse(className): safe Java.use (returns null instead of throwing).
  • invoke(obj, methodName, ...args): safe method invocation (returns null on any failure).
  • get(obj, keyPath, defaultValue?): safe property lookup (supports dot paths).

time - timestamps and rate limiting

  • now(), nowMs(), hrNow()
  • format(ms), stopwatch()
  • sleep(ms), measure(fn)
  • debounce(fn, delayMs), throttle(fn, intervalMs)

Dùng MCP Kahlo MCP với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Kahlo MCP, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Kahlo MCP làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Kahlo MCP.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "kahlo-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Kahlo MCP, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Kahlo MCP.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Kahlo MCP giúp tôi làm việc này không?
Kahlo MCP
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Kahlo MCP.

Câu hỏi thường gặp

Máy chủ MCP Kahlo MCP dùng để làm gì?

Kahlo MCP là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Kahlo MCP với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Kahlo MCP với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Kahlo MCP với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Kahlo MCP, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Kahlo MCP với TypingMind?

Kahlo MCP hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Kahlo MCP cung cấp những công cụ nào trong TypingMind?

Kahlo MCP cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Kahlo MCP không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Kahlo MCP yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇