Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions analytics_mcp/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
server using `@mcp.tool` annotations, thereby 'coordinating' the bootstrapping
of the server.
"""

from mcp.server.fastmcp import FastMCP

# Creates the singleton.
Expand Down
14 changes: 4 additions & 10 deletions analytics_mcp/tools/reporting/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ def get_metric_filter_hints():
expressions=[event_count_gt_10_filter, revenue_between_filter]
)
)
return (
f"""Example metric_filter arguments:
return f"""Example metric_filter arguments:
1. A simple filter:
{proto_to_json(event_count_gt_10_filter)}

Expand All @@ -172,9 +171,7 @@ def get_metric_filter_hints():
5. An OR group filter:
{proto_to_json(or_filter)}

"""
+ _FILTER_NOTES
)
""" + _FILTER_NOTES


def get_dimension_filter_hints():
Expand Down Expand Up @@ -222,8 +219,7 @@ def get_dimension_filter_hints():
expressions=[source_medium_filter, event_list_filter]
)
)
return (
f"""Example dimension_filter arguments:
return f"""Example dimension_filter arguments:
1. A simple filter:
{proto_to_json(begins_with)}

Expand All @@ -239,9 +235,7 @@ def get_dimension_filter_hints():
5. An OR group filter:
{proto_to_json(or_filter)}

"""
+ _FILTER_NOTES
)
""" + _FILTER_NOTES


def get_order_bys_hints():
Expand Down
2 changes: 1 addition & 1 deletion analytics_mcp/tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _get_package_version_with_fallback():

def _create_credentials() -> google.auth.credentials.Credentials:
"""Returns Application Default Credentials with read-only scope."""
(credentials, _) = google.auth.default(scopes=[_READ_ONLY_ANALYTICS_SCOPE])
credentials, _ = google.auth.default(scopes=[_READ_ONLY_ANALYTICS_SCOPE])
return credentials


Expand Down