smithery.yaml•839 B
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
runtime: container
build:
dockerfile: Dockerfile
dockerBuildPath: .
startCommand:
type: http
# Expose GOOGLE_APPLICATION_CREDENTIALS from config
configSchema:
type: object
required:
- googleCredentialsPath
properties:
googleCredentialsPath:
type: string
description: Path to the Google Cloud service account credentials JSON file.
commandFunction: |
config => ({
command: 'bash',
args: ['-lc', 'set -e; node -e "if (process.env.GOOGLE_CREDENTIALS_JSON_B64) { require(\'fs\').writeFileSync(\'credentials.json', Buffer.from(process.env.GOOGLE_CREDENTIALS_JSON_B64, \'base64\')); }"; node .smithery/index.cjs'],
env: { GOOGLE_APPLICATION_CREDENTIALS: config.googleCredentialsPath }
})