Commit a560add
authored
feat: add new tool to load mcp resources (#137)
**Context**
As part of our onboarding devx, we want to add a set of steps and
instructions to help users integrate their existing projects with Neon.
We added [this get started
guide](https://github.com/neondatabase-labs/ai-rules/blob/main/neon-get-started.mdc).
This will typically be run through an `init` command that sets up the
MCP server for the user.
**What changes are proposed in this pull request?**
This PR adds a `load_resource` tool to expose guides (starting with our
`Get Started` resource) to the agent via a MCP tool. This is useful for
two reasons.
1. Some IDEs don't support MCP resources and only have access to MCP
tools
2. MCP resources are typically less likely to be loaded into context by
agents (unless we explicitly instruct the agent to use the MCP resource)
**How was this tested?**
Tested this by deploying to preview env
<img width="396" height="913" alt="Screenshot 2025-11-11 at 19 33 03"
src="https://github.com/user-attachments/assets/919bdc93-9fa2-4f73-adc9-cfa74257cd1d"
/>
#[LKB-6294](https://databricks.atlassian.net/browse/LKB-6294)1 parent e6f447e commit a560add
4 files changed
+73
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
916 | 917 | | |
917 | 918 | | |
918 | 919 | | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
919 | 943 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
1014 | 1015 | | |
1015 | 1016 | | |
1016 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1017 | 1038 | | |
1018 | 1039 | | |
1019 | 1040 | | |
| |||
1596 | 1617 | | |
1597 | 1618 | | |
1598 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1599 | 1632 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
0 commit comments