From 6456102d3065c244411745c464e0c066644f69ac Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 2 Jun 2025 17:35:06 +0200 Subject: [PATCH 1/4] fix: readme things that didnt work for me --- mindsdb-mcp/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mindsdb-mcp/README.md b/mindsdb-mcp/README.md index 80ccce1f8..32bcb3572 100644 --- a/mindsdb-mcp/README.md +++ b/mindsdb-mcp/README.md @@ -209,7 +209,7 @@ PARAMETERS = { Make sure to choose `External` for `User Type`, and select the necessary scopes. Make sure to save the changes. - - Now, create the OAuth client ID. Choose `Web application` for the `Application Type` and give it a name. + - Now, create the OAuth client ID. Choose `Web application` for the `Application Type` and give it a name. Sometimes it might not work straightforward and you need to setup a `Desktop application` instead. - Add the following MindsDB URL to `Authorized redirect URIs`: @@ -221,6 +221,13 @@ PARAMETERS = { 4. Download the JSON file: - After creating your credentials, click the download button (an icon of an arrow pointing down) on the right side of your client ID. This will download a JSON file, so you will use the location to it in the `credentials_file` param. + - The JSON file can be placed into the container filesystem via [cat+EOF-pasting](https://stackoverflow.com/a/21549836) or via mounting it on container launch + ```sh + docker run -it \ + -v /Users/my.name/Downloads/downloaded_creds.json:/mindsdb/mindsdb/integrations/handlers/gmail_handler/client_secret.json \ + -p 47334:47334 -p 47335:47335 \ + mindsdb/mindsdb + ``` 5. Add user authentication: @@ -235,7 +242,7 @@ Go to the MindsDB editor running locally at `127.0.0.1:47334` and run the follow CREATE DATABASE mindsdb_gmail WITH ENGINE = 'gmail', PARAMETERS = { - "credentials_file": "path/to/credentials.json", + "credentials_file": "/mindsdb/mindsdb/integrations/handlers/gmail_handler/client_secret.json" "scopes": ['https://.../gmail.compose', 'https://.../gmail.readonly'] }; ``` From ccdc5fb56cf94aeba777295e08a4f57eb059777d Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 2 Jun 2025 19:37:01 +0200 Subject: [PATCH 2/4] Update mindsdb-mcp/README.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- mindsdb-mcp/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mindsdb-mcp/README.md b/mindsdb-mcp/README.md index 32bcb3572..db1438e84 100644 --- a/mindsdb-mcp/README.md +++ b/mindsdb-mcp/README.md @@ -242,9 +242,11 @@ Go to the MindsDB editor running locally at `127.0.0.1:47334` and run the follow CREATE DATABASE mindsdb_gmail WITH ENGINE = 'gmail', PARAMETERS = { - "credentials_file": "/mindsdb/mindsdb/integrations/handlers/gmail_handler/client_secret.json" +PARAMETERS = { + "credentials_file": "/mindsdb/mindsdb/integrations/handlers/gmail_handler/client_secret.json", "scopes": ['https://.../gmail.compose', 'https://.../gmail.readonly'] }; +}; ``` When prompted, sign in with the Google account you added to the `Test users` in your app and you are good to go. From 651b7334687c32585f84336653d89bd58376dc7a Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 2 Jun 2025 19:38:10 +0200 Subject: [PATCH 3/4] fix: indent --- mindsdb-mcp/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mindsdb-mcp/README.md b/mindsdb-mcp/README.md index db1438e84..e01067fdb 100644 --- a/mindsdb-mcp/README.md +++ b/mindsdb-mcp/README.md @@ -224,9 +224,9 @@ PARAMETERS = { - The JSON file can be placed into the container filesystem via [cat+EOF-pasting](https://stackoverflow.com/a/21549836) or via mounting it on container launch ```sh docker run -it \ - -v /Users/my.name/Downloads/downloaded_creds.json:/mindsdb/mindsdb/integrations/handlers/gmail_handler/client_secret.json \ - -p 47334:47334 -p 47335:47335 \ - mindsdb/mindsdb + -v /Users/my.name/Downloads/downloaded_creds.json:/mindsdb/mindsdb/integrations/handlers/gmail_handler/client_secret.json \ + -p 47334:47334 -p 47335:47335 \ + mindsdb/mindsdb ``` 5. Add user authentication: From 1301099905ba0e3406d0ecee380f600807370f3e Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 3 Jun 2025 11:51:27 +0200 Subject: [PATCH 4/4] fix: duplication --- mindsdb-mcp/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindsdb-mcp/README.md b/mindsdb-mcp/README.md index e01067fdb..0c6e71c88 100644 --- a/mindsdb-mcp/README.md +++ b/mindsdb-mcp/README.md @@ -241,15 +241,15 @@ Go to the MindsDB editor running locally at `127.0.0.1:47334` and run the follow ```SQL CREATE DATABASE mindsdb_gmail WITH ENGINE = 'gmail', -PARAMETERS = { PARAMETERS = { "credentials_file": "/mindsdb/mindsdb/integrations/handlers/gmail_handler/client_secret.json", "scopes": ['https://.../gmail.compose', 'https://.../gmail.readonly'] }; -}; ``` When prompted, sign in with the Google account you added to the `Test users` in your app and you are good to go. +Note that in some cases, scoped will need to be set to `"scopes": ['https://www.googleapis.com/auth/gmail.readonly', +'https://www.googleapis.com/auth/gmail.compose']` or can be entirely ommitted. ### 🐙 GitHub