repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
benchmarking/inference_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.035783
""" Inference benchmarking tool. Requirements: transformers accelerate bitsandbytes optimum-benchmark Usage: python inference_benchmark.py model_id options: -h, --help show this help message and exit --configs {bf16,fp16,nf4,nf4-dq,int8,int8-decomp} [{bf16,fp16,nf4,nf4-dq,int8,int8...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
agents/fetch_issues.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.045081
#!/usr/bin/env python3 """Fetch all issues (open and closed) from a GitHub repository via GraphQL and store as structured JSON.""" import argparse from datetime import datetime, timezone import json from pathlib import Path import subprocess import sys import time GRAPHQL_QUERY = """ query($owner: String!, $repo: Str...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
agents/query_issues.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.046457
#!/usr/bin/env python3 """Search and query GitHub issues from the local JSON data file. Optimized for agent consumption: quality and flexibility first, then compactness. Examples: # List all open issues (one line each) python3 github/query_issues.py list python3 github/query_issues.py list --state closed ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
benchmarking/matmul_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.070596
""" Extracted from tests/test_functional.py Usage: pytest benchmarking/matmul_benchmark.py """ import time import pytest import torch import bitsandbytes as bnb from bitsandbytes import functional as F k = 20 torch.set_printoptions(precision=5, sci_mode=False, linewidth=120, edgeitems=20, threshold=10000) @pyte...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
benchmarking/int8/int8_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.071837
""" Basic benchmark for text generation. Usage: python benchmarking/int8/int8_benchmark.py """ import time import torch from torch.profiler import ProfilerActivity, profile from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig MAX_NEW_TOKENS = 128 model_name = "meta-llama/Llama-3.1-8B" t...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
benchmarking/xpu/inference_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.106806
import argparse import time # import intel_extension_for_pytorch as ipex import numpy as np import torch from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig MAX_NEW_TOKENS = 256 get_time = time.time system_prompt = "You are a helpful assistant" user_prompt = """Summarize this text please:...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.612702
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import sys import torch from . import _ops, utils from .autograd._functions import ( MatmulLtState, matmul, ma...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/_ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.620533
from collections.abc import Sequence from math import prod from typing import Optional import torch _IS_TORCH_GTE_24 = False if hasattr(torch.library, "register_fake"): _IS_TORCH_GTE_24 = True register_fake = torch.library.register_fake register_kernel = torch.library.register_kernel else: # PyTorch ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/autograd/_functions.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.662743
from dataclasses import dataclass import logging from math import prod from typing import Optional import warnings from warnings import warn import torch import bitsandbytes.functional as F logger = logging.getLogger(__name__) # The inverse transformation for the colTuring and colAmpere format were contributed by A...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/cpu/ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.663900
from collections.abc import Sequence import ctypes as ct import logging import math from math import prod from typing import Optional import torch from bitsandbytes.functional import get_ptr, has_avx512bf16 from ..._ops import register_kernel from ...cextension import ErrorHandlerMockBNBNativeLibrary, lib logger = ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/cuda/ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:50.728864
from collections.abc import Sequence import ctypes as ct from math import prod from typing import Optional import torch from bitsandbytes.functional import CUBLAS_Context, _cuda_device_of, _get_tensor_stream, get_ptr from ..._ops import register_kernel from ...cextension import lib @register_kernel("bitsandbytes::...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/hpu/ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:51.261352
from collections.abc import Sequence import math import torch from ..._ops import register_kernel from ..utils import GAUDI_SW_VER # convert btw standard 4-bit compression format and ipex compression format # needed for backward compatibility with older versions of gaudi sw def _reverse_4bit_compress_format(weight:...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/triton/kernels_4bit.py
null
null
null
null
null
null
Python
2026-05-04T02:12:51.284831
import torch import triton import triton.language as tl # Triton implementation of similar CUDA kernel to avoid loading code from csrc/kernels.cu::dQuantizeFP4 # @triton.autotune( # configs=[ # triton.Config({"SPLIT_NUM_BLOCKS": 1, "grf_mode": "auto"}, num_stages=4, num_warps=32), # triton.Config...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/mps/ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:51.291882
"""MPS backend for bitsandbytes 4-bit quantization ops. Uses Metal kernels from kernels-community/bitsandbytes-mps via the HuggingFace Kernels Hub. """ from collections.abc import Sequence from math import prod import torch from ..._ops import register_kernel # -----------------------------------------------------...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/triton/kernels_8bit_quant.py
null
null
null
null
null
null
Python
2026-05-04T02:12:51.318517
import torch import triton import triton.language as tl # @triton.autotune( # configs=[ # # triton.Config({'SPLIT_SIZE': 64}), # # triton.Config({'SPLIT_SIZE': 64, 'grf_mode': 'large'}, num_stages=2, num_warps=32), # # triton.Config({'SPLIT_SIZE': 64, 'grf_mode': 'auto'}, num_stages=2, nu...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/default/ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:51.319670
from collections.abc import Sequence from functools import wraps from math import prod, sqrt from typing import Optional import torch from ..._ops import register_kernel from ..utils import CODE def _try_torch_compile(func=None, **compile_kwargs): """ Wrapper around torch.compile that falls back to the orig...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/triton/kernels_optim.py
null
null
null
null
null
null
Python
2026-05-04T02:12:51.369949
import math from typing import Optional import torch import triton import triton.language as tl # from triton.language.extra import libdevice from .kernels_8bit_quant import ( dequant_8bit_blockwise, dequant_8bit_blockwise_kernel_util, quantize_8bit_blockwise_kernel_util, quantize_blockwise_triton, )...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/triton/ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:52.098189
from collections.abc import Sequence from typing import Optional import torch from . import kernels_4bit, kernels_8bit_quant, kernels_optim # currently codes unused, kept for reference # Should be the same for quant/dequant # from bitsandbytes.functional import get_4bit_type # _FP4_QUANT_TABLE = get_4bit_type("fp4",...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/cuda_specs.py
null
null
null
null
null
null
Python
2026-05-04T02:12:52.673246
import dataclasses from functools import lru_cache import logging import platform import re import subprocess from typing import Optional import torch @dataclasses.dataclass(frozen=True) class CUDASpecs: highest_compute_capability: tuple[int, int] cuda_version_string: str cuda_version_tuple: tuple[int, i...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:12:52.675428
from importlib.metadata import metadata from packaging import version import torch try: import triton # noqa: F401 import triton.language as tl # noqa: F401 triton_available = True except ImportError: triton_available = False _NF4_QUANT_TABLE = torch.tensor( [ -1.0, -0.6961928...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/consts.py
null
null
null
null
null
null
Python
2026-05-04T02:12:52.677029
from pathlib import Path import platform DYNAMIC_LIBRARY_SUFFIX = { "Darwin": ".dylib", "Linux": ".so", "Windows": ".dll", }.get(platform.system(), ".so") PACKAGE_DIR = Path(__file__).parent PACKAGE_GITHUB_URL = "https://github.com/TimDettmers/bitsandbytes" NONPYTORCH_DOC_URL = "https://github.com/TimDett...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/cextension.py
null
null
null
null
null
null
Python
2026-05-04T02:12:52.678166
import ctypes as ct import functools import logging import os from pathlib import Path import re from typing import Optional import torch from bitsandbytes.consts import DYNAMIC_LIBRARY_SUFFIX, PACKAGE_DIR from bitsandbytes.cuda_specs import ( CUDASpecs, get_cuda_specs, get_cuda_version_tuple, get_roc...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/backends/xpu/ops.py
null
null
null
null
null
null
Python
2026-05-04T02:12:52.838976
from collections.abc import Sequence import ctypes as ct import logging from packaging import version import torch from bitsandbytes.functional import _get_tensor_stream, get_ptr from ..._ops import register_kernel from ...cextension import ErrorHandlerMockBNBNativeLibrary, lib from ..utils import triton_available ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/diagnostics/main.py
null
null
null
null
null
null
Python
2026-05-04T02:12:54.206311
import importlib import platform import sys import traceback import torch from bitsandbytes import __version__ as bnb_version from bitsandbytes.cextension import BNB_BACKEND from bitsandbytes.consts import PACKAGE_GITHUB_URL from bitsandbytes.cuda_specs import get_cuda_specs from bitsandbytes.diagnostics.cuda import ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/nn/modules.py
null
null
null
null
null
null
Python
2026-05-04T02:12:54.207985
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import logging from typing import Any, Optional, TypeVar, Union, overload import torch from torch import Tensor, device, dtype, nn...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/optim/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:12:54.258530
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .adagrad import Adagrad, Adagrad8bit, Adagrad32bit from .adam import Adam, Adam8bit, Adam32bit, PagedAdam, PagedAdam8bit, PagedAdam32bit ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/nn/parametrize.py
null
null
null
null
null
null
Python
2026-05-04T02:12:54.653876
from functools import partial from typing import Any, Literal, Optional import torch import torch.nn as nn import torch.nn.utils.parametrize as P from .. import functional as F class Bnb4bitParametrization(nn.Module): """ A parametrization module that handles dequantization of a 4-bit quantized parameter. ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/nn/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:12:54.765897
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .modules import ( Embedding, Embedding4bit, Embedding8bit, EmbeddingFP4, EmbeddingNF4, Int8Params, Linear4bit,...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/optim/adagrad.py
null
null
null
null
null
null
Python
2026-05-04T02:12:55.160608
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from bitsandbytes.optim.optimizer import Optimizer1State class Adagrad(Optimizer1State): def __init__( self, params, ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/functional.py
null
null
null
null
null
null
Python
2026-05-04T02:12:55.190110
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from collections.abc import Iterable import ctypes as ct import itertools from math import prod from typing import Any, Optional import numpy ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/diagnostics/cuda.py
null
null
null
null
null
null
Python
2026-05-04T02:12:57.217609
from collections.abc import Iterable, Iterator import logging import os from pathlib import Path import torch from bitsandbytes.cextension import HIP_ENVIRONMENT, get_cuda_bnb_library_path from bitsandbytes.cuda_specs import CUDASpecs from bitsandbytes.diagnostics.utils import print_dedented CUDART_PATH_PREFERRED_EN...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/diagnostics/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:12:57.792440
import textwrap HEADER_WIDTH = 60 def print_header(txt: str, width: int = HEADER_WIDTH, filler: str = "=") -> None: txt = f" {txt} " if txt else "" print(txt.center(width, filler)) def print_dedented(text): print("\n".join(textwrap.dedent(text).strip().split("\n")))
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/optim/adamw.py
null
null
null
null
null
null
Python
2026-05-04T02:12:59.778905
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from bitsandbytes.optim.optimizer import Optimizer2State class AdamW(Optimizer2State): def __init__( self, params, ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/optim/adam.py
null
null
null
null
null
null
Python
2026-05-04T02:12:59.782162
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from bitsandbytes.optim.optimizer import Optimizer2State class Adam(Optimizer2State): def __init__( self, params, ...
bitsandbytes-foundation/bitsandbytes
https://github.com/bitsandbytes-foundation/bitsandbytes
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
bitsandbytes/optim/ademamix.py
null
null
null
null
null
null
Python
2026-05-04T02:12:59.848803
from collections.abc import Iterable import math from typing import Literal, Optional import torch import bitsandbytes.functional as F from bitsandbytes.optim.optimizer import Optimizer2State class _ReferenceAdEMAMix(torch.optim.Optimizer): """ Reference: https://hf.co/papers/2409.03137 """ def __i...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.248345
"""IDA Pro MCP Plugin Loader This file serves as the entry point for IDA Pro's plugin system. It loads the actual implementation from the ida_mcp package. """ import sys import idaapi import ida_kernwin import ida_netnode from typing import TYPE_CHECKING if TYPE_CHECKING: from . import ida_mcp NETNODE_AUTOSTAR...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_discovery.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.287531
"""Discovery API - list and switch between IDA instances. When running in streamable-http mode (client connects directly to IDA), select_instance makes this IDA instance proxy tool calls to the target. This lets a single MCP endpoint reach any running IDA instance. """ import http.client import json import os import ...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.288041
"""IDA Pro MCP Plugin - Modular Package Version This package provides MCP (Model Context Protocol) integration for IDA Pro, enabling AI assistants to interact with IDA's disassembler and decompiler. Architecture: - rpc.py: JSON-RPC infrastructure and registry - mcp.py: MCP protocol server (HTTP/SSE) - sync.py: IDA sy...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.289719
import sys from ida_pro_mcp.server import main if __name__ == "__main__": sys.argv[0] = "ida_pro_mcp" main()
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_core.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.291647
"""Core API Functions - IDB metadata and basic queries""" import logging import re import time from typing import Annotated, Any, NotRequired, TypedDict import ida_auto import ida_bytes import idaapi import ida_funcs import ida_hexrays import ida_lines import ida_search import ida_segment import idautils import ida_l...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_debug.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.296364
"""Debugger operations for IDA Pro MCP. This module provides comprehensive debugging functionality including: - Debugger control (start, exit, continue, step, run_to) - Breakpoint management (add, delete, enable/disable, conditions, list) - Register inspection (all registers, GP registers, specific registers) - Memory...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_composite.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.298834
"""Composite analysis tools that aggregate multiple data sources.""" from __future__ import annotations from collections import defaultdict from typing import Annotated, Any, TypedDict from .rpc import tool, unsafe from .sync import idasync, tool_timeout, IDAError from .utils import ( parse_address, get_func...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/_sigmaker.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.311618
""" Vendored sigmaker core — signature creation and scanning engine. Original: sigmaker.py - IDA Python Signature Maker https://github.com/mahmoudimus/ida-sigmaker by @mahmoudimus (Mahmoud Abdelkader) This is a stripped-down, self-contained copy of the sigmaker library with GUI/plugin code removed. Only the engine c...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_analysis.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.325401
from itertools import islice import struct from typing import Annotated, Any, NotRequired, Optional, TypedDict import ida_lines import ida_funcs import idaapi import idautils import ida_typeinf import ida_nalt import ida_bytes import ida_ida import ida_idaapi import ida_xref import ida_ua import ida_name from .rpc impo...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_memory.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.828954
"""Memory reading and writing operations for IDA Pro MCP. This module provides batch operations for reading and writing memory at various granularities (bytes, integers, strings) and patching binary data. """ import re from typing import Annotated, NotRequired, TypedDict import ida_bytes import idaapi from .rpc imp...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_sigmaker.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.913067
"""Signature creation and scanning tools for IDA Pro MCP. This module integrates sigmaker.py functionality to provide: - Unique signature generation for addresses/functions - Range-based signature generation (selection) - XREF-based signature discovery - Multiple output formats: IDA, x64dbg, mask, bitmask """ from ty...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_python.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.917012
from typing import Annotated, TypedDict import ast import io import sys import idaapi import idc import ida_bytes import ida_dbg import ida_entry import ida_frame import ida_funcs import ida_hexrays import ida_ida import ida_kernwin import ida_lines import ida_nalt import ida_name import ida_segment import ida_typeinf ...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_resources.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.918611
"""MCP Resources - browsable IDB state Resources represent browsable state (read-only data) following MCP's philosophy. Use tools for actions that modify state or perform expensive computations. """ from typing import Annotated import ida_nalt import ida_segment import ida_typeinf import idaapi import idautils impor...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_modify.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.927532
from typing import Annotated, Any, NotRequired, TypedDict import idaapi import idautils import idc import ida_hexrays import ida_bytes import ida_typeinf import ida_frame import ida_dirtree import ida_funcs import ida_ua from .compat import tinfo_get_udm from .rpc import tool from .sync import idasync, IDAError from ...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_survey.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.928951
"""Binary survey tool -- complete triage in one call.""" from __future__ import annotations import hashlib import re from itertools import islice from typing import Annotated, TypedDict from .rpc import tool from .sync import idasync, tool_timeout from . import compat from .api_core import _get_strings_cache from .u...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_stack.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.940838
"""Stack frame operations for IDA Pro MCP. This module provides batch operations for managing stack frame variables, including reading, creating, and deleting stack variables in functions. """ from typing import Annotated, NotRequired, TypedDict import ida_typeinf import ida_frame import idaapi from .compat import t...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/discovery.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.942423
"""Instance discovery for IDA Pro MCP. IDA plugin instances register themselves by writing JSON files to {ida_user_dir}/mcp/instances/. The MCP server discovers running instances by reading these files and validating PID liveness. """ import datetime import glob import json import os import socket import sys import t...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/compat.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.956253
""" IDA Pro API Compatibility Layer This module wraps IDA APIs that differ between IDA 9.0+ and older versions, providing a unified interface. Compatibility notes: - IDA 9.0: some idaapi methods removed, uses ida_entry, ida_ida - IDA 8.5: idaapi.get_inf_structure methods removed, ida_funcs.func_t api update - IDA 8.4...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/api_types.py
null
null
null
null
null
null
Python
2026-05-04T02:13:02.960381
from typing import Annotated, Any, TypedDict import idc import ida_typeinf import ida_hexrays import ida_nalt import ida_bytes import ida_frame import idaapi from .rpc import tool from .sync import idasync from .utils import ( normalize_list_input, normalize_dict_list, paginate, pattern_filter, pa...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/rpc.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.557818
import json import os from typing import Any, Optional from .zeromcp import ( McpRpcRegistry, McpServer, McpToolError, McpHttpRequestHandler, get_current_request_external_base_url, ) MCP_UNSAFE: set[str] = set() MCP_EXTENSIONS: dict[str, set[str]] = {} # group -> set of function names MCP_SERVER =...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/framework.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.559801
"""IDA Pro MCP Test Framework This module provides a custom test framework for testing IDA MCP tools. Tests can be defined inline or in separate test files using the @test decorator. Usage from IDA console: from ida_mcp.tests import run_tests run_tests() # Run all tests run_tests(catego...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/profile.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.561511
"""Profile files whitelist MCP tools by name. Format: one tool name per line; ``#`` starts a comment; blank lines are ignored. Passed to ``idalib-mcp --profile PATH`` or exported from ``/config.html``. """ from pathlib import Path from typing import Iterable def parse_profile(text: str) -> set[str]: """Parse pr...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.562530
"""IDA Pro MCP Test Package. This package contains test modules for each API module. Tests are registered via the @test decorator from the framework module. """ # Import all test modules to register tests when the package is imported from . import test_api_core from . import test_api_analysis from . import test_api_m...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/sync.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.564420
import logging import queue import functools import os import sys import time import idaapi import idc from .rpc import McpToolError from .zeromcp.jsonrpc import get_current_cancel_event, RequestCancelledError # ============================================================================ # IDA Synchronization & Error ...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/http.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.565332
import html import json import logging import re import ida_netnode from urllib.parse import urlparse, parse_qs from typing import TypeVar, cast from http.server import HTTPServer from .profile import dump_profile, parse_profile from .sync import idasync from .rpc import ( McpRpcRegistry, McpHttpRequestHandler...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_analysis.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.566541
"""Tests for api_analysis API functions.""" from ..framework import ( test, skip_test, assert_has_keys, assert_valid_address, assert_non_empty, assert_is_list, assert_shape, assert_ok, assert_error, is_hex_address, optional, get_any_function, get_data_address, ge...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_composite.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.583416
"""Tests for api_composite API functions.""" from ..framework import ( test, skip_test, assert_has_keys, assert_valid_address, assert_non_empty, assert_is_list, assert_shape, assert_ok, assert_error, is_hex_address, optional, list_of, get_any_function, get_unmapp...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/mcp_mode.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.613244
"""End-to-end MCP mode for the test framework. When enabled, every @tool-decorated function is monkeypatched to route through a real MCP client/server HTTP round-trip and the response is validated against its advertised outputSchema. Lets the existing test suite double as a runtime-conformance check without rewriting ...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_analysis_internals.py
null
null
null
null
null
null
Python
2026-05-04T02:13:03.741170
"""Targeted tests for deeper internal helpers in api_analysis.py.""" from ..framework import test, assert_non_empty from ..api_analysis import ( _resolve_insn_scan_ranges, _scan_insn_ranges, _value_to_le_bytes, _value_candidates_for_immediate, ) @test(binary="typed_fixture.elf") def test_internal_res...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_modify.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.359246
"""Tests for api_modify API functions.""" from ..framework import ( test, skip_test, assert_is_list, assert_ok, assert_error, get_any_function, get_named_address, ) from ..api_modify import ( append_comments, set_comments, patch_asm, rename, define_func, define_code,...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_memory.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.359778
"""Tests for api_memory API functions.""" from ..framework import ( test, skip_test, assert_non_empty, assert_is_list, assert_shape, assert_ok, assert_error, optional, get_first_segment, get_data_address, get_unmapped_address, get_named_address, ) from ..api_memory impor...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_python.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.362534
"""Tests for api_python API functions.""" import contextlib import os import tempfile from ..framework import test from ..api_python import py_eval, py_exec_file @contextlib.contextmanager def _tmp_script(content): """Write content to a temporary .py file, yield its path, then clean up.""" with tempfile.Nam...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_core.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.364168
"""Tests for api_core API functions.""" from ..framework import ( test, skip_test, assert_has_keys, assert_valid_address, assert_non_empty, assert_is_list, assert_shape, assert_ok, assert_error, is_hex_address, list_of, optional, get_any_function, get_data_addres...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_debug.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.365752
"""Tests for debugger control helpers.""" from ..framework import test from .. import api_debug from ..sync import IDAError class _SavedAttr: def __init__(self, obj, name, value): self.obj = obj self.name = name self.old = getattr(obj, name) setattr(obj, name, value) def rest...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_resources.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.366270
"""Tests for api_resources MCP resource functions.""" from ..framework import ( test, skip_test, assert_valid_address, assert_non_empty, assert_is_list, ) from ..api_resources import ( idb_metadata_resource, idb_segments_resource, idb_entrypoints_resource, cursor_resource, selec...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_sigmaker.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.368074
"""Tests for api_sigmaker API functions. Tests are structured to validate semantically meaningful behavior: - Round-trip: generate a signature then scan it back to verify it finds the original address (proving uniqueness isn't just a boolean flag). - Function resolution: make_signature_for_function resolves mid-func...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_discovery.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.561671
"""Tests for the discovery API module (api_discovery.py). Tests dispatch routing decisions, loop prevention, select_instance state machine, tools/list merge logic, and IDB file discovery. """ import json import os import tempfile from ..framework import test from .. import api_discovery # -------------------------...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_survey.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.563927
"""Tests for api_survey API functions.""" from ..framework import ( test, skip_test, assert_has_keys, assert_valid_address, assert_non_empty, assert_is_list, assert_shape, assert_ok, is_hex_address, optional, list_of, ) from ..api_survey import survey_binary # ============...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_stack.py
null
null
null
null
null
null
Python
2026-05-04T02:13:04.564845
"""Tests for api_stack API functions.""" from ..framework import ( test, skip_test, assert_valid_address, assert_is_list, assert_ok, assert_error, get_data_address, ) from ..api_stack import ( stack_frame, declare_stack, delete_stack, ) CRACKME_MAIN = "0x123e" TEST_STACK_VAR =...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_idalib_server.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.145107
"""Tests for idalib_server integration helpers.""" import os import sys from ..framework import test try: from ida_pro_mcp import idalib_server except ImportError: _parent = os.path.join(os.path.dirname(__file__), "..", "..") sys.path.insert(0, _parent) try: import idalib_server # type: igno...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_api_types.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.151853
"""Tests for api_types API functions.""" from ..framework import ( test, skip_test, assert_is_list, assert_non_empty, assert_ok, assert_error, get_any_function, get_first_segment, get_data_address, get_unmapped_address, get_named_address, ) from ..api_types import ( decl...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_discovery.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.181475
"""Tests for the instance discovery module (discovery.py). Exercises registration/unregistration round-trips, the multi-stage staleness pipeline in discover_instances, and sort-order guarantees that server.py relies on for auto-selection. """ import contextlib import json import os import tempfile from ..framework i...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_profile.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.254075
"""Tests for profile-file parsing and registry filtering.""" import contextlib from pathlib import Path from ..framework import test from ..profile import apply_profile, dump_profile, load_profile, parse_profile from ..rpc import MCP_SERVER @contextlib.contextmanager def _saved_tools(): """Restore MCP_SERVER.to...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_installer.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.256737
"""Tests for installer config generation changes. Verifies that stdio configs no longer hardcode --ida-rpc (enabling auto-discovery) while HTTP/SSE configs still embed the RPC address. """ import os import sys from ..framework import test try: from ida_pro_mcp.installer import generate_mcp_config, SERVER_SCRIPT...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_framework_helpers.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.264123
"""Tests for framework helper utilities used by the IDA test suite.""" from ..framework import ( test, assert_shape, assert_typed_dict, assert_ok, assert_error, optional, list_of, one_of, is_hex_address, get_named_function, get_named_address, get_string_address_containin...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_http.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.292868
"""Tests for tool registration (@unsafe, @ext) and extension gating. Tests exercise the real MCP_UNSAFE set, MCP_EXTENSIONS dict, and MCP_SERVER.tools.methods registry — all populated by actual decorator execution at import time. No mocks. Unsafe *removal* tests (simulating idalib --unsafe gating) live in test_serve...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_server.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.301044
"""Tests for the top-level stdio proxy server (server.py) and unsafe tool gating.""" import argparse import contextlib import json import os import sys from ..framework import test from ..rpc import MCP_SERVER, MCP_UNSAFE try: from ida_pro_mcp import server except ImportError: _parent = os.path.join(os.path....
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_tool_metadata.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.307908
"""Tests for high-signal MCP tool metadata.""" import ast import re from pathlib import Path from ..framework import test # Tool docstrings are model-facing MCP descriptions in this repository; see # CLAUDE.md: "The function docstring becomes the MCP tool description." # Anthropic's tool-use guidance recommends det...
mrexodia/ida-pro-mcp
https://github.com/mrexodia/ida-pro-mcp
null
null
null
null
8,172
null
null
mit
null
null
null
null
null
null
null
src/ida_pro_mcp/ida_mcp/tests/test_trace.py
null
null
null
null
null
null
Python
2026-05-04T02:13:05.343807
# Tests for the IDB tools/call trace middleware. from ..framework import test from ..rpc import MCP_SERVER from .. import trace def _call_through_registry(name: str, arguments: dict | None = None) -> dict: return MCP_SERVER.registry.methods["tools/call"](name, arguments) def _kill_trace_node() -> None: """...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
docs/examples/immortal_pearl_earring.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.471230
import os import cv2 from PIL import ImageDraw, ImageFont from tqdm import tqdm from imaginairy.api import imagine from imaginairy.schema import ImaginePrompt, LazyLoadingImage, WeightedPrompt from imaginairy.utils.log_utils import configure_logging def generate_image_morph_video(): base_image = LazyLoadingImag...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/api/generate_compvis.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.481802
import logging from typing import TYPE_CHECKING, Any from imaginairy.api.generate import IMAGINAIRY_SAFETY_MODE from imaginairy.utils import seed_everything from imaginairy.utils.img_utils import calc_scale_to_fit_within, combine_image from imaginairy.utils.named_resolutions import normalize_image_size if TYPE_CHECKI...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/api/generate_flux.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.484070
import logging import os from functools import lru_cache from imaginairy.schema import ImaginePrompt, ImagineResult from imaginairy.utils.log_utils import ImageLoggingContext logger = logging.getLogger(__name__) @lru_cache(maxsize=1) def load_flux_models(): import torch from diffusers import AutoencoderKL, ...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
docs/examples/generate_doc_examples.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.484581
from imaginairy.api import imagine_image_files from imaginairy.schema import ImaginePrompt, LazyLoadingImage def main(): prompts = [ ImaginePrompt( "make her wear clown makeup", seed=952243488, model="edit", init_image=LazyLoadingImage( url="...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.486580
"""Pythonic AI generation of images and videos""" import os # tells pytorch to allow MPS usage (for Mac M1 compatibility) os.putenv("PYTORCH_ENABLE_MPS_FALLBACK", "1") # use more memory than we should os.putenv("PYTORCH_MPS_HIGH_WATERMARK_RATIO", "0.0")
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/api/colorize.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.493006
"""Functions for colorizing images""" import logging from PIL import Image, ImageEnhance, ImageStat from imaginairy.api import imagine from imaginairy.enhancers.describe_image_blip import generate_caption from imaginairy.schema import ControlInput, ImaginePrompt logger = logging.getLogger(__name__) def colorize_i...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/api/upscale.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.493925
from typing import TYPE_CHECKING, Union from imaginairy.config import DEFAULT_UPSCALE_MODEL if TYPE_CHECKING: from PIL import Image from imaginairy.schema import LazyLoadingImage def upscale_image( img: "Union[LazyLoadingImage, Image.Image, str]", upscale_model: str = DEFAULT_UPSCALE_MODEL, til...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/api/generate_refiners.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.495168
"""Functions for generating refined images""" import logging from contextlib import nullcontext from typing import Any from imaginairy.config import CONTROL_CONFIG_SHORTCUTS from imaginairy.schema import ControlInput, ImaginePrompt, MaskMode from imaginairy.utils import clear_gpu_cache, seed_everything from imaginair...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/api/generate.py
null
null
null
null
null
null
Python
2026-05-04T02:13:09.523628
"""Functions for generating and processing images""" import logging import os from pathlib import Path from typing import TYPE_CHECKING, Callable if TYPE_CHECKING: from imaginairy.schema import ImaginePrompt logger = logging.getLogger(__name__) # leave undocumented. I'd ask that no one publicize this flag. Just...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/api/video_sample.py
null
null
null
null
null
null
Python
2026-05-04T02:13:10.071934
"""Functions for generating synthetic videos""" import logging import math import os import random import re import time from glob import glob from pathlib import Path from typing import Any, Optional import cv2 import numpy as np import torch from einops import rearrange, repeat from omegaconf import OmegaConf from ...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/cli/edit.py
null
null
null
null
null
null
Python
2026-05-04T02:13:10.131207
"""Command for AI-powered image editing""" import click from imaginairy import config from imaginairy.cli.shared import ( _imagine_cmd, add_options, common_options, remove_option, ) edit_options = common_options.copy() remove_option(edit_options, "model_weights_path") remove_option(edit_options, "i...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/cli/colorize.py
null
null
null
null
null
null
Python
2026-05-04T02:13:10.132427
"""Command for colorizing images with AI""" import logging import click logger = logging.getLogger(__name__) @click.argument("image_filepaths", nargs=-1) @click.option( "--outdir", default="./outputs/colorized", show_default=True, type=click.Path(), help="Where to write results to.", ) @click.o...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/cli/clickshell_mod.py
null
null
null
null
null
null
Python
2026-05-04T02:13:10.141030
"""Most of these modifications are just so we get full stack traces in the shell.""" import logging import shlex import traceback from functools import update_wrapper from typing import ClassVar import click from click_help_colors import HelpColorsCommand, HelpColorsMixin from click_shell import Shell from click_shel...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/cli/edit_demo.py
null
null
null
null
null
null
Python
2026-05-04T02:13:10.142174
"""Command for applying preset image edits""" import click @click.command("edit-demo") @click.argument("image_paths", metavar="PATH|URL", required=True, nargs=-1) @click.option( "--outdir", default="./outputs", show_default=True, type=click.Path(), help="Where to write results to.", ) @click.opti...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/cli/describe.py
null
null
null
null
null
null
Python
2026-05-04T02:13:10.158047
"""Command for generating image descriptions""" import click @click.argument("image_filepaths", nargs=-1) @click.command() def describe_cmd(image_filepaths): """Generate text descriptions of images.""" import os from imaginairy.enhancers.describe_image_blip import generate_caption from imaginairy.sc...
brycedrennan/imaginAIry
https://github.com/brycedrennan/imaginAIry
null
null
null
null
8,148
null
null
mit
null
null
null
null
null
null
null
imaginairy/cli/arg_schedule.py
null
null
null
null
null
null
Python
2026-05-04T02:13:10.159090
"""Decorator and parsers for command scheduling""" from typing import Iterable from imaginairy.utils import frange def with_arg_schedule(f): """Decorator to add arg-schedule functionality to a click command.""" def new_func(*args, **kwargs): arg_schedules = kwargs.pop("arg_schedules", None) ...