From 26e7043718fbf5fbf08eecd04ff8ed5edd82e33e Mon Sep 17 00:00:00 2001
From: Adam <2363879+adamdotdevin@users.noreply.github.com>
Date: Fri, 26 Dec 2025 10:29:48 -0600
Subject: feat(core): optional mdns service (#6192)

Co-authored-by: Github Action <action@github.com>
---
 packages/web/src/content/docs/config.mdx | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

(limited to 'packages/web/src/content/docs/config.mdx')

diff --git a/packages/web/src/content/docs/config.mdx b/packages/web/src/content/docs/config.mdx
index ebaff36bb..d7f803178 100644
--- a/packages/web/src/content/docs/config.mdx
+++ b/packages/web/src/content/docs/config.mdx
@@ -120,6 +120,31 @@ Available options:
 
 ---
 
+### Server
+
+You can configure server settings for the `opencode serve` and `opencode web` commands through the `server` option.
+
+```json title="opencode.json"
+{
+  "$schema": "https://opencode.ai/config.json",
+  "server": {
+    "port": 4096,
+    "hostname": "0.0.0.0",
+    "mdns": true
+  }
+}
+```
+
+Available options:
+
+- `port` - Port to listen on.
+- `hostname` - Hostname to listen on. When `mdns` is enabled and no hostname is set, defaults to `0.0.0.0`.
+- `mdns` - Enable mDNS service discovery. This allows other devices on the network to discover your OpenCode server.
+
+[Learn more about the server here](/docs/server).
+
+---
+
 ### Tools
 
 You can manage the tools an LLM can use through the `tools` option.
-- 
cgit v1.2.3

