Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
MCP_WS_PORT | No | Host port to expose for WebSocket transport | 7821 |
AFFINE_EMAIL | No | Email for authentication (self-hosted) | |
AFFINE_COOKIE | No | Session cookie string (e.g., affine_session=<...>; affine_user_id=<...>) | |
MCP_TRANSPORT | No | Transport mode: 'stdio' for stdio mode, or 'ws' for WebSocket | ws |
AFFINE_BASE_URL | No | Base URL of your AFFiNE server, e.g. http://affine.local:3010 | |
AFFINE_PASSWORD | No | Password for authentication (self-hosted) | |
AFFINE_API_TOKEN | No | Personal access token for Bearer auth | |
AFFINE_GRAPHQL_PATH | No | GraphQL endpoint path | /graphql |
AFFINE_HEADERS_JSON | No | Optional JSON of extra headers to send | |
AFFINE_WORKSPACE_ID | No | Default workspace id (optional). Tools also accept explicit workspaceId |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
No tools |