Skip to content

Commit d165d9e

Browse files
authored
Merge branch 'datacommonsorg:master' into master
2 parents 735db87 + f90dc35 commit d165d9e

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

mcp/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ At this time, there is no centrally deployed server; you run your own server, an
2323

2424
![alt text](/assets/images/mcp.png)
2525

26+
You can run the server and client locally, or you can run the server and client on different machines.
27+
2628
## Tools
2729

2830
The server currently supports the following tools:

mcp/run_tools.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ To configure Gemini CLI to recognize the Data Commons server, edit the relevant
230230
{
231231
"mcpServers": {
232232
"datacommons-mcp": {
233-
"httpUrl": "http://<var>HOST</var>:<var>PORT</var>/mcp"
233+
"httpUrl": "http://<var>HOST</var>:<var>PORT</var>/mcp",
234+
"headers": {
235+
"Content-Type": "application/json",
236+
"Accept": "application/json, text/event-stream"
237+
},
234238
// other settings as above
235239
}
236240
}
@@ -313,10 +317,15 @@ root_agent = LlmAgent(
313317
# ...
314318
tools=[McpToolset(
315319
connection_params=StreamableHTTPConnectionParams(
316-
url=f"http://<host>:<port>/mcp"
317-
)
318-
)],
319-
)
320+
url=f"http://<host>:<port>/mcp",
321+
headers={
322+
"Content-Type": "application/json",
323+
"Accept": "application/json, text/event-stream"
324+
},
325+
),
326+
)
327+
],
328+
)
320329
```
321330

322331
## Sample queries

0 commit comments

Comments
 (0)