universal-mcp 0.1.8rc2__py3-none-any.whl → 0.1.8rc4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. universal_mcp/__init__.py +0 -2
  2. universal_mcp/analytics.py +75 -0
  3. universal_mcp/applications/ahrefs/README.md +76 -0
  4. universal_mcp/applications/ahrefs/__init__.py +0 -0
  5. universal_mcp/applications/ahrefs/app.py +2291 -0
  6. universal_mcp/applications/application.py +94 -5
  7. universal_mcp/applications/calendly/app.py +412 -171
  8. universal_mcp/applications/coda/README.md +133 -0
  9. universal_mcp/applications/coda/__init__.py +0 -0
  10. universal_mcp/applications/coda/app.py +3671 -0
  11. universal_mcp/applications/e2b/app.py +8 -35
  12. universal_mcp/applications/figma/README.md +74 -0
  13. universal_mcp/applications/figma/__init__.py +0 -0
  14. universal_mcp/applications/figma/app.py +1261 -0
  15. universal_mcp/applications/firecrawl/app.py +3 -33
  16. universal_mcp/applications/github/app.py +41 -42
  17. universal_mcp/applications/google_calendar/app.py +20 -31
  18. universal_mcp/applications/google_docs/app.py +21 -46
  19. universal_mcp/applications/google_drive/app.py +53 -76
  20. universal_mcp/applications/google_mail/app.py +40 -56
  21. universal_mcp/applications/google_sheet/app.py +43 -68
  22. universal_mcp/applications/markitdown/app.py +4 -4
  23. universal_mcp/applications/notion/app.py +93 -83
  24. universal_mcp/applications/perplexity/app.py +4 -38
  25. universal_mcp/applications/reddit/app.py +32 -32
  26. universal_mcp/applications/resend/app.py +4 -22
  27. universal_mcp/applications/serpapi/app.py +6 -32
  28. universal_mcp/applications/tavily/app.py +4 -24
  29. universal_mcp/applications/wrike/app.py +565 -237
  30. universal_mcp/applications/youtube/app.py +625 -183
  31. universal_mcp/applications/zenquotes/app.py +3 -3
  32. universal_mcp/exceptions.py +1 -0
  33. universal_mcp/integrations/__init__.py +11 -2
  34. universal_mcp/integrations/agentr.py +27 -4
  35. universal_mcp/integrations/integration.py +14 -6
  36. universal_mcp/logger.py +3 -56
  37. universal_mcp/servers/__init__.py +2 -1
  38. universal_mcp/servers/server.py +73 -77
  39. universal_mcp/stores/store.py +5 -3
  40. universal_mcp/tools/__init__.py +1 -1
  41. universal_mcp/tools/adapters.py +4 -1
  42. universal_mcp/tools/func_metadata.py +5 -6
  43. universal_mcp/tools/tools.py +108 -51
  44. universal_mcp/utils/docgen.py +121 -69
  45. universal_mcp/utils/docstring_parser.py +44 -21
  46. universal_mcp/utils/dump_app_tools.py +33 -23
  47. universal_mcp/utils/installation.py +199 -8
  48. universal_mcp/utils/openapi.py +121 -47
  49. {universal_mcp-0.1.8rc2.dist-info → universal_mcp-0.1.8rc4.dist-info}/METADATA +2 -2
  50. universal_mcp-0.1.8rc4.dist-info/RECORD +81 -0
  51. universal_mcp-0.1.8rc2.dist-info/RECORD +0 -71
  52. {universal_mcp-0.1.8rc2.dist-info → universal_mcp-0.1.8rc4.dist-info}/WHEEL +0 -0
  53. {universal_mcp-0.1.8rc2.dist-info → universal_mcp-0.1.8rc4.dist-info}/entry_points.txt +0 -0
@@ -1,7 +1,6 @@
1
1
  from typing import Annotated
2
2
 
3
3
  from e2b_code_interpreter import Sandbox
4
- from loguru import logger
5
4
 
6
5
  from universal_mcp.applications.application import APIApplication
7
6
  from universal_mcp.integrations import Integration
@@ -15,31 +14,6 @@ class E2BApp(APIApplication):
15
14
 
16
15
  def __init__(self, integration: Integration | None = None) -> None:
17
16
  super().__init__(name="e2b", integration=integration)
18
- self.api_key: str | None = None
19
-
20
- def _set_api_key(self):
21
- if self.api_key:
22
- return
23
-
24
- if not self.integration:
25
- raise ValueError("Integration is None. Cannot retrieve E2B API Key.")
26
-
27
- credentials = self.integration.get_credentials()
28
- if not credentials:
29
- raise ValueError(
30
- f"Invalid credential format received for E2B API Key via integration '{self.integration.name}'. "
31
- )
32
- api_key = (
33
- credentials.get("api_key")
34
- or credentials.get("API_KEY")
35
- or credentials.get("apiKey")
36
- )
37
- if not api_key:
38
- raise ValueError(
39
- f"Invalid credential format received for E2B API Key via integration '{self.integration.name}'. "
40
- )
41
- self.api_key = api_key
42
- logger.info("E2B API Key successfully retrieved via integration.")
43
17
 
44
18
  def _format_execution_output(self, logs) -> str:
45
19
  """Helper function to format the E2B execution logs nicely."""
@@ -60,28 +34,27 @@ class E2BApp(APIApplication):
60
34
  return "\n\n".join(output_parts)
61
35
 
62
36
  def execute_python_code(
63
- self,
64
- code: Annotated[str, "The Python code to execute."]
65
- ) -> str:
37
+ self, code: Annotated[str, "The Python code to execute."]
38
+ ) -> str:
66
39
  """
67
40
  Executes Python code in a sandbox environment and returns the formatted output
68
-
41
+
69
42
  Args:
70
43
  code: String containing the Python code to be executed in the sandbox
71
-
44
+
72
45
  Returns:
73
46
  A string containing the formatted execution output/logs from running the code
74
-
47
+
75
48
  Raises:
76
49
  SandboxError: When there are issues with sandbox initialization or code execution
77
50
  AuthenticationError: When API key authentication fails during sandbox setup
78
51
  ValueError: When provided code string is empty or invalid
79
-
52
+
80
53
  Tags:
81
54
  execute, sandbox, code-execution, security, important
82
55
  """
83
- self._set_api_key()
84
- with Sandbox(api_key=self.api_key) as sandbox:
56
+ api_key = self.integration.get_credentials().get("api_key")
57
+ with Sandbox(api_key=api_key) as sandbox:
85
58
  execution = sandbox.run_code(code=code)
86
59
  result = self._format_execution_output(execution.logs)
87
60
  return result
@@ -0,0 +1,74 @@
1
+
2
+ # Figma MCP Server
3
+
4
+ An MCP Server for the Figma API.
5
+
6
+ ## Supported Integrations
7
+
8
+ - AgentR
9
+ - API Key (Coming Soon)
10
+ - OAuth (Coming Soon)
11
+
12
+ ## Tools
13
+
14
+ This is automatically generated from OpenAPI schema for the Figma API.
15
+
16
+ ## Supported Integrations
17
+
18
+ This tool can be integrated with any service that supports HTTP requests.
19
+
20
+ ## Tool List
21
+
22
+ | Tool | Description |
23
+ |------|-------------|
24
+ | get_file | Retrieves file metadata and content from the API using the specified file key and optional query parameters. |
25
+ | get_file_nodes | Fetches node data for specified IDs from a file, supporting optional filters such as version, depth, geometry, and plugin data. |
26
+ | get_images | Retrieves image assets from a remote service for specified node IDs within a given file, with optional image format and export options. |
27
+ | get_image_fills | Retrieves image fill data for a given file key from the API. |
28
+ | get_team_projects | Retrieves the list of projects associated with a specified team. |
29
+ | get_project_files | Retrieves the list of files associated with a specified project, optionally filtered by branch data. |
30
+ | get_file_versions | Retrieves a paginated list of version history for a specified file. |
31
+ | get_comments | Retrieves comments for a specified file, optionally formatting the output as Markdown. |
32
+ | post_comment | Posts a comment to a specified file. |
33
+ | delete_comment | Deletes a specific comment from a file identified by its key and comment ID. |
34
+ | get_comment_reactions | Retrieves the reactions associated with a specific comment in a file. |
35
+ | post_comment_reaction | Posts a reaction emoji to a specific comment on a file. |
36
+ | delete_comment_reaction | Removes a specific emoji reaction from a comment in a file. |
37
+ | get_me | Retrieves information about the authenticated user from the API. |
38
+ | get_team_components | Retrieves a paginated list of components associated with a specified team. |
39
+ | get_file_components | Retrieves the component information for a specified file from the API. |
40
+ | get_component | Retrieves a component's details by its key from the API. |
41
+ | get_team_component_sets | Retrieves a paginated list of component sets for a specified team. |
42
+ | get_file_component_sets | Retrieves the list of component sets associated with a specific file key. |
43
+ | get_component_set | Retrieves a component set resource by its key from the server. |
44
+ | get_team_styles | Retrieves a list of styles for a specified team, with optional pagination controls. |
45
+ | get_file_styles | Retrieves the style definitions for a specified file from the API. |
46
+ | get_style | Retrieves a style resource identified by the given key from the API. |
47
+ | post_webhook | Registers a new webhook for a specified event type and team. |
48
+ | get_webhook | Retrieves the details of a specific webhook by its unique identifier. |
49
+ | put_webhook | Update an existing webhook's configuration with new settings such as event type, endpoint, passcode, status, or description. |
50
+ | delete_webhook | Deletes a webhook with the specified webhook ID. |
51
+ | get_team_webhooks | Retrieves the list of webhooks configured for a given team. |
52
+ | get_webhook_requests | Retrieves the list of requests for a specified webhook. |
53
+ | get_activity_logs | Retrieves activity logs from the API with optional filters for events, time range, limit, and order. |
54
+ | get_payments | Retrieves a list of payments based on the provided filter criteria. |
55
+ | get_local_variables | Retrieves the local variables associated with a specific file identified by file_key. |
56
+ | get_published_variables | Retrieves the published variables associated with a specified file key from the server. |
57
+ | post_variables | Posts or updates variable data for a specified file by sending a POST request to the variables endpoint. |
58
+ | get_dev_resources | Retrieves development resources for a specific file. |
59
+ | post_dev_resources | Submits developer resources to the API and returns the parsed JSON response. |
60
+ | put_dev_resources | Updates the development resources by sending a PUT request to the dev_resources endpoint. |
61
+ | delete_dev_resource | Deletes a specific development resource associated with a file. |
62
+
63
+
64
+
65
+ ## Usage
66
+
67
+ - Login to AgentR
68
+ - Follow the quickstart guide to setup MCP Server for your client
69
+ - Visit Apps Store and enable the Figma app
70
+ - Restart the MCP Server
71
+
72
+ ### Local Development
73
+
74
+ - Follow the README to test with the local MCP Server
File without changes