devns
devns
macOS向けのローカルドメイン https://<nama>.test ポートなし。
devns add webui 8080
# ✓ https://webui.test → 127.0.0.1:8080 (caddy admin load HTTP 200)すべてをセットアップする単一のCLI: dnsmasq (ワイルドカード *.test → 127.0.0.1)、Caddy (ポート80/443の唯一の保持者、内部CAによる自動HTTPS)、そしてオプションのローカルDoHブリッジにより、Secure DNS を使用するブラウザでも .test ドメインを開くことができます。
なぜ必要か?
devnsなし | devnsあり |
|
|
プロジェクト間でポートが衝突 | プロジェクトごとに一意の名前、URLにポートなし |
平文HTTP | 信頼されたHTTPS (cookie |
ブラウザのSecure DNSがローカルドメインを無効化 | DoHブリッジ: |
Related MCP server: DDEV MCP Server
インストール
必要: macOS + uv + Homebrew。
git clone https://github.com/apiep/devns && cd devns
uv tool install --editable .
devns init # sekali saja — minta sudo interaktif 2-3x
devns doh install # opsional: bridge DoH utk browser secure-DNSdevns init が準備するもの:
まだない場合は
brew install dnsmasq caddy/etc/resolver/test→ macOSがTLD.testを127.0.0.1にルーティングdnsmasq.confのaddress=/.test/127.0.0.1ブロック + :53のサービスルートメインのCaddyfile (
import ~/.config/devns/sites/*.caddy) + 80/443のサービスルートCaddyの内部CAをシステムトラストストアへ (
sudo caddy trust)DoHブリッジ (AdGuardの
dnsproxy— OS/archに応じてバイナリを自動ダウンロード)
日常的にはsudoは一切不要: add/rm/ls/open/doctor/doh/log。
使い方
devns add pueue 7337 # daftarkan domain + reload Caddy + cek port
devns add api 3000 --open # sekalian buka browser
devns ls # ● https://pueue.test → 127.0.0.1:7337
devns open pueue # buka di browser default
devns rm pueue # hapus (konfirmasi; -y skip)
devns doctor # kesehatan: resolver/DNS/Caddy/HTTPS/DoH
devns doh install # bridge DoH (LaunchAgent user-level)
devns doh status
devns doh log -f # ikuti log dnsproxy liveSecure DNSを使用するブラウザ
devns doh install 後、Secure DNSをカスタムに設定: https://dns.test:8443/dns-query。
.test クエリはローカルで解決され、他のすべてのクエリは選択したアップストリームDoH (デフォルトはOpenDNS) に暗号化されて転送されます。
アーキテクチャ
Browser ──DoH──> dns.test:8443 (dnsproxy, launchd io.devns.doh)
├─ [/test/] ──> dnsmasq :53 ──> 127.0.0.1
└─ lainnya ──> https://doh.opendns.com/dns-query
Browser ──HTTPS──> Caddy :443 ──reverse_proxy──> 127.0.0.1:<port-app>
──HTTP───> Caddy :80 ──308──> HTTPS
cert: Caddy Local Authority (tls internal), per-hostname on-demandレジストリ:
~/.config/devns/registry.yaml= 唯一の真実のソースサイトファイル:
~/.config/devns/sites/<nama>.caddy(生成されたアーティファクト; テンプレートはflush_interval -1を使用してSSEがバッファリングされないようにする)毎日のリロード: Caddyのadminエンドポイント
localhost:2019にヘッダーContent-Type: text/caddyfileを使用
MCPサーバー
devnsは追加の依存関係なしでstdio MCPサーバーを含みます:
hermes mcp add devns --command devns-mcp # Hermes Agent
# atau konfigurasi MCP client lain (Claude Desktop dsb) dengan command "devns-mcp"ツール: list_domains, add_domain, remove_domain, check_health, doh_status。
AIエージェント用スキル
このリポジトリには skills/devns/SKILL.md にポータブルスキルが含まれています (agentskills.io / Claudeスキル形式)。エージェントのスキルディレクトリにコピーまたはシンボリックリンクしてください。
設計メモ (実際の教訓)
ワイルドカード
*.testは最新の検証器に拒否される — Chromeとcurlは、SANがRFC的に有効でもTLDに直接付くワイルドカード証明書を拒否します。そのため、証明書はCaddyの内部CAによってホスト名ごとにオンデマンドで作成されます。ポート5353はmDNSResponder (Bonjour) が使用中 → DoHブリッジは5335を使用。
/etc/resolver/testはdnsmasqが停止しているときに解決をハングさせます (即座に失敗しない) — これはリゾルバがアクティブである証拠であり、バグではありません。
ライセンス
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive DNS operations including lookups for various record types, reverse DNS queries, batch processing, and DNS resolution tracing. Supports multiple DNS servers with configurable caching and robust error handling.4212MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with DDEV local development environments by querying databases, managing project states, and executing container commands. It provides comprehensive control over local services with a security-first approach using whitelisted operations.5493GPL 2.0
- FlicenseNot gradedqualityDmaintenanceEnables checking domain availability using WHOIS and DNS resolution, with support for single and batch queries.28
- AlicenseBqualityDmaintenanceEnables domain name checking and related services through a standardized MCP interface.2MIT
Related MCP Connectors
Look up DNS information for any domain to troubleshoot issues and gather insights. Get fast, relia…
DNS lookups, health reports, SSL certs, security scans, GEO scoring, uptime checks
Domain search, registration, DNS, marketplace, and checkout with your AI agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/apiep/devns'
If you have feedback or need assistance with the MCP directory API, please join our Discord server