DOCSPACE_BASE_URL
The base URL of the DocSpace instance for API requests.
DOCSPACE_API_KEYsecret
The API key for accessing the API.
DOCSPACE_TRANSPORTdefault stdio
The transport protocol to use for communication with the MCP server.
DOCSPACE_DYNAMICdefault false
The flag that indicates whether the MCP server should use meta tools.
DOCSPACE_TOOLSETSdefault all
The list of toolsets to enable for the MCP server.
DOCSPACE_ENABLED_TOOLS
The list of tools to enable for the MCP server.
DOCSPACE_DISABLED_TOOLS
The list of tools to disable for the MCP server.
DOCSPACE_USER_AGENTdefault @onlyoffice/docspace-mcp v3.2.0
The user agent to include in the User-Agent header for API requests.
DOCSPACE_AUTHORIZATIONsecret
The raw value to include in the Authorization header for API requests.
DOCSPACE_AUTH_TOKENsecret
The Personal Access Token (PAT) for accessing the API.
DOCSPACE_USERNAME
The username for accessing the API using basic authentication.
DOCSPACE_PASSWORDsecret
The password for accessing the API using basic authentication.
DOCSPACE_SESSION_TTLdefault 28800000
The time-to-live (TTL) for HTTP sessions in milliseconds.
DOCSPACE_SESSION_INTERVALdefault 240000
The interval for checking HTTP sessions for expiration in milliseconds.
DOCSPACE_OAUTH_BASE_URL
The base URL of the DocSpace OAuth service for OAuth requests.
DOCSPACE_OAUTH_CLIENT_ID
The client ID of the OAuth application.
DOCSPACE_OAUTH_CLIENT_SECRETsecret
The client secret of the OAuth application.
DOCSPACE_OAUTH_AUTH_TOKEN_ALGORITHMdefault HS256
The algorithm to use for signing OAuth access tokens.
DOCSPACE_OAUTH_AUTH_TOKEN_TTLdefault 3600000
The time-to-live (TTL) for OAuth access tokens in milliseconds.
DOCSPACE_OAUTH_AUTH_TOKEN_SECRET_KEYsecret
The secret key to use for signing OAuth access tokens.
DOCSPACE_OAUTH_STATE_TOKEN_ALGORITHMdefault HS256
The algorithm to use for signing OAuth state tokens.
DOCSPACE_OAUTH_STATE_TOKEN_TTLdefault 3600000
The time-to-live (TTL) for OAuth state tokens in milliseconds.
DOCSPACE_OAUTH_STATE_TOKEN_SECRET_KEYsecret
The secret key to use for signing OAuth state tokens.
DOCSPACE_SERVER_BASE_URL
The base URL of the server.
DOCSPACE_HOSTdefault 127.0.0.1
The host to bind the server to.
DOCSPACE_PORTdefault 8080
The port to bind the server to.
DOCSPACE_SERVER_PROXY_HOPSdefault 0
The number of proxy servers between the server and the client.
DOCSPACE_SERVER_CORS_MCP_ORIGINdefault *
The list of allowed origins to include in the Access-Control-Allow-Origin header for CORS requests to MCP endpoints.
DOCSPACE_SERVER_CORS_MCP_MAX_AGEdefault 86400000
The maximum age in milliseconds to include in the Access-Control-Max-Age header for CORS requests to MCP endpoints.
DOCSPACE_SERVER_CORS_OAUTH_ORIGINdefault *
The list of allowed origins to include in the Access-Control-Allow-Origin header for CORS requests to OAuth endpoints.
DOCSPACE_SERVER_CORS_OAUTH_MAX_AGEdefault 86400000
The maximum age in milliseconds to include in the Access-Control-Max-Age header for CORS requests to OAuth endpoints.
DOCSPACE_SERVER_RATE_LIMITS_MCP_CAPACITYdefault 1000
The maximum number of requests allowed per window for the MCP endpoints.
DOCSPACE_SERVER_RATE_LIMITS_MCP_WINDOWdefault 1000
The time window in milliseconds for the rate limit for the MCP endpoints.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_SERVER_METADATA_CAPACITYdefault 200
The maximum number of requests allowed per window for the OAuth server metadata endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_SERVER_METADATA_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth server metadata endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_RESOURCE_METADATA_CAPACITYdefault 200
The maximum number of requests allowed per window for the OAuth resource metadata endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_RESOURCE_METADATA_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth resource metadata endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_AUTHORIZE_CAPACITYdefault 200
The maximum number of requests allowed per window for the OAuth authorization endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_AUTHORIZE_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth authorization endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_CALLBACK_CAPACITYdefault 200
The maximum number of requests allowed per window for the OAuth callback endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_CALLBACK_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth callback endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_INTROSPECT_CAPACITYdefault 10
The maximum number of requests allowed per window for the OAuth introspection endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_INTROSPECT_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth introspection endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_REGISTER_CAPACITYdefault 10
The maximum number of requests allowed per window for the OAuth client registration endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_REGISTER_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth client registration endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_REVOKE_CAPACITYdefault 10
The maximum number of requests allowed per window for the OAuth token revocation endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_REVOKE_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth token revocation endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_TOKEN_CAPACITYdefault 10
The maximum number of requests allowed per window for the OAuth token endpoint.
DOCSPACE_SERVER_RATE_LIMITS_OAUTH_TOKEN_WINDOWdefault 60000
The time window in milliseconds for the rate limit for the OAuth token endpoint.
DOCSPACE_REQUEST_QUERYdefault true
The flag that indicates whether the server should accept configuration via query parameters in incoming requests.
DOCSPACE_REQUEST_AUTHORIZATION_HEADERdefault true
The flag that indicates whether the server should check for the Authorization header in incoming requests.
DOCSPACE_REQUEST_HEADER_PREFIXdefault x-mcp-
The prefix to use with custom configuration headers.