Skip to content
Agentmart
Submit a tool

Pystub

Auto-detect stubbable packages for Python exe builds and generate minimal stub code

Connector by KoyoYeager · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/koyoyeager-pystub

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Auto-detect stubbable packages for Python exe builds and generate minimal stub code

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
0 read · 1 write · 0 delete · 4 not yet classified
Secrets
None asked for
Install scripts
Not scanned yet
Runs as
Python package

Tools by what they do 5

Read from the source code; the running server may list different tools.

Write 1 · Create, change, send or run things.

  • graph

Not yet classified 4 · We could not tell from the name and description.

  • analyze
  • check
  • generate
  • generate_submodule

Tools (5)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • analyze

    プロジェクトのエントリーポイントから import グラフを解析し、 スタブ置換可能なパッケージを自動検出します。 各パッケージは以下のいずれかに判定されます: - stubbable: スタブ化可能(プロジェクトの実行パスで未使用) - nofollow: try/except 保護あり(--nofollow-import-to で除外推奨) - required: スタブ化不可(実際に使用されている) Args: entry_point: プロジェクトのエントリーポイントファイルパス python_path: site-packages パス(空の場合は現在の環境を自動検出) max_depth: import グラフの最大探索深度(デフォルト: 10) Returns: stubbable / nofollow / required に分類されたパッケージ一覧

  • check

    特定のパッケージがプロジェクト内でどのように使われているか詳細に分析します。 import チェーン、gateway 関数、プロジェクトからの呼び出し状況を 追跡して判定結果を返します。 Args: entry_point: プロジェクトのエントリーポイントファイルパス package_name: 調査するパッケージ名(例: "pandas") python_path: site-packages パス(空の場合は現在の環境を自動検出) max_depth: import グラフの最大探索深度(デフォルト: 5) Returns: パッケージの詳細な使用分析と判定結果

  • generate

    stubbable パッケージの最小スタブコードを生成します。 analyzer が特定した参照シンボルに基づき、import が通る最小限の ダミーモジュール(クラス定義 + 関数スタブ)を生成します。 ファイルの書き出しは行わず、{パス: コード} の辞書を返します。 Args: entry_point: プロジェクトのエントリーポイントファイルパス package_name: スタブ化するパッケージ名(例: "pandas") python_path: site-packages パス(空の場合は現在の環境を自動検出) Returns: files: {相対パス: コード内容} の辞書 referenced_symbols: 各モジュールで参照されるシンボル一覧 stub_total_bytes: スタブの合計サイズ

  • generate_submodule

    C拡張パッケージを間接排除するためのサブモジュールスタブを生成します。 PySide6 のような C拡張パッケージは直接スタブ化できませんが、 そのパッケージを import しているサブモジュール(例: asammdf.gui)を スタブ化することで間接的に排除できます。 analyze ツールの結果に含まれる submodule_stub_hints の情報を元に このツールを使用してください。 復元失敗を防ぐため、バックアップ・バージョン固定・検証ステップを 含むビルド手順を生成します。 Args: entry_point: プロジェクトのエントリーポイントファイルパス parent_package: サブモジュールが属するパッケージ名(例: "asammdf") submodule: スタブ化するサブモジュール(例: "asammdf.gui") python_path: site-packages パス(空の場合は現在の環境を自動検出) Returns: files: {相対パス: コード内容} の辞書 eliminated_packages: 排除されるパッケージ一覧 build_instructions: バックアップ・適用・復元・検証の手順

  • graph

    エントリーポイントからの import グラフを構築して可視化します。 全モジュールの依存関係をノードとエッジで返します。 各ノードは stdlib / third_party / local / builtin / unresolvable に分類されます。 Args: entry_point: プロジェクトのエントリーポイントファイルパス python_path: site-packages パス(空の場合は現在の環境を自動検出) max_depth: 最大探索深度(デフォルト: 5) Returns: ノード・エッジ・統計情報を含むグラフデータ

Signals

Stars
0
Forks
0
Open issues
0
Weekly downloads
32
Last commit
Apr 1, 2026 (7 months ago)
Last release
Mar 31, 2026 (7 months ago)
Last package publish
Apr 1, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026) and the package registry.

Details

Registry name
io.github.KoyoYeager/pystub
Version
0.1.1
Auth
No auth
Packages
pypi mcp-pystub
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026
Cite this page

Pystub MCP server. Agent Mart. https://agentmart.dev/connectors/koyoyeager-pystub (last updated 2026-10-24)