Skip to content

Adding metadata_source tag to calls to Python client library for usage logs#86

Merged
lucyking140 merged 17 commits intodatacommonsorg:mainfrom
lucyking140:lucysking/mcp-metadata
Oct 17, 2025
Merged

Adding metadata_source tag to calls to Python client library for usage logs#86
lucyking140 merged 17 commits intodatacommonsorg:mainfrom
lucyking140:lucysking/mcp-metadata

Conversation

@lucyking140
Copy link
Copy Markdown
Contributor

@lucyking140 lucyking140 commented Sep 20, 2025

Passes the "mcp-{version}" flag every time a call is made to fetch from the datacommons-client observation endpoint. This is used to identify queries that originate in the MCP server in Mixer's usage logs.

Updated tests to reflect this new parameter passed into the client.

Also updates the datacommons-client package version to 2.1.2 so that the surface header is included.

@lucyking140 lucyking140 changed the title Lucysking/mcp metadata Adding metadata_source tag to calls to Python client library for usage logs Sep 20, 2025
@lucyking140 lucyking140 marked this pull request as ready for review October 14, 2025 14:17
Copy link
Copy Markdown
Contributor

@keyurva keyurva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Lucy!

If possible, can you add the header to the search-indicators call as well in a follow up PR?

@lucyking140 lucyking140 merged commit eeae1b6 into datacommonsorg:main Oct 17, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants