Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarkusPfundstein/mcp-gsuite
/ functions
Functions
81 in github.com/MarkusPfundstein/mcp-gsuite
⨍
Functions
81
◇
Types & classes
21
↓ 12 callers
Function
add_tool_handler
(tool_class: toolhandler.ToolHandler)
src/mcp_gsuite/server.py:104
↓ 12 callers
Method
get_user_id_arg_schema
(self)
src/mcp_gsuite/toolhandler.py:26
↓ 7 callers
Method
__init__
(self)
src/mcp_gsuite/tools_gmail.py:290
↓ 3 callers
Method
__init__
(self)
src/mcp_gsuite/tools_calendar.py:27
↓ 3 callers
Function
get_calendar_id_arg_schema
()
src/mcp_gsuite/tools_calendar.py:16
↓ 3 callers
Method
get_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 callers
Function
_get_credential_filename
(user_id: str)
src/mcp_gsuite/gauth.py:109
↓ 2 callers
Method
_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 callers
Function
decode_base64_data
(file_data)
src/mcp_gsuite/tools_gmail.py:14
↓ 2 callers
Method
get_account_descriptions
(self)
src/mcp_gsuite/toolhandler.py:17
↓ 2 callers
Method
get_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 callers
Function
get_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 callers
Method
_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 callers
Method
create_draft
Create a draft email message. Args: to (str): Email address of the recipient subject (str): Subject
src/mcp_gsuite/gmail.py:233
↓ 1 callers
Method
create_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 callers
Method
create_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 callers
Method
delete_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 callers
Method
delete_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 callers
Function
exchange_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 callers
Function
get_accounts_file
()
src/mcp_gsuite/gauth.py:53
↓ 1 callers
Function
get_credentials_dir
()
src/mcp_gsuite/gauth.py:97
↓ 1 callers
Method
get_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 callers
Function
get_gauth_file
()
src/mcp_gsuite/gauth.py:17
↓ 1 callers
Function
get_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 callers
Method
get_tool_description
(self)
src/mcp_gsuite/toolhandler.py:32
↓ 1 callers
Function
get_tool_handler
(name: str)
src/mcp_gsuite/server.py:109
↓ 1 callers
Function
get_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 callers
Method
list_calendars
Lists all calendars accessible by the user. Returns: list: List of calendar objects with their metadata
src/mcp_gsuite/calendar.py:15
↓ 1 callers
Method
query_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 callers
Method
run_tool
(self, args: dict)
src/mcp_gsuite/toolhandler.py:35
↓ 1 callers
Function
setup_oauth2
(user_id: str)
src/mcp_gsuite/server.py:81
↓ 1 callers
Function
start_auth_flow
(user_id: str)
src/mcp_gsuite/server.py:67
↓ 1 callers
Function
store_credentials
Store OAuth 2.0 credentials in the specified directory.
src/mcp_gsuite/gauth.py:139
↓ 1 callers
Method
to_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
Function
call_tool
(name: str, arguments: Any)
src/mcp_gsuite/server.py:137
Method
do_GET
(self)
src/mcp_gsuite/server.py:27
Function
get_account_info
()
src/mcp_gsuite/gauth.py:65
Function
get_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
Method
get_supported_emails_tool_text
(self)
src/mcp_gsuite/toolhandler.py:23
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:25
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:81
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:129
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:184
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:255
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:293
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:375
Method
get_tool_description
(self)
src/mcp_gsuite/tools_gmail.py:460
Method
get_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:30
Method
get_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:63
Method
get_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:123
Method
get_tool_description
(self)
src/mcp_gsuite/tools_calendar.py:207
Function
list_tools
List available tools.
src/mcp_gsuite/server.py:130
Function
main
Main entry point for the package.
src/mcp_gsuite/__init__.py:4
Function
main
()
src/mcp_gsuite/server.py:158
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:59
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:98
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:149
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:220
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:272
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:329
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:408
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_gmail.py:494
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:44
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:97
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:173
Method
run_tool
(self, args: dict)
src/mcp_gsuite/tools_calendar.py:230