You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: clarify the Annotated base_url parameter docstrings across mcp modules (collection, dataset, dataverse, file, search) to state that the MCP server's connected dataverse is used by default. Add DataverseMCP.base_url and base_url_instructions properties and include the base_url_instructions text in multiple tool descriptions so tools explicitly inform users which dataverse the MCP is connected to and how to override it. Also tighten dependency version bounds in pyproject.toml for several optional mcp-related packages.
description="Get metrics from the dataverse in total and for the past 7 days. This tool returns the metrics of the dataverse in a TOON format.",
133
+
description=f"Get metrics from the dataverse in total and for the past 7 days. This tool returns the metrics of the dataverse in a TOON format.{self.base_url_instructions}",
The available metadata blocks are: {", ".join(available_metadatablocks)}.
143
157
If you do not specify the metadata blocks, the function will return all metadata blocks.
144
158
To save tokens and compute resources, you should first request the dataset without the `full` flag to get the available metadata blocks and then request the dataset with the `full` flag and the metadata blocks you want to see.
159
+
160
+
{self.base_url_instructions}
145
161
""".strip(),
146
162
)
147
163
148
164
mcp.tool(
149
165
list_files,
150
166
name="List_Files_in_Dataset",
151
167
enabled="read"inself.config.dataset,
152
-
description="List the files in a dataset. This tool returns the files in a TOON format.",
168
+
description=f"List the files in a dataset. This tool returns the files in a TOON format.{self.base_url_instructions}",
0 commit comments