{
  "manifest_version": "1.0.0",
  "template": {
    "id": "242c9732-a259-4337-969e-86988c5017a7",
    "slug": "scholia-template",
    "name": "scholia-template",
    "description": "Self-hosted second brain for Claude and AI agents, over MCP",
    "url": "https://railway.com/deploy/scholia-template",
    "upstream": {
      "repo_url": "https://github.com/daniel-bernardino747/scholia-mcp"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "pgvector",
      "source": {
        "image": "pgvector/pgvector:pg18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "scholia-mcp",
      "source": {
        "repo": "https://github.com/daniel-bernardino747/scholia-mcp"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "pgvector",
      "description": "Data directory inside the volume. Don't change.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGHOST",
      "service": "pgvector",
      "description": "Public TCP proxy host and port, for connecting from outside Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "pgvector",
      "description": "Public TCP proxy host and port, for connecting from outside Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "pgvector",
      "description": "Mirrors of the POSTGRES_* values, for clients.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "pgvector",
      "description": "Mirrors of the POSTGRES_* values, for clients.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "pgvector",
      "description": "Mirror of POSTGRES_PASSWORD, for Postgres clients.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pgvector",
      "description": "Database name. Default railway.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "pgvector",
      "description": "Public connection URL (e.g. for running reindex from your machine).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgvector",
      "description": "Database superuser name.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "pgvector",
      "description": "Private network host, used by the scholia server.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "pgvector",
      "description": "Private network port, used by the scholia server.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgvector",
      "description": "Database password, generated on deploy. Do not change.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_URL_PRIVATE",
      "service": "pgvector",
      "description": "Private connection URL, used by the scholia server.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BASE_URL",
      "service": "scholia-mcp",
      "description": "Public URL of this service, used for OAuth callbacks. Leave as is.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_MODE",
      "service": "scholia-mcp",
      "description": "github (OAuth, needed for claude.ai) or bearer (one shared token).",
      "secret": false,
      "strategy": "default",
      "default": "github"
    },
    {
      "key": "DATABASE_URL",
      "service": "scholia-mcp",
      "description": "Postgres with pgvector, over the private network. Leave as is.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GITHUB_CLIENT_ID",
      "service": "scholia-mcp",
      "description": "From a GitHub OAuth App whose Redirect URI is <this service's URL>/auth/callback.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ALLOWED_GITHUB_USERS",
      "service": "scholia-mcp",
      "description": "Your numeric GitHub ID (https://api.github.com/users/<login> → id). Comma-separate several.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GITHUB_CLIENT_SECRET",
      "service": "scholia-mcp",
      "description": "From the same OAuth App.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "scholia-template"
      }
    },
    "cli": "railway deploy --template scholia-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "242c9732-a259-4337-969e-86988c5017a7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "7b15a522-034b-4076-8ccb-cb083ffe39fe": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "pgvector",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"unset PGPORT; docker-entrypoint.sh postgres --port=5432\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume. Don't change.",
                      "defaultValue": "{{PGDATA}}"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Public TCP proxy host and port, for connecting from outside Railway.",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Public TCP proxy host and port, for connecting from outside Railway.",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Mirrors of the POSTGRES_* values, for clients.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Mirrors of the POSTGRES_* values, for clients.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Mirror of POSTGRES_PASSWORD, for Postgres clients.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name. Default railway.",
                      "defaultValue": "{{POSTGRES_DB}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Public connection URL (e.g. for running reindex from your machine).",
                      "defaultValue": "postgres://${{PGUSER}}:${{PGPASSWORD}}@${{PGHOST}}:${{PGPORT}}/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database superuser name.",
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "PGHOST_PRIVATE": {
                      "isOptional": false,
                      "description": "Private network host, used by the scholia server.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT_PRIVATE": {
                      "isOptional": false,
                      "description": "Private network port, used by the scholia server.",
                      "defaultValue": "{{PGPORT_PRIVATE}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password, generated on deploy. Do not change.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_URL_PRIVATE": {
                      "isOptional": false,
                      "description": "Private connection URL, used by the scholia server.",
                      "defaultValue": "postgres://${{PGUSER}}:${{PGPASSWORD}}@${{PGHOST_PRIVATE}}:${{PGPORT_PRIVATE}}/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "7b15a522-034b-4076-8ccb-cb083ffe39fe": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "9c72a4a5-3346-4dd0-86dd-a00ba5aa74ab": {
                  "icon": "https://cdn.jsdelivr.net/gh/daniel-bernardino747/scholia-mcp@main/docs/icon.svg",
                  "name": "scholia-mcp",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/daniel-bernardino747/scholia-mcp",
                    "rootDirectory": null
                  },
                  "variables": {
                    "BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of this service, used for OAuth callbacks. Leave as is.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTH_MODE": {
                      "isOptional": false,
                      "description": "github (OAuth, needed for claude.ai) or bearer (one shared token).",
                      "defaultValue": "github"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres with pgvector, over the private network. Leave as is.",
                      "defaultValue": "${{pgvector.DATABASE_URL_PRIVATE}}"
                    },
                    "VOYAGE_API_KEY": {
                      "isOptional": true,
                      "description": "Required when EMBEDDING_PROVIDER=voyage.",
                      "defaultValue": ""
                    },
                    "GITHUB_CLIENT_ID": {
                      "isOptional": false,
                      "description": "From a GitHub OAuth App whose Redirect URI is <this service's URL>/auth/callback.",
                      "defaultValue": "{{GITHUB_CLIENT_ID}}"
                    },
                    "ALLOWED_GITHUB_USERS": {
                      "isOptional": false,
                      "description": "Your numeric GitHub ID (https://api.github.com/users/<login> → id). Comma-separate several.",
                      "defaultValue": "{{ALLOWED_GITHUB_USERS}}"
                    },
                    "GITHUB_CLIENT_SECRET": {
                      "isOptional": false,
                      "description": "From the same OAuth App.",
                      "defaultValue": "{{GITHUB_CLIENT_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "scholia-mcp",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-09T16:14:44.491Z",
  "generator_version": "0.1.0"
}
