プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

OptiVibe

作者:chuang44-tiffバージョン 0.2.3i★ 19iパソコンで動くリポジトリ ↗
レジストリ名io.github.chuang44-tiff/optivibe-mcp

インストール方法

What it does

Lens design automation for Zemax OpticStudio through the typed ZOS-API

  • Connects パソコンで動く
  • Account or key No key needed
  • Category デザイン・画像・音声

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

impeccable

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

作者:pbakaus★ 112,5441 個の skill

Skill · 手順書

diagram-design

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

作者:cathrynlavery★ 68,0691 個の skill

Skill · 手順書

frontend-slides

Create beautiful slides on the web using a coding agent's frontend skills

作者:zarazhangrui★ 32,5141 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気16/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア28/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

OptiVibe をインストールして。https://mcp.popnx.com/i/chuang44-tiff-optivibe-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server OptiVibe を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "optivibe": { "command": "uvx", "args": [ "optivibe-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、OptiVibe のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "optivibe": {
          "command": "uvx",
          "args": [
            "optivibe-mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    OptiVibe を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が OptiVibe を使っていると言うか、回答に OptiVibe のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ OptiVibe につなげません

OptiVibe はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · OptiVibe につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · デザイン・画像・音声 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server OptiVibe を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user optivibe -- uvx optivibe-mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、OptiVibe のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user optivibe -- uvx optivibe-mcp
  4. Claude Code で /mcp と入力

    OptiVibe が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    OptiVibe を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が OptiVibe を使っていると言うか、回答に OptiVibe のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server OptiVibe を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "optivibe": { "command": "uvx", "args": [ "optivibe-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、OptiVibe のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    OptiVibe を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が OptiVibe を使っていると言うか、回答に OptiVibe のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server OptiVibe を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "optivibe": { "type": "stdio", "command": "uvx", "args": [ "optivibe-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、OptiVibe のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    OptiVibe を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が OptiVibe を使っていると言うか、回答に OptiVibe のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?OptiVibe を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user optivibe -- uvx optivibe-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "optivibe": {
      "command": "uvx",
      "args": [
        "optivibe-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "optivibe": {
      "command": "uvx",
      "args": [
        "optivibe-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "optivibe": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "optivibe-mcp"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
125/週
接続方法
パソコンで動く
最新バージョンi
0.2.3
レジストリ公開日i
2026年11月13日
コードの最終更新i
2026年11月13日
作者
chuang44-tiff
パッケージ
pypi: optivibe-mcp
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月18日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント chuang44-tiff で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:5 日前

  • ✓ 合格

    ライセンスがある

    Apache-2.0を使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

OSV.dev に optivibe-mcp@0.2.3 の登録はありません

このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月15日

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/chuang44-tiff-optivibe-mcp.svg)](https://mcp.popnx.com/en/servers/chuang44-tiff-optivibe-mcp)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

デザイン・画像・音声のほかのサーバーとの比較i

  • このカテゴリのほかの3245件のうち95%よりスターが多い
  • このカテゴリのほかの3245件のうち86%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの3245件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

OptiVibeは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は5 日前、最新バージョン(0.2.3)がレジストリに届いたのは5 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:HyperFrames by HeyGen, Pascal 3D Editor, draw.io, Figma MCP Server, Remocn: Remotion MCP server

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

HyperFrames by HeyGen

Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

作者:heygen-com広く使われている★ 8.6万 リポジトリ全体のスター今日更新

クラウドで動く✓ heygen.com

Pascal 3D Editor

Create, inspect, validate, and save editable 3D building scenes with Pascal's MCP server.

作者:pascalorg広く使われている↓ 1037/週★ 2.6万 リポジトリ全体のスター今日更新

パソコンでもクラウドでも✓ 提供元 · pascal.app

draw.io

Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.

作者:jgraph広く使われている★ 5848昨日更新

クラウドで動く✓ 提供元 · draw.ioPopNx チームが実際に試用

Figma MCP Server

The Figma MCP server brings Figma design context directly into your AI workflow.

作者:figma広く使われている★ 220713 か月前更新

クラウドで動く✓ 提供元 · mcp.figma.com
似たものと比べる
これ
OptiVibe
HyperFrames by HeyGenPascal 3D Editordraw.ioFigma MCP ServerRemocn: Remotion MCP server
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使えるクラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえはいいいえ
基本チェック3/34/45/54/44/44/4
ライセンスApache-2.0Apache-2.0MITApache-2.0–MIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

optivibe-mcp

Lens design with an AI agent. optivibe-mcp gives a coding agent such as Claude Code typed tools for Zemax OpticStudio, and skills that take a lens from its first form through glass choice to an as-built tolerance check. It is experimental.

*One unattended run: a 60× objective reworked into a 10× / NA 0.45 apochromat, polychromatic Strehl ≥ 0.935 at every field point. How it was done and measured.*

pip install optivibe-mcp "optivibe-reference[manual]"

optivibe-build-data --probe claude mcp add optivibe -- C:/path/to/venv/Scripts/optivibe-mcp.exe

On PyPI and in the official MCP Registry as io.github.chuang44-tiff/optivibe-mcp. Details: Install.

What it does

  • More than 80 typed tools (optivibe-mcp, in packages/optivibe-harness/) drive OpticStudio over the ZOS-API: load and edit lenses, analyse, optimize, trial glass swaps and tolerance. Beyond spherical surfaces they author aspheres, coordinate breaks, fold mirrors, diffraction gratings and gradient-index media. Each returns a result envelope with read-backs instead of raising, so the agent checks a value rather than assuming a call worked.
  • Skills carry a design through its stages: optimize the form, choose glass, then desensitize the lens so more built copies pass (see Skills).
  • A reference layer (optivibe-reference) grounds the agent's choices: operand and glass lookups and manual search. Engine-free and licence-free; its data is built locally (see Build the reference data).

The project ships code only. No vendor data (glass catalog, manual text, operand descriptions) is included; you generate it from your own licensed OpticStudio install.

Demos

DemoResult
A 60× objective reworked into a 10× apochromat, unattendedStrehl ≥ 0.935 at all four field points in one run
The same job on a local modelStrehl ≥ 0.834 with a tuned brief; the page says where it trails Opus
Refining a 20× zoomBlur at the worst zoom position more than halved; the distortion target missed
Does the agent design better when it sees the drawing?Every vision run made a shorter lens: 70–100 mm against 140–221 mm
The glass step against OpticStudio's HammerOn the 10×, all three runs beat Hammer's merit by 12–19 %
Desensitizing a finished 10× so more built lenses passBuilds diffraction-limited at every field: 57.50 % to 69.25–74.65 % in four runs

Each demo ships its brief and lens files; demos/ lists them and has a script that re-measures a lens file.

Prerequisites

  • Windows. OpticStudio and the ZOS-API .NET surface are Windows-only.
  • Zemax OpticStudio, licensed for the ZOS-API. Developed against 2025 R1 (25.1.0, Premium); other versions are untested. Access is gated at first engine open on IsValidLicenseForAPI.
  • Python 3.11+.
  • .NET Framework — used automatically. The bootstrap sets PYTHONNET_RUNTIME=netfx and locates your install directory (via env override, registry, or a Program Files scan). No manual setup.

Install

From PyPI

In a Python 3.11+ virtual environment:

pip install optivibe-mcp "optivibe-reference[manual]"

optivibe-build-data --probe optivibe-doctor

Both packages are on PyPI: optivibe-mcp and optivibe-reference, released together with matching versions. optivibe-mcp is the server; it brings the reference layer (optivibe-reference) with it. The [manual] extra (PyMuPDF) is optional and reads your OpticStudio manual PDF (see Manual install). optivibe-build-data builds the reference data from your own OpticStudio install, and --probe also runs the two operand probes, which open OpticStudio and need the ZOS-API licence. optivibe-doctor checks the install. Then register the server with Claude Code.

optivibe-build-data writes into the installed package's data/ and data/captures/ directories, so install optivibe-mcp into a virtual environment (or with pip install --user) rather than into a system Python whose site-packages is not writable.

From a clone

Clone the repository, then run one command from its root:

powershell -ExecutionPolicy Bypass -File install.ps1

It creates a virtual environment in .venv, installs both packages, builds the reference data from your OpticStudio install, runs the doctor, and prints the command that registers the server with Claude Code. It opens no OpticStudio session. Options:

  • -Python : the Python 3.11+ to build the environment from, when the python on PATH is older;
  • -Probe: also run the two operand probes, which open OpticStudio and need the ZOS-API licence (see Build the reference data);
  • -Register: run the claude mcp add command for you.

The script only runs the steps below, which you can also do by hand.

Manual install

From packages/optivibe-harness/:

pip install -e ../optivibe-reference   # reference layer first

pip install -e . # then the harness

Install the reference package first — the harness loads it in-process, and without it the reference and lookup tools won't be available.

The [manual] extra (PyMuPDF) reads your OpticStudio manual PDF. It is needed for both manual search and the operand/tolerance description enrichment (the build extracts verbatim descriptions from the PDF). Without it, the operand and tolerance catalogs build synonyms-only (grounding still works — every entry is searchable by its synonyms — but carries no manual descriptions). To get the full enriched build, install it:

pip install -e "../optivibe-reference[manual]"

A per-package environment.yml (Python 3.11) is provided if you prefer conda.

Then check the install:

python -m optivibe_doctor

It checks the interpreter, the two packages, their dependencies, the reference data and your OpticStudio install directory, and prints one line per check with a remedy for anything that is wrong. It opens no OpticStudio session unless you ask: --engine also opens one and proves the ZOS-API licence, and --boot starts the real server once. On a fresh install the reference-data checks read WARN until you build the reference data, and the exit code is 1 while any check warns.

Register with Claude Code

claude mcp add optivibe -- /path/to/python -m optivibe_harness

/path/to/python is the interpreter of the environment you installed into — pointing it at a different Python is a common cause of silent failures. You can find it with:

python -c "import sys; print(sys.executable)"

The equivalent JSON configuration:

{ "command": "/path/to/python", "args": ["-m", "optivibe_harness"] }

After a PyPI install you can register the optivibe-mcp command instead. Give its full path (where optivibe-mcp prints it while the environment is active):

claude mcp add optivibe -- C:/path/to/venv/Scripts/optivibe-mcp.exe

Glass tools

Once the optimizer has settled a lens, three tools help with the glass step. explain_glass_swaps is read-only: it lists which glass elements carry the colour and Petzval terms. trial_glass_swaps tries up to four swap sets, each re-optimized beside an unchanged control, and judges them on measured image quality; it edits the open lens while it runs and restores it at the end. substitute_glass makes one swap and leaves it in place. The design-glass-matching skill runs this step.

To have Claude Code ask you before either tool that edits the lens runs, add an ask rule to your settings (for example .claude/settings.json):

{

"permissions": { "ask": ["mcpoptivibetrial_glass_swaps", "mcpoptivibesubstitute_glass"] } }

An ask rule takes precedence over an allow rule and still asks under bypassPermissions. In a headless run (claude -p) or in dontAsk mode there is no one to ask, so a matching call is denied.

Build the reference data

The reference layer's data is built locally from your own licensed install; nothing vendor-derived is committed. After a PyPI install, run optivibe-build-data (add --probe to run the two probes below first); it needs no clone. From a clone, run it from the repository root:

python packages/optivibe-reference/scripts/build_vendor_data.py

This reads the glass catalog from your .agf files (ZEMAX_GLASSCAT) and, if you point it at the manual PDF (OPTIVIBE_MANUAL_PDF), indexes it for search.

The operand and tolerance catalogs are built from a live probe of your install's ZOS-API enum surface. Run the two probes once first (each boots a headless OpticStudio session, reads the operand/tolerance surface, and reaps it):

python packages/optivibe-reference/scripts/probe_operands.py

python packages/optivibe-reference/scripts/probe_tolerances.py

If an input is missing the corresponding step is skipped: that tool (glass or manual search, or operand/tolerance lookup) returns a typed "unavailable" result and the rest of the server keeps working. Details and the data-source ledger are in PROVENANCE.md.

Running it

OpticStudio is not opened at startup — the engine is launched on the first tool call that touches a design, and it works with one design at a time. The reference and lookup tools work with no engine running — so install, registration, the reference build, and every lookup succeed regardless of license tier; the ZOS-API license is checked only when the engine opens.

A note on trust: tools return a result envelope and don't raise on failure, so a call completing is not proof it did what you intended. Check the returned value or the optimizer's verdict rather than the absence of an error.

Skills

The repository includes a few Claude Code skills for common tasks:

SkillFor
design-reviewAssess a design against a spec
design-compareCompare designs side by side
design-vision-reviewObserve a rendered layout and report what lens data does not show (advisory)
design-aberration-reviewRead the ray fan and field curvature / distortion plots and report how the aberrations are balanced (advisory)
optimize-loopRun optimization with monitoring
design-glass-matchingChoose glass for a settled lens: find the elements that carry the colour or field-curvature terms, trial swaps against a control, and keep a swap only when overall image quality improves
design-tolerance-desensitizeThe last finishing stage: pick the push compensator, find the tolerance hotspots, and keep a change only when the as-built yield improves
bench-catalogBenchmark and rank a folder of lens designs against a target spec or each other
zos-api-debugTroubleshoot OpticStudio connection / license errors

Status

Experimental, early-stage and provided as-is; expect rough edges. It has been developed and exercised against a single OpticStudio version (2025 R1) on Windows; behavior on other versions is unverified. Interfaces and tool coverage may change.

Running another OpticStudio version or licence tier? Please open an issue with the output of

冒頭だけを表示しています。続きはリポジトリで読めます