wring error message when .env not configed
This commit is contained in:
@@ -1017,7 +1017,7 @@ class AppwriteMCPServer {
|
|||||||
if (!this.config || !this.databases) {
|
if (!this.config || !this.databases) {
|
||||||
throw new McpError(
|
throw new McpError(
|
||||||
ErrorCode.InternalError,
|
ErrorCode.InternalError,
|
||||||
"Appwrite not configured. Please check your appwrite-config.json file."
|
"Appwrite not configured. Please set environment variables: APPWRITE_PROJECT_ID, APPWRITE_API_ENDPOINT, and APPWRITE_API_KEY. For Claude Code CLI, create a .env file in your working directory. For Cursor IDE, add them to your MCP server configuration in settings.json."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user