Skip to content
Closed
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
7 changes: 6 additions & 1 deletion modelcontextprotocol/tools/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,14 @@ def query_asset(
client = get_atlan_client()

# Build query request
# Prepend an MCP origin comment so queries are identifiable in
# downstream observability logs (e.g. Heka's db.statement OTEL field).
# QueryRequest has no application/source field, so a SQL comment is
# the only portable way to tag origin without SDK changes.
logger.debug("Building QueryRequest object")
tagged_sql = f"/* atlan-mcp */ {sql.strip()}"
query_request = QueryRequest(
sql=sql,
sql=tagged_sql,
data_source_name=connection_qualified_name,
default_schema=default_schema,
)
Expand Down
Loading