optics-mcp
mcpotherSearch Sunex lenses and imager sensors, match compatible optics, get pricing. No API key needed.
run it
on your own machines, one way per deploy method# once, as root:
docker build -t mcp-local/optics:latest https://github.com/sunex-ai/optics-mcp.git
#!/usr/bin/env bash
# optics (com.sunex/optics-mcp), recipe docker (generated).
# Generated by Hub for toolset "my-agent"; started by mcp-my-agent-optics.service.
set -euo pipefail
export HOST=127.0.0.1 PORT=8101
exec docker run --rm --name mcp-my-agent-optics -p 127.0.0.1:${PORT}:8000 --env-file /etc/mcp/my-agent.env mcp-local/optics:latest
[Unit]
Description=MCP server optics (toolset my-agent), generated by Hub
After=network-online.target docker.service
Wants=network-online.target
[Service]
Type=simple
User=mcp
Group=mcp
SupplementaryGroups=docker
EnvironmentFile=/etc/mcp/my-agent.env
Environment=HOME=/var/lib/mcp/optics
WorkingDirectory=/var/lib/mcp/optics
ExecStart=/opt/mcp/my-agent/bin/optics.sh
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
ReadWritePaths=/var/lib/mcp/optics
[Install]
WantedBy=multi-user.target
docker build -t optics https://github.com/sunex-ai/optics-mcp.git docker run --rm -p 127.0.0.1:8101:8000 optics
# Generated by Hub for toolset "my-agent" (2026-10-18T15:19:52+00:00).
# Each package server runs behind a stdio->HTTP bridge and listens on localhost only.
# cp .env.example .env # fill the ${VAR}s
# docker compose up -d && bash smoke.sh
# Remote servers are not here: clients reach them directly (see clients/).
name: mcp-my-agent
services:
optics:
build:
context: https://github.com/sunex-ai/optics-mcp.git
ports:
- 127.0.0.1:8101:8000
restart: unless-stopped
x-note: 'CHANGE_ME: built from the repository''s Dockerfile, assuming it serves streamable HTTP at
:8000/mcp. Nothing has run this yet; the worker replaces it with a tested recipe.'
volumes:
npm-cache: {}
uv-cache: {}
# Generated by Hub for toolset "my-agent" (2026-10-18T15:19:52+00:00).
# kubectl create namespace mcp
# kubectl -n mcp create secret generic mcp-credentials --from-env-file=.env
# kubectl apply -f kubernetes.yaml
# Services are cluster-internal: <name>.mcp.svc.cluster.local:8000/mcp. Put an ingress
# with auth in front before exposing any of them.
apiVersion: v1
kind: Namespace
metadata:
name: mcp
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: optics
namespace: mcp
labels: &id001
app: optics
spec:
replicas: 1
selector:
matchLabels: *id001
template:
metadata:
labels: *id001
spec:
containers:
- name: optics
image: CHANGE_ME
ports:
- containerPort: 8000
name: http
env: []
---
apiVersion: v1
kind: Service
metadata:
name: optics
namespace: mcp
spec:
selector:
app: optics
ports:
- port: 8000
targetPort: http
name: http
# Generated by Hub for toolset "my-agent" (2026-10-18T15:19:52+00:00).
# Credentials come from the Secret 'mcp-credentials' (kubectl create secret generic ... --from-env-file=.env).
# Each server under `servers` is one Deployment + Service; the keys after it configure
# upstream charts a worker verified.
servers:
optics:
enabled: true
replicas: 1
port: 8000
path: /mcp
container:
name: optics
image: CHANGE_ME
ports:
- containerPort: 8000
name: http
env: []
# helm install my-agent helm/my-agent -n mcp
in the cloud
one click: the provider's deploy form opens filled in, in your own account- koyeb
-
Koyeb builds the repository's Dockerfile from branch main; change the branch in the form if the default one has another name.
Clients connect to the service's https://…koyeb.app address plus /mcp.
- cloud run
-
Cloud Shell clones the repository, builds its Dockerfile and deploys it to Cloud Run.
Cloud Run sends requests to $PORT (8080); the recipe expects :8000, so the server has to read PORT, or set the container port on the service afterwards.
connect to it
copy what your client needs{
"mcpServers": {
"optics": {
"command": "CHANGE_ME",
"args": []
}
}
}
#!/usr/bin/env bash # Registers every server with Claude Code (run once; `claude mcp list` to check). set -euo pipefail set -a; [ -f .env ] && source .env; set +a claude mcp add optics -- CHANGE_ME
{
"mcpServers": {
"optics": {
"command": "CHANGE_ME",
"args": []
}
}
}
{
"servers": {
"optics": {
"type": "stdio",
"command": "CHANGE_ME",
"args": []
}
}
}
name: my-agent target: local servers: - hub: com.sunex/optics-mcp
- no recipe for target 'local': fill the files by hand
tools · 5
find_compatible_lensesGiven an imager's pixel count and pitch, return lenses whose image circle and resolving power cover the sensor, with per-lens FOV and angular resolution. Supports optional FOV and F/# range filters.Given an imager's pixel count and pitch, return lenses whose image circle and resolving power cover the sensor, with per-lens FOV and angular resolution. Supports optional FOV and F/# range filters.
pin 639d9a049665897c38664e756ed02d92986834076acbf249ba1ae05c5a6aa7e0get_imager_detailGet full imager specs PLUS computed sensor geometry (effective width/height/diagonal in mm) and a pre-built lens-wizard URL.Get full imager specs PLUS computed sensor geometry (effective width/height/diagonal in mm) and a pre-built lens-wizard URL.
pin 1cedd1d8d96e1bfbae5851284207b62690db710429199b91f72254f108e7b042recommend_lens_for_imagerOne-shot recommendation: given an imager part number (e.g. 'IMX577'), looks up its geometry, then returns compatible lenses with FOV and angular resolution. Use this when the user names a sensor and wants lens options.One-shot recommendation: given an imager part number (e.g. 'IMX577'), looks up its geometry, then returns compatible lenses with FOV and angular resolution. Use this when the user names a sensor and wants lens options.
pin 07add07dd1f31830450ad9ddaef52b5c37d9e6634a8ff22ebc8c7cf4c9ea7fcdsearch_imagersSearch the Sunex imager (sensor) catalog by part number, manufacturer, or resolution class. Use detail=true with a specific pn for a single-record exact lookup.Search the Sunex imager (sensor) catalog by part number, manufacturer, or resolution class. Use detail=true with a specific pn for a single-record exact lookup.
pin 4db38fdd84f363da850f46276be772034e8d94ac2a4fce2b6cd7a20015dadd2dsearch_productsSearch the full Sunex product catalog by PN prefix and/or description keyword. Returns sample price, currency, and URLs for spec sheet, sample order, and RFQ.Search the full Sunex product catalog by PN prefix and/or description keyword. Returns sample price, currency, and URLs for spec sheet, sample order, and RFQ.
pin e0fe927869bf0e15df11191e23e45b75bd9142a992434b5197e884c3c5311fa8
runs · 1
the latest tests of this entry by the hub and its workers, newest first| date | worker | method | status | sandbox | reason |
|---|---|---|---|---|---|
| 2026-10-16 09:49 | local-mac | remotemcp 2025-11-25 | ok5 tools | none | — |