Skip to content
VS Code

Filelayer for VS Code

dev.filelayer/core

User files for a SaaS, under one person's authority: list, share with an expiry, revoke.

client:VS Code transport:stdio runtime:npm

Install Filelayer in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "database-url",
      "description": "DATABASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-as",
      "description": "FILELAYER_AS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-org",
      "description": "FILELAYER_ORG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-data-dir",
      "description": "FILELAYER_DATA_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "s3-endpoint",
      "description": "S3_ENDPOINT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "s3-bucket",
      "description": "S3_BUCKET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "s3-region",
      "description": "S3_REGION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "s3-access-key-id",
      "description": "S3_ACCESS_KEY_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "s3-secret-access-key",
      "description": "S3_SECRET_ACCESS_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-mcp-agent-label",
      "description": "FILELAYER_MCP_AGENT_LABEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-mcp-allow-destructive",
      "description": "FILELAYER_MCP_ALLOW_DESTRUCTIVE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-mcp-expose-audit",
      "description": "FILELAYER_MCP_EXPOSE_AUDIT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-mcp-return-bytes",
      "description": "FILELAYER_MCP_RETURN_BYTES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "filelayer-base-url",
      "description": "FILELAYER_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "core": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@filelayer/core"
      ],
      "env": {
        "DATABASE_URL": "${input:database-url}",
        "FILELAYER_AS": "${input:filelayer-as}",
        "FILELAYER_ORG": "${input:filelayer-org}",
        "FILELAYER_DATA_DIR": "${input:filelayer-data-dir}",
        "S3_ENDPOINT": "${input:s3-endpoint}",
        "S3_BUCKET": "${input:s3-bucket}",
        "S3_REGION": "${input:s3-region}",
        "S3_ACCESS_KEY_ID": "${input:s3-access-key-id}",
        "S3_SECRET_ACCESS_KEY": "${input:s3-secret-access-key}",
        "FILELAYER_MCP_AGENT_LABEL": "${input:filelayer-mcp-agent-label}",
        "FILELAYER_MCP_ALLOW_DESTRUCTIVE": "${input:filelayer-mcp-allow-destructive}",
        "FILELAYER_MCP_EXPOSE_AUDIT": "${input:filelayer-mcp-expose-audit}",
        "FILELAYER_MCP_RETURN_BYTES": "${input:filelayer-mcp-return-bytes}",
        "FILELAYER_BASE_URL": "${input:filelayer-base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Filelayer in other clients