You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-1Lines changed: 48 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,53 @@ mcp-server-drupal --version
52
52
mcp-server-drupal --help
53
53
```
54
54
55
+
## Authentication
56
+
57
+
The server supports both authentication via environment variables. You can use either a auth token or a basic auth with username and password combination . The following environment variables are supported:
58
+
59
+
-`DRUPAL_AUTH_TOKEN`: The authentication token.
60
+
-`DRUPAL_AUTH_USER`: The username for authentication.
61
+
-`DRUPAL_AUTH_PASSWORD`: The password for authentication.
62
+
63
+
> [!NOTE]
64
+
> Make sure to turn the authentication on the Drupal MCP module settings page.
65
+
66
+
> [!NOTE]
67
+
> If both `DRUPAL_AUTH_TOKEN` and `DRUPAL_AUTH_USER`/`DRUPAL_AUTH_PASSWORD` are set, the token will be used over the username and password.
68
+
69
+
Example usage with token:
70
+
71
+
```json
72
+
{
73
+
"mcpServers": {
74
+
"mcp-server-drupal": {
75
+
"command": "__BINARY_PATH__",
76
+
"args": ["--drupal-url", "__DRUPAL_BASE_URL__"],
77
+
"env": {
78
+
"DRUPAL_AUTH_TOKEN": "<AUTH_TOKEN>"
79
+
}
80
+
}
81
+
}
82
+
}
83
+
```
84
+
85
+
Example usage with username and password:
86
+
87
+
```json
88
+
{
89
+
"mcpServers": {
90
+
"mcp-server-drupal": {
91
+
"command": "__BINARY_PATH__",
92
+
"args": ["--drupal-url", "__DRUPAL_BASE_URL__"],
93
+
"env": {
94
+
"DRUPAL_AUTH_USER": "<BASIC_AUTH_USERNAME>",
95
+
"DRUPAL_AUTH_PASSWORD": "<BASIC_AUTH_PASSWORD>"
96
+
}
97
+
}
98
+
}
99
+
}
100
+
```
101
+
55
102
## MCP
56
103
57
104
- All instruments are defined by the Drupal API during the initialization phase
0 commit comments