Skip to content

Commit 109cea6

Browse files
authored
Merge pull request #11 from b3nw/add-host-configuration
2 parents 3c14975 + 578abbd commit 109cea6

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ OUTLINE_API_KEY=your_outline_api_key_here
44
# Optional: Outline API base URL (defaults to https://app.getoutline.com/api)
55
# OUTLINE_API_URL=https://app.getoutline.com/api
66

7+
# Optional: Host/IP to bind the server to (defaults to 127.0.0.1)
8+
# Use 0.0.0.0 to bind to all network interfaces for multi-client access
9+
# OUTLINE_MCP_HOST=127.0.0.1
10+
711
# To get your Outline API key:
812
# 1. Log in to your Outline account
913
# 2. Go to Settings > API Tokens

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ Add the following MCP definition to your configuration:
7878
"env": {
7979
"OUTLINE_API_KEY": "<REPLACE_ME>",
8080
"OUTLINE_API_URL": "https://app.getoutline.com/api",
81-
"OUTLINE_MCP_PORT": "6060"
81+
"OUTLINE_MCP_PORT": "6060",
82+
"OUTLINE_MCP_HOST": "127.0.0.1"
8283
}
8384
}
8485
}
@@ -89,6 +90,7 @@ Add the following MCP definition to your configuration:
8990
- `OUTLINE_API_KEY` (_required_): your API key for outline, duh
9091
- `OUTLINE_API_URL` (_optional_): Alternative URL for your outline API (if using an alt domain/self-hosting)
9192
- `OUTLINE_MCP_PORT` (_optional_): Specify the port on which the server will run (default: 6060)
93+
- `OUTLINE_MCP_HOST` (_optional_): Host/IP to bind the server to (default: 127.0.0.1). Use 0.0.0.0 to bind to all network interfaces
9294

9395
### Usage
9496

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ app.post('/messages', async (req, res) => {
9191
});
9292

9393
const PORT = process.env.OUTLINE_MCP_PORT ? parseInt(process.env.OUTLINE_MCP_PORT, 10) : 6060;
94-
app.listen({ port: PORT }, (err, address) => {
94+
const HOST = process.env.OUTLINE_MCP_HOST || '127.0.0.1';
95+
app.listen({ port: PORT, host: HOST }, (err, address) => {
9596
if (err) {
9697
console.error(err);
9798
process.exit(1);

0 commit comments

Comments
 (0)