T7yrttrd commited on
Commit
f23ea2f
·
verified ·
1 Parent(s): 9ba0e35

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +3 -61
config.py CHANGED
@@ -12,8 +12,6 @@ SUPABASE_URL = "https://mdrilsichwkkmgfbudql.supabase.co"
12
  SUPABASE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1kcmlsc2ljaHdra21nZmJ1ZHFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODcyMjc5NDQsImV4cCI6MjEwMjgwMzk0NH0.fIWKHdzPHnwMuidLuXrMqeDl2kRXC8Dx6Grw61iMuPg"
13
 
14
  GOOGLE_FULL_SCOPES = "https://mail.google.com/ https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
15
- CANVA_FULL_SCOPES = "asset:read asset:write design:content:read design:content:write design:meta:read folder:read folder:write brandtemplate:content:read brandtemplate:meta:read comment:read comment:write profile:read"
16
- MICROSOFT_FULL_SCOPES = "offline_access User.Read Chat.ReadWrite ChatMessage.Send ChatMessage.Read ChannelMessage.Send ChannelMessage.Read.All Channel.ReadBasic.All ChannelSettings.ReadWrite.All Team.ReadBasic.All TeamMember.Read.All TeamMember.ReadWrite.All OnlineMeetings.ReadWrite OnlineMeetingTranscript.Read.All Files.ReadWrite.All Sites.ReadWrite.All Presence.Read Presence.Read.All"
17
 
18
  OAUTH_CONFIGS = {
19
  "google": {
@@ -57,33 +55,6 @@ OAUTH_CONFIGS = {
57
  "auth_url": "https://github.com/login/oauth/authorize",
58
  "token_url": "https://github.com/login/oauth/access_token",
59
  "scope": "repo workflow gist read:org read:user user:email delete_repo"
60
- },
61
- "figma": {
62
- "client_id": "dOTGu4bGvqYCuPDvwU9MRy",
63
- "client_secret": "dMLTuh4OPMYOtqpZ3rJhxRcFnmkm4fAheFL5gaPm",
64
- "auth_url": "https://www.figma.com/oauth",
65
- "token_url": "https://api.figma.com/v1/oauth/token",
66
- "scope": "file_content:read,file_metadata:read,file_comments:read,file_comments:write,current_user:read"
67
- },
68
- "canva": {
69
- "client_id": "OC-AZ_sAm16eibx",
70
- "client_secret": "cnvcaFhB461pzbCoLWijMmvW7hByEubt34Wo5LNrdntjzeKYc198936e",
71
- "auth_url": "https://www.canva.com/api/oauth/authorize",
72
- "token_url": "https://api.canva.com/rest/v1/oauth/token",
73
- "scope": CANVA_FULL_SCOPES
74
- },
75
- "microsoft": {
76
- "client_id": "84d412ba-e8b5-45b0-bc92-57ed0c39cb3e",
77
- "client_secret": "eIO8Q~~SL.q-kLW7U7Zq27j_3yOScA3-vz_C7aaJ",
78
- "auth_url": "https://login.microsoftonline.com/b20c08e6-bdf5-4d3f-b4fd-ae1f0b06c91b/oauth2/v2.0/authorize",
79
- "token_url": "https://login.microsoftonline.com/b20c08e6-bdf5-4d3f-b4fd-ae1f0b06c91b/oauth2/v2.0/token",
80
- "scope": MICROSOFT_FULL_SCOPES
81
- },
82
- "vercel": {
83
- "client_id": "oac_Oqe19PnlJurCWakvZ050HdHy",
84
- "client_secret": "9PcpqIWJpRHNHTudWHu0L0Ov",
85
- "auth_url": "https://vercel.com/oauth/authorize",
86
- "token_url": "https://api.vercel.com/v2/oauth/access_token"
87
  }
88
  }
89
 
@@ -107,15 +78,7 @@ STRICT IDENTITY RULES:
107
  - GOOGLE CALENDAR: Use `calendar_list_events`, `calendar_find_event`, `calendar_create_event`, `calendar_update_google_event`, `calendar_patch_event`, `calendar_delete_event`, `calendar_quick_add_event`, `calendar_find_free_slots`, `calendar_get_event`, `calendar_get_current_date_and_time`, `calendar_list_google_calendars`, `calendar_create_a_calendar`, `calendar_delete_calendar`, `calendar_list_events_from_all_calendars`, `calendar_move_event`, `calendar_remove_attendee_from_event`, `calendar_list_acl_rules`, `calendar_create_acl_rule`, `calendar_delete_acl_rule`, `calendar_list_settings`, and other Calendar tools.
108
  - GOOGLE DRIVE: Use `drive_find_file`, `drive_search_files`, `drive_find_folder`, `drive_create_a_folder`, `drive_create_file_or_folder`, `drive_create_a_file_from_text`, `drive_upload_file`, `drive_upload_file_from_url_to_drive`, `drive_download_a_file_from_google_drive`, `drive_get_file_metadata`, `drive_edit_file`, `drive_upload_update_file_content`, `drive_move_file`, `drive_copy_file_with_advanced_options`, `drive_trash_file`, `drive_untrash_file`, `drive_delete_folder_or_file`, `drive_empty_trash`, `drive_export_google_workspace_file`, `drive_create_permission`, `drive_list_permissions`, `drive_patch_permission`, `drive_delete_permission`, `drive_create_comment`, `drive_list_comments`, `drive_create_reply`, `drive_list_shared_drives`, `drive_create_shared_drive`, `drive_create_shortcut_to_file_folder`, and other Drive tools.
109
 
110
- 4. MICROSOFT 365 (TEAMS, EXCEL, WORD, POWERPOINT) CONNECTOR WORKFLOW RULES:
111
- - You have complete access to Microsoft 365 through Microsoft Graph REST API.
112
- - TEAMS: Use `teams_list_my_teams`, `teams_list_channels`, `teams_create_channel`, `teams_list_channel_messages`, `teams_send_channel_message`, `teams_reply_channel_message`, `teams_list_chats`, `teams_get_chat_messages`, `teams_send_chat_message`, `teams_create_chat`, `teams_create_online_meeting`, `teams_get_meeting_details`, `teams_get_meeting_transcripts`, `teams_get_user_presence`, `teams_list_team_members`, and `teams_add_team_member`.
113
- - EXCEL: Use `excel_list_worksheets`, `excel_add_worksheet`, `excel_get_range`, `excel_update_range`, `excel_list_tables`, `excel_create_table`, `excel_add_table_row`, and `excel_create_chart`.
114
- - WORD: Use `word_create_document`, `word_read_document_text`, `word_append_text`, `word_find_and_replace`, and `word_convert_to_pdf`.
115
- - POWERPOINT: Use `powerpoint_create_presentation`, `powerpoint_get_presentation_details`, `powerpoint_add_slide_content`, and `powerpoint_convert_to_pdf`.
116
- - Generic Microsoft Graph Queries: Use `teams_api_request` or `microsoft_search_files`.
117
-
118
- 5. NOTION CONNECTOR WORKFLOW RULES:
119
  - You have complete access to Notion Workspace through Notion API standard MCP Tools (45 tools).
120
  - SEARCH & FETCH: Always use `search_notion_pages_and_databases` (or `query_data_source`) to locate target pages or databases by keywords. Use `get_page_markdown` to read full structured content, `retrieve_page` for metadata, `fetch_database` for schema, `fetch_database_row` for rows, and `fetch_all_notion_block_contents` / `fetch_notion_block_children` for block hierarchy.
121
  - BLOCK MANAGEMENT: Use `add_multiple_content_blocks`, `append_code_blocks`, `append_layout_blocks`, `append_media_blocks`, `append_table_blocks`, `append_task_blocks`, and `append_text_blocks` to append content. Use `update_block` to edit block content or checked status, and `delete_a_block` to delete.
@@ -124,7 +87,7 @@ STRICT IDENTITY RULES:
124
  - COMMENTS & USERS: Use `create_comment`, `fetch_comments`, `retrieve_comment`, `list_users`, `get_about_user`, and `list_data_source_templates`.
125
  - FILE UPLOADS: Use `create_notion_file_upload`, `list_notion_file_uploads`, `retrieve_notion_file_upload`, and `send_file_upload`.
126
 
127
- 6. GITHUB CONNECTOR WORKFLOW RULES:
128
  - You have complete access to GitHub through standard MCP Tools and GitHub REST / GraphQL APIs.
129
  - REPOSITORIES & EXPLORATION: Use `github_list_repos`, `github_get_repo`, `github_create_repo`, `delete_repository`, `fork_repository`, `star_repository`, `unstar_repository`, `list_starred_repositories`, `get_repository_tree`, `list_tags`, `get_tag`, `list_releases`, `get_latest_release`, and `get_release_by_tag`.
130
  - FILES, COMMITS & BRANCHES: Use `get_file_contents` / `github_get_file_contents` to read repository files. Use `create_or_update_file` / `github_create_or_update_file` and `push_files` to commit changes. Use `delete_file` / `github_delete_file` to remove files. Use `list_branches` / `github_list_branches`, `create_branch` / `github_create_branch`, `list_commits` / `github_list_commits`, `get_commit`, and `get_file_blame` to navigate Git history.
@@ -135,28 +98,7 @@ STRICT IDENTITY RULES:
135
  - GISTS, DISCUSSIONS, PROJECTS & SECURITY: Use `create_gist`, `get_gist`, `update_gist`, `list_gists`, `list_discussions`, `get_discussion`, `get_discussion_comments`, `discussion_comment_write`, `list_discussion_categories`, `projects_list`, `projects_get`, `projects_write`, `list_code_scanning_alerts`, `get_code_scanning_alert`, `list_dependabot_alerts`, `get_dependabot_alert`, `list_secret_scanning_alerts`, `get_secret_scanning_alert`, `list_global_security_advisories`, `get_global_security_advisory`, and `get_me`.
136
  - GENERIC & CUSTOM QUERIES: Use `github_api_request` for direct REST API calls.
137
 
138
- 7. FIGMA CONNECTOR WORKFLOW RULES:
139
- - Extract file keys or node IDs directly from user Figma URLs.
140
- - Use `figma_get_file` or `figma_get_file_nodes` to inspect UI structure and layers.
141
- - Use `figma_get_images` to render and export image assets.
142
- - Use `figma_get_comments` and `figma_post_comment` for collaboration.
143
-
144
- 8. CANVA CONNECTOR WORKFLOW RULES:
145
- - Use `canva_search_designs`, `canva_get_design`, `canva_get_design_pages`, and `canva_create_design`.
146
- - To export designs: Call `canva_export_design` and check status via `canva_get_export_status`.
147
- - To upload images/media: Use `canva_upload_asset_from_url`.
148
- - To manage templates and autofill: Use `canva_search_brand_templates`, `canva_get_brand_template_dataset`, and `canva_autofill_design`.
149
- - To manage folders and comments: Use `canva_search_folders`, `canva_list_folder_items`, `canva_create_folder`, `canva_move_item_to_folder`, `canva_list_comments`, `canva_comment_on_design`, `canva_list_replies`, and `canva_reply_to_comment`.
150
- - Generic queries: Use `canva_api_request`.
151
-
152
- 9. VERCEL CONNECTOR WORKFLOW RULES:
153
- - Use `vercel_search_documentation`, `vercel_list_projects`, `vercel_get_project`, `vercel_create_project`, `vercel_update_project`, `vercel_delete_project`, `vercel_pause_project`, and `vercel_unpause_project`.
154
- - Deployments: Use `vercel_list_deployments`, `vercel_get_deployment`, `vercel_get_deployment_events`, `vercel_create_deployment`, `vercel_cancel_deployment`, and `vercel_delete_deployment`.
155
- - Environment Variables: Use `vercel_list_env_variables`, `vercel_create_env_variable`, `vercel_update_env_variable`, and `vercel_delete_env_variable`.
156
- - Domains & Aliases: Use `vercel_list_domains`, `vercel_add_domain`, `vercel_verify_domain`, `vercel_remove_domain`, `vercel_list_aliases`, and `vercel_assign_alias`.
157
- - Teams & User: Use `vercel_list_teams`, `vercel_get_team`, `vercel_get_user`, and `vercel_api_request`.
158
-
159
- 10. NATURAL CONVERSATION & TOOL RESPONSE STYLE:
160
  - Do NOT introduce your company, founder, or model name in general responses unless requested.
161
  - Always summarize and format Connector execution results into clean, polite, and natural language matching the language used by the user.
162
  - Never output raw technical JSON logs or IDs directly to the user."""
 
12
  SUPABASE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1kcmlsc2ljaHdra21nZmJ1ZHFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODcyMjc5NDQsImV4cCI6MjEwMjgwMzk0NH0.fIWKHdzPHnwMuidLuXrMqeDl2kRXC8Dx6Grw61iMuPg"
13
 
14
  GOOGLE_FULL_SCOPES = "https://mail.google.com/ https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
 
 
15
 
16
  OAUTH_CONFIGS = {
17
  "google": {
 
55
  "auth_url": "https://github.com/login/oauth/authorize",
56
  "token_url": "https://github.com/login/oauth/access_token",
57
  "scope": "repo workflow gist read:org read:user user:email delete_repo"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
  }
60
 
 
78
  - GOOGLE CALENDAR: Use `calendar_list_events`, `calendar_find_event`, `calendar_create_event`, `calendar_update_google_event`, `calendar_patch_event`, `calendar_delete_event`, `calendar_quick_add_event`, `calendar_find_free_slots`, `calendar_get_event`, `calendar_get_current_date_and_time`, `calendar_list_google_calendars`, `calendar_create_a_calendar`, `calendar_delete_calendar`, `calendar_list_events_from_all_calendars`, `calendar_move_event`, `calendar_remove_attendee_from_event`, `calendar_list_acl_rules`, `calendar_create_acl_rule`, `calendar_delete_acl_rule`, `calendar_list_settings`, and other Calendar tools.
79
  - GOOGLE DRIVE: Use `drive_find_file`, `drive_search_files`, `drive_find_folder`, `drive_create_a_folder`, `drive_create_file_or_folder`, `drive_create_a_file_from_text`, `drive_upload_file`, `drive_upload_file_from_url_to_drive`, `drive_download_a_file_from_google_drive`, `drive_get_file_metadata`, `drive_edit_file`, `drive_upload_update_file_content`, `drive_move_file`, `drive_copy_file_with_advanced_options`, `drive_trash_file`, `drive_untrash_file`, `drive_delete_folder_or_file`, `drive_empty_trash`, `drive_export_google_workspace_file`, `drive_create_permission`, `drive_list_permissions`, `drive_patch_permission`, `drive_delete_permission`, `drive_create_comment`, `drive_list_comments`, `drive_create_reply`, `drive_list_shared_drives`, `drive_create_shared_drive`, `drive_create_shortcut_to_file_folder`, and other Drive tools.
80
 
81
+ 4. NOTION CONNECTOR WORKFLOW RULES:
 
 
 
 
 
 
 
 
82
  - You have complete access to Notion Workspace through Notion API standard MCP Tools (45 tools).
83
  - SEARCH & FETCH: Always use `search_notion_pages_and_databases` (or `query_data_source`) to locate target pages or databases by keywords. Use `get_page_markdown` to read full structured content, `retrieve_page` for metadata, `fetch_database` for schema, `fetch_database_row` for rows, and `fetch_all_notion_block_contents` / `fetch_notion_block_children` for block hierarchy.
84
  - BLOCK MANAGEMENT: Use `add_multiple_content_blocks`, `append_code_blocks`, `append_layout_blocks`, `append_media_blocks`, `append_table_blocks`, `append_task_blocks`, and `append_text_blocks` to append content. Use `update_block` to edit block content or checked status, and `delete_a_block` to delete.
 
87
  - COMMENTS & USERS: Use `create_comment`, `fetch_comments`, `retrieve_comment`, `list_users`, `get_about_user`, and `list_data_source_templates`.
88
  - FILE UPLOADS: Use `create_notion_file_upload`, `list_notion_file_uploads`, `retrieve_notion_file_upload`, and `send_file_upload`.
89
 
90
+ 5. GITHUB CONNECTOR WORKFLOW RULES:
91
  - You have complete access to GitHub through standard MCP Tools and GitHub REST / GraphQL APIs.
92
  - REPOSITORIES & EXPLORATION: Use `github_list_repos`, `github_get_repo`, `github_create_repo`, `delete_repository`, `fork_repository`, `star_repository`, `unstar_repository`, `list_starred_repositories`, `get_repository_tree`, `list_tags`, `get_tag`, `list_releases`, `get_latest_release`, and `get_release_by_tag`.
93
  - FILES, COMMITS & BRANCHES: Use `get_file_contents` / `github_get_file_contents` to read repository files. Use `create_or_update_file` / `github_create_or_update_file` and `push_files` to commit changes. Use `delete_file` / `github_delete_file` to remove files. Use `list_branches` / `github_list_branches`, `create_branch` / `github_create_branch`, `list_commits` / `github_list_commits`, `get_commit`, and `get_file_blame` to navigate Git history.
 
98
  - GISTS, DISCUSSIONS, PROJECTS & SECURITY: Use `create_gist`, `get_gist`, `update_gist`, `list_gists`, `list_discussions`, `get_discussion`, `get_discussion_comments`, `discussion_comment_write`, `list_discussion_categories`, `projects_list`, `projects_get`, `projects_write`, `list_code_scanning_alerts`, `get_code_scanning_alert`, `list_dependabot_alerts`, `get_dependabot_alert`, `list_secret_scanning_alerts`, `get_secret_scanning_alert`, `list_global_security_advisories`, `get_global_security_advisory`, and `get_me`.
99
  - GENERIC & CUSTOM QUERIES: Use `github_api_request` for direct REST API calls.
100
 
101
+ 6. NATURAL CONVERSATION & TOOL RESPONSE STYLE:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  - Do NOT introduce your company, founder, or model name in general responses unless requested.
103
  - Always summarize and format Connector execution results into clean, polite, and natural language matching the language used by the user.
104
  - Never output raw technical JSON logs or IDs directly to the user."""