Skip to content

Commit 5583e23

Browse files
authored
Update dependencies + change “Substreams-Powered Subgraphs” card on home page to “Token API” (#960)
* Update dependencies + run `prebuild:ci` * Fix bug where `Heading` anchor didn’t appear in Firefox + improve alignment * Change “Substreams-Powered Subgraphs” card on home page to “Token API”
1 parent eac76ff commit 5583e23

File tree

430 files changed

+15043
-5121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+15043
-5121
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "graph-docs",
33
"private": true,
44
"version": "1.0.0",
5-
"packageManager": "pnpm@10.10.0",
5+
"packageManager": "pnpm@10.11.0",
66
"scripts": {
77
"dev": "turbo run dev",
88
"build": "NODE_OPTIONS='--max_old_space_size=8192' turbo run build",
@@ -21,17 +21,17 @@
2121
},
2222
"devDependencies": {
2323
"@edgeandnode/eslint-config": "^2.0.3",
24-
"@types/node": "^22.15.3",
24+
"@types/node": "^22.15.21",
2525
"eslint": "^8.57.1",
26-
"eslint-plugin-mdx": "^3.4.1",
26+
"eslint-plugin-mdx": "^3.4.2",
2727
"prettier": "^3.5.3",
2828
"prettier-plugin-tailwindcss": "^0.6.11",
2929
"remark-frontmatter": "^5.0.0",
3030
"remark-lint-first-heading-level": "^4.0.1",
3131
"remark-lint-heading-increment": "^4.0.1",
3232
"remark-lint-no-heading-punctuation": "^4.0.1",
3333
"remark-lint-restrict-elements": "workspace:*",
34-
"turbo": "^2.5.2",
34+
"turbo": "^2.5.3",
3535
"typescript": "^5.8.3"
3636
},
3737
"resolutions": {

packages/og-image/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
"dependencies": {
1313
"@resvg/resvg-wasm": "^2.6.2",
1414
"react": "^18.3.1",
15-
"satori": "^0.12.2",
15+
"satori": "^0.13.1",
1616
"yoga-wasm-web": "^0.3.3"
1717
},
1818
"devDependencies": {
19-
"@cloudflare/workers-types": "^4.20250502.0",
20-
"@types/react": "^18.3.20",
21-
"jest-image-snapshot": "^6.4.0",
19+
"@cloudflare/workers-types": "^4.20250525.0",
20+
"@types/react": "^18.3.23",
21+
"jest-image-snapshot": "^6.5.1",
2222
"tsx": "^4.19.4",
2323
"typescript": "^5.8.3",
2424
"vitest": "^2.1.9",
25-
"wrangler": "^3.114.8"
25+
"wrangler": "^3.114.9"
2626
},
2727
"sideEffects": false
2828
}

pnpm-lock.yaml

Lines changed: 2226 additions & 4472 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
"dependencies": {
2020
"@docsearch/react": "^3.9.0",
2121
"@edgeandnode/common": "^7.0.4",
22-
"@edgeandnode/gds": "^6.5.14",
23-
"@edgeandnode/go": "^10.0.2",
22+
"@edgeandnode/gds": "^6.5.15",
23+
"@edgeandnode/go": "^10.1.0",
2424
"@emotion/react": "^11.14.0",
25-
"@graphprotocol/contracts": "6.2.1",
25+
"@graphprotocol/contracts": "^7.1.2",
2626
"@pinax/graph-networks-registry": "^0.6.7",
2727
"@react-hookz/web": "^25.1.1",
2828
"@readme/httpsnippet": "^11.0.0",
29-
"@readme/openapi-parser": "^3.0.3",
29+
"@readme/openapi-parser": "^4.0.0",
3030
"fetch-har": "^11.1.1",
3131
"lodash": "^4.17.21",
32-
"mixpanel-browser": "^2.64.0",
33-
"motion": "^12.9.4",
34-
"next": "^14.2.28",
35-
"next-seo": "^6.6.0",
32+
"mixpanel-browser": "^2.65.0",
33+
"motion": "^12.15.0",
34+
"next": "^14.2.29",
35+
"next-seo": "^6.8.0",
3636
"next-sitemap": "^4.2.3",
3737
"nextra": "^3.3.1",
3838
"openapi-types": "^12.1.3",
@@ -45,20 +45,20 @@
4545
"remark-callouts": "workspace:*",
4646
"theme-ui": "^0.17.2",
4747
"unist-util-visit": "^5.0.0",
48-
"zod": "^3.24.3"
48+
"zod": "^3.25.30"
4949
},
5050
"devDependencies": {
51-
"@types/lodash": "^4.17.16",
51+
"@types/lodash": "^4.17.17",
5252
"@types/mdast": "^4.0.4",
53-
"@types/mixpanel-browser": "^2.54.0",
54-
"@types/node": "^22.15.3",
55-
"@types/react": "^18.3.20",
53+
"@types/mixpanel-browser": "^2.60.0",
54+
"@types/node": "^22.15.21",
55+
"@types/react": "^18.3.23",
5656
"@types/react-dom": "^18.3.7",
5757
"autoprefixer": "^10.4.21",
58-
"fast-xml-parser": "^5.2.1",
58+
"fast-xml-parser": "^5.2.3",
5959
"postcss": "^8.5.3",
6060
"tailwindcss": "^3.4.17",
61-
"tsup": "^8.4.0",
61+
"tsup": "^8.5.0",
6262
"tsx": "^4.19.4"
6363
}
6464
}

website/src/HomePage.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { NetworkType } from '@pinax/graph-networks-registry'
22

33
import { ButtonOrLink, ExperimentalLink, Tooltip } from '@edgeandnode/gds'
44
import {
5+
APIToken,
56
Firehose,
67
GraphExplorer,
78
GraphNode,
89
SocialYouTube,
910
Subgraph,
1011
Substreams,
11-
SubstreamsPoweredSubgraph,
1212
} from '@edgeandnode/gds/icons'
1313
import { NetworkIcon } from '@edgeandnode/go'
1414

@@ -83,12 +83,14 @@ export default function HomePage({ supportedNetworks }: { supportedNetworks: Sup
8383
</div>
8484
<div className="grid grid-cols-1 gap-4 lg:grid-cols-3">
8585
<Card
86-
title={t('index.products.sps.title')}
87-
description={t('index.products.sps.description')}
88-
cta={<ExperimentalLink href="/sps/tutorial/">{t('index.products.sps.cta')}</ExperimentalLink>}
86+
title={t('index.products.tokenApi.title')}
87+
description={t('index.products.tokenApi.description')}
88+
cta={
89+
<ExperimentalLink href="/token-api/quick-start/">{t('index.products.tokenApi.cta')}</ExperimentalLink>
90+
}
8991
icon={
9092
<div className="flex size-8 items-center justify-center rounded-4 bg-space-1400 text-white">
91-
<SubstreamsPoweredSubgraph size={4} />
93+
<APIToken size={4} />
9294
</div>
9395
}
9496
/>

website/src/components/Heading.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ const BaseHeading = ({ as: Element = 'h1', id, className, children, ...props }:
3434
{id ? (
3535
<span
3636
className={`
37-
absolute inset-y-0 end-[calc(100%+theme(spacing[2.5]))] my-auto h-min opacity-0 transition
38-
group-hocus-visible-within/heading:opacity-100
37+
absolute end-[calc(100%+theme(spacing[2.5]))] top-0 flex h-[1lh] items-center opacity-0 transition
38+
group-hover/heading:opacity-100
39+
group-has-focus-visible/heading:opacity-100
3940
max-md:hidden
4041
`}
4142
>

website/src/pages/ar/archived/_meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import titles from './_meta-titles.json'
22

33
export default {
44
sunrise: '',
5-
arbitrum: titles.arbitrum,
5+
arbitrum: titles.arbitrum ?? '',
66
}

website/src/pages/ar/index.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"description": "Fetch and consume blockchain data with parallel execution.",
2020
"cta": "Develop with Substreams"
2121
},
22-
"sps": {
23-
"title": "Substreams-Powered Subgraphs",
24-
"description": "Boost your subgraph's efficiency and scalability by using Substreams.",
25-
"cta": "Set up a Substreams-powered subgraph"
22+
"tokenApi": {
23+
"title": "Token API",
24+
"description": "Query token data and leverage native MCP support.",
25+
"cta": "Develop with Token API"
2626
},
2727
"graphNode": {
2828
"title": "Graph Node",
@@ -70,7 +70,7 @@
7070
"subgraphs": "Subgraphs",
7171
"substreams": "متعدد-السلاسل",
7272
"firehose": "Firehose",
73-
"tokenapi": "Token API"
73+
"tokenApi": "Token API"
7474
}
7575
},
7676
"networkGuides": {
@@ -83,7 +83,7 @@
8383
"title": "Substreams quick start",
8484
"description": "Stream high-speed data for real-time indexing."
8585
},
86-
"tokenapi": {
86+
"tokenApi": {
8787
"title": "The Graph's Token API",
8888
"description": "Query token data and leverage native MCP support."
8989
},

website/src/pages/ar/indexing/_meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import titles from './_meta-titles.json'
22

33
export default {
44
overview: '',
5-
tooling: titles.tooling,
5+
tooling: titles.tooling ?? '',
66
tap: '',
77
'supported-network-requirements': '',
88
'chain-integration-overview': '',

website/src/pages/ar/resources/_meta.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export default {
44
glossary: '',
55
tokenomics: '',
66
benefits: '',
7-
roles: titles.roles,
8-
'migration-guides': titles['migration-guides'],
7+
roles: titles.roles ?? '',
8+
'migration-guides': titles['migration-guides'] ?? '',
99
'subgraph-studio-faq': '',
10+
'claude-mcp': '',
1011
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
---
2+
title: Claude MCP
3+
---
4+
5+
This guide walks you through configuring Claude Desktop to use The Graph ecosystem's [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) resources: Token API and Subgraph. These integrations allow you to interact with blockchain data through natural language conversations with Claude.
6+
7+
## What You Can Do
8+
9+
With these integrations, you can:
10+
11+
- **Token API**: Access token and wallet information across multiple blockchains
12+
- **Subgraph**: Find relevant Subgraphs for specific keywords and contracts, explore Subgraph schemas, and execute GraphQL queries
13+
14+
## Prerequisites
15+
16+
- [Node.js](https://nodejs.org/en/download/) installed and available in your path
17+
- [Claude Desktop](https://claude.ai/download) installed
18+
- API keys:
19+
- Token API key from [The Graph Market](https://thegraph.market/)
20+
- Gateway API key from [Subgraph Studio](https://thegraph.com/studio/apikeys/)
21+
22+
## Configuration Steps
23+
24+
### 1. Open Configuration File
25+
26+
Navigate to your `claude_desktop_config.json` file:
27+
28+
> **Claude Desktop** > **Settings** > **Developer** > **Edit Config**
29+
30+
Paths by operating system:
31+
32+
- OSX: `~/Library/Application Support/Claude/claude_desktop_config.json`
33+
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
34+
- Linux: `.config/Claude/claude_desktop_config.json`
35+
36+
### 2. Add Configuration
37+
38+
Replace the contents of the existing config file with:
39+
40+
```json
41+
{
42+
"mcpServers": {
43+
"token-api": {
44+
"command": "npx",
45+
"args": ["@pinax/mcp", "--sse-url", "https://token-api.thegraph.com/sse"],
46+
"env": {
47+
"ACCESS_TOKEN": "ACCESS_TOKEN"
48+
}
49+
},
50+
"subgraph": {
51+
"command": "npx",
52+
"args": ["mcp-remote", "--header", "Authorization:${AUTH_HEADER}", "https://subgraphs.mcp.thegraph.com/sse"],
53+
"env": {
54+
"AUTH_HEADER": "Bearer GATEWAY_API_KEY"
55+
}
56+
}
57+
}
58+
}
59+
```
60+
61+
### 3. Add Your API Keys
62+
63+
Replace:
64+
65+
- `ACCESS_TOKEN` with your Token API key from [The Graph Market](https://thegraph.market/)
66+
- `GATEWAY_API_KEY` with your Gateway API key from [Subgraph Studio](https://thegraph.com/studio/apikeys/)
67+
68+
### 4. Save and Restart
69+
70+
- Save the configuration file
71+
- Restart Claude Desktop
72+
73+
### 5. Add The Graph Resources in Claude
74+
75+
After configuration:
76+
77+
1. Start a new conversation in Claude Desktop
78+
2. Click on the context menu (top right)
79+
3. Add "Subgraph Server Instructions" as a resource by entering `graphql://subgraph` for Subgraph MCP
80+
81+
> **Important**: You must manually add The Graph resources to your chat context for each conversation where you want to use them.
82+
83+
### 6. Run Queries
84+
85+
Here are some example queries you can try after setting up the resources:
86+
87+
### Subgraph Queries
88+
89+
```
90+
What are the top pools in Uniswap?
91+
```
92+
93+
```
94+
Who are the top Delegators of The Graph Protocol?
95+
```
96+
97+
```
98+
Please make a bar chart for the number of active loans in Compound for the last 7 days
99+
```
100+
101+
### Token API Queries
102+
103+
```
104+
Show me the current price of ETH
105+
```
106+
107+
```
108+
What are the top tokens by market cap on Ethereum?
109+
```
110+
111+
```
112+
Analyze this wallet address: 0x...
113+
```
114+
115+
## Troubleshooting
116+
117+
If you encounter issues:
118+
119+
1. **Verify Node.js Installation**: Ensure Node.js is correctly installed by running `node -v` in your terminal
120+
2. **Check API Keys**: Verify that your API keys are correctly entered in the configuration file
121+
3. **Enable Verbose Logging**: Add `--verbose true` to the args array in your configuration to see detailed logs
122+
4. **Restart Claude Desktop**: After making changes to the configuration, always restart Claude Desktop

website/src/pages/ar/subgraphs/_meta.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import titles from './_meta-titles.json'
33
export default {
44
'quick-start': '',
55
explorer: '',
6-
querying: titles.querying,
7-
developing: titles.developing,
6+
querying: titles.querying ?? '',
7+
developing: titles.developing ?? '',
88
billing: '',
99
guides: titles.guides,
1010
'best-practices': titles['best-practices'],
11+
'fair-use-policy': '',
12+
'upgrade-indexer': '',
1113
}

website/src/pages/ar/subgraphs/developing/_meta.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import titles from './_meta-titles.json'
33
export default {
44
introduction: '',
55
subgraphs: '',
6-
creating: titles.creating,
7-
deploying: titles.deploying,
8-
publishing: titles.publishing,
9-
managing: titles.managing,
6+
creating: titles.creating ?? '',
7+
deploying: titles.deploying ?? '',
8+
publishing: titles.publishing ?? '',
9+
managing: titles.managing ?? '',
1010
'developer-faq': '',
1111
}

website/src/pages/ar/subgraphs/developing/creating/_meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default {
77
'ql-schema': '',
88
'assemblyscript-mappings': '',
99
advanced: '',
10-
'graph-ts': titles['graph-ts'],
10+
'graph-ts': titles['graph-ts'] ?? '',
1111
'unit-testing-framework': '',
1212
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import titles from './_meta-titles.json'
22

33
export default {
4-
README: titles.README,
5-
api: titles.api,
6-
'common-issues': titles['common-issues'],
4+
README: titles.README ?? '',
5+
api: titles.api ?? '',
6+
'common-issues': titles['common-issues'] ?? '',
77
}

0 commit comments

Comments
 (0)