Compare commits
2 Commits
e8485e3bb7
...
b2c055ffb2
| Author | SHA1 | Date | |
|---|---|---|---|
| b2c055ffb2 | |||
| 6e0b34843b |
80
services/tiddlywiki-mcp.hcl
Normal file
80
services/tiddlywiki-mcp.hcl
Normal file
@@ -0,0 +1,80 @@
|
||||
job "tiddlywiki-mcp" {
|
||||
datacenters = ["alo"]
|
||||
|
||||
group "captainslog" {
|
||||
network {
|
||||
port "http" {}
|
||||
}
|
||||
|
||||
volume "services" {
|
||||
type = "host"
|
||||
source = "services"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
volume "nix-store" {
|
||||
type = "host"
|
||||
source = "nix-store"
|
||||
read_only = true
|
||||
}
|
||||
|
||||
volume "sw" {
|
||||
type = "host"
|
||||
source = "sw"
|
||||
read_only = true
|
||||
}
|
||||
|
||||
task "mcp-server" {
|
||||
driver = "exec"
|
||||
|
||||
config {
|
||||
command = "/sw/bin/node"
|
||||
args = ["/data/services/tiddlywiki-mcp/dist/index.js"]
|
||||
}
|
||||
|
||||
env {
|
||||
MCP_TRANSPORT = "http"
|
||||
MCP_PORT = "${NOMAD_PORT_http}"
|
||||
CONSUL_SERVICE = "captainslog.service.consul"
|
||||
AUTH_HEADER = "X-Oidc-Username"
|
||||
AUTH_USER = "claude-code"
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "services"
|
||||
destination = "/data/services"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "nix-store"
|
||||
destination = "/nix/store"
|
||||
read_only = true
|
||||
}
|
||||
|
||||
volume_mount {
|
||||
volume = "sw"
|
||||
destination = "/sw"
|
||||
read_only = true
|
||||
}
|
||||
|
||||
service {
|
||||
name = "tiddlywiki-mcp-captainslog"
|
||||
port = "http"
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
path = "/health"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
}
|
||||
|
||||
resources {
|
||||
memory = 256
|
||||
}
|
||||
|
||||
user = "ppetru"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,8 +37,8 @@ job "wiki" {
|
||||
"host=0.0.0.0",
|
||||
"port=${NOMAD_PORT_captainslog}",
|
||||
"authenticated-user-header=X-Oidc-Username",
|
||||
"readers=ppetru",
|
||||
"writers=ppetru",
|
||||
"readers=ppetru,claude-code",
|
||||
"writers=ppetru,claude-code",
|
||||
"admin=ppetru",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user