MCPcopy Create free account

hub / github.com/MarkusPfundstein/mcp-gsuite / functions

Functions81 in github.com/MarkusPfundstein/mcp-gsuite

↓ 12 callersFunctionadd_tool_handler
(tool_class: toolhandler.ToolHandler)
src/mcp_gsuite/server.py:104
↓ 12 callersMethodget_user_id_arg_schema
(self)
src/mcp_gsuite/toolhandler.py:26
↓ 7 callersMethod__init__
(self)
src/mcp_gsuite/tools_gmail.py:290
↓ 3 callersMethod__init__
(self)
src/mcp_gsuite/tools_calendar.py:27
↓ 3 callersFunctionget_calendar_id_arg_schema
()
src/mcp_gsuite/tools_calendar.py:16
↓ 3 callersMethodget_email_by_id_with_attachments
Fetch and parse a complete email message by its ID including attachment IDs. Args: email_id (str): The Gmail mes
src/mcp_gsuite/gmail.py:174
↓ 2 callersFunction_get_credential_filename
(user_id: str)
src/mcp_gsuite/gauth.py:109
↓ 2 callersMethod_parse_message
Parse a Gmail message into a structured format. Args: txt (dict): Raw message from Gmail API parse_b
src/mcp_gsuite/gmail.py:17
↓ 2 callersFunctiondecode_base64_data
(file_data)
src/mcp_gsuite/tools_gmail.py:14
↓ 2 callersMethodget_account_descriptions
(self)
src/mcp_gsuite/toolhandler.py:17
↓ 2 callersMethodget_attachment
Retrieves a Gmail attachment by its ID. Args: message_id (str): The ID of the Gmail message containing the attac
src/mcp_gsuite/gmail.py:378
↓ 2 callersFunctionget_authorization_url
Retrieve the authorization URL. Args: email_address: User's e-mail address. state: State for the authorization URL. Returns: Auth
src/mcp_gsuite/gauth.py:193
↓ 1 callersMethod_extract_body
Extract the email body from the payload. Handles both multipart and single part messages, including nested multiparts.
src/mcp_gsuite/gmail.py:84
↓ 1 callersMethodcreate_draft
Create a draft email message. Args: to (str): Email address of the recipient subject (str): Subject
src/mcp_gsuite/gmail.py:233
↓ 1 callersMethodcreate_event
Create a new calendar event. Args: summary (str): Title of the event start_time (str): Start time in
src/mcp_gsuite/calendar.py:113
↓ 1 callersMethodcreate_reply
Create a reply to an email message and either send it or save as draft. Args: original_message (dict): The origi
src/mcp_gsuite/gmail.py:306
↓ 1 callersMethoddelete_draft
Delete a draft email message. Args: draft_id (str): The ID of the draft to delete Returns:
src/mcp_gsuite/gmail.py:284
↓ 1 callersMethoddelete_event
Delete a calendar event by its ID. Args: event_id (str): The ID of the event to delete send_notifica
src/mcp_gsuite/calendar.py:170
↓ 1 callersFunctionexchange_code
Exchange an authorization code for OAuth 2.0 credentials. Args: authorization_code: Authorization code to exchange for OAuth 2.0
src/mcp_gsuite/gauth.py:149
↓ 1 callersFunctionget_accounts_file
()
src/mcp_gsuite/gauth.py:53
↓ 1 callersFunctionget_credentials_dir
()
src/mcp_gsuite/gauth.py:97
↓ 1 callersMethodget_events
Retrieve calendar events within a specified time range. Args: time_min (str, optional): Start time in RFC3339 fo
src/mcp_gsuite/calendar.py:45
↓ 1 callersFunctionget_gauth_file
()
src/mcp_gsuite/gauth.py:17
↓ 1 callersFunctionget_stored_credentials
Retrieved stored credentials for the provided user ID. Args: user_id: User's ID. Returns: Stored oauth2client.client.OAuth2Credential
src/mcp_gsuite/gauth.py:114
↓ 1 callersMethodget_tool_description
(self)
src/mcp_gsuite/toolhandler.py:32
↓ 1 callersFunctionget_tool_handler
(name: str)
src/mcp_gsuite/server.py:109
↓ 1 callersFunctionget_user_info
Send a request to the UserInfo API to retrieve the user's information. Args: credentials: oauth2client.client.OAuth2Credentials instance to a
src/mcp_gsuite/gauth.py:170
↓ 1 callersMethodlist_calendars
Lists all calendars accessible by the user. Returns: list: List of calendar objects with their metadata
src/mcp_gsuite/calendar.py:15
↓ 1 callersMethodquery_emails
Query emails from Gmail based on a search query. Args: query (str, optional): Gmail search query (e.g., 'is:unre
src/mcp_gsuite/gmail.py:131
↓ 1 callersMethodrun_tool
(self, args: dict)
src/mcp_gsuite/toolhandler.py:35
↓ 1 callersFunctionsetup_oauth2
(user_id: str)
src/mcp_gsuite/server.py:81
↓ 1 callersFunctionstart_auth_flow
(user_id: str)
src/mcp_gsuite/server.py:67
↓ 1 callersFunctionstore_credentials
Store OAuth 2.0 credentials in the specified directory.
src/mcp_gsuite/gauth.py:139
↓ 1 callersMethodto_description
(self)
src/mcp_gsuite/gauth.py:49
Method__init__
(self, user_id: str)
src/mcp_gsuite/calendar.py:9
Method__init__
(self, email: str, account_type: str, extra_info: str = "")
src/mcp_gsuite/gauth.py:46
Method__init__
Construct a GetCredentialsException.
src/mcp_gsuite/gauth.py:80
Method__init__
(self)
src/mcp_gsuite/tools_gmail.py:22
Method__init__
(self)
src/mcp_gsuite/tools_gmail.py:78
Method__init__
(self)
src/mcp_gsuite/tools_gmail.py:126
Method__init__
(self)
src/mcp_gsuite/tools_gmail.py:181
Method__init__
(self)
src/mcp_gsuite/tools_gmail.py:252
Method__init__
(self)
src/mcp_gsuite/tools_gmail.py:372
Method__init__
(self)
src/mcp_gsuite/tools_gmail.py:457
Method__init__
(self)
src/mcp_gsuite/tools_calendar.py:60
Method__init__
(self)
src/mcp_gsuite/tools_calendar.py:120
Method__init__
(self)
src/mcp_gsuite/tools_calendar.py:204
Method__init__
(self, user_id: str)
src/mcp_gsuite/gmail.py:11
Method__init__
(self, tool_name: str)
src/mcp_gsuite/toolhandler.py:14
Functioncall_tool
(name: str, arguments: Any)
src/mcp_gsuite/server.py:137
Methoddo_GET
(self)
src/mcp_gsuite/server.py:27
Functionget_account_info
()
src/mcp_gsuite/gauth.py:65
Functionget_credentials
Retrieve credentials using the provided authorization code. This function exchanges the authorization code for an access token and queries th
src/mcp_gsuite/gauth.py:210
Methodget_supported_emails_tool_text
(self)
src/mcp_gsuite/toolhandler.py:23
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:25
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:81
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:129
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:184
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:255
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:293
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:375
Methodget_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:460
Methodget_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:30
Methodget_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:63
Methodget_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:123
Methodget_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:207
Functionlist_tools
List available tools.
src/mcp_gsuite/server.py:130
Functionmain
Main entry point for the package.
src/mcp_gsuite/__init__.py:4
Functionmain
()
src/mcp_gsuite/server.py:158
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:59
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:98
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:149
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:220
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:272
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:329
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:408
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:494
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:44
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:97
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:173
Methodrun_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:230