Skip to content

Commit fc61f64

Browse files
committed
more improvements
1 parent 1ce7823 commit fc61f64

File tree

9 files changed

+241
-376
lines changed

9 files changed

+241
-376
lines changed

.github/workflows/validate.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on:
88
push:
99
branches:
1010
- 'main'
11-
pull_request:
12-
branches:
13-
- 'main'
11+
pull_request: {}
12+
1413
jobs:
1514
setup:
15+
name: 🔧 Setup
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest, windows-latest, macos-latest]
@@ -35,6 +35,28 @@ jobs:
3535
- name: ⬣ ESLint
3636
run: echo "Linting not working in CI"
3737

38+
tests:
39+
name: 🧪 Test
40+
runs-on: ubuntu-latest
41+
# Use continue-on-error to ensure this job doesn't fail the workflow
42+
continue-on-error: true
43+
44+
steps:
45+
- name: ⬇️ Checkout repo
46+
uses: actions/checkout@v4
47+
48+
- name: ⎔ Setup node
49+
uses: actions/setup-node@v4
50+
with:
51+
node-version: 24
52+
53+
- name: 📦 Install dependencies
54+
run: npm ci
55+
56+
- name: 🧪 Run tests
57+
id: run_tests
58+
run: node ./epicshop/test.js ..s
59+
3860
deploy:
3961
name: 🚀 Deploy
4062
runs-on: ubuntu-latest

epicshop/dev.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

epicshop/fly.toml

Lines changed: 0 additions & 46 deletions
This file was deleted.

epicshop/fly.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# fly.yaml app configuration file generated for epicweb-dev-advanced-mcp-features on 2025-07-11T10:06:25-06:00
2+
#
3+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4+
#
5+
6+
app: 'epicweb-dev-mcp-fundamentals'
7+
primary_region: sjc
8+
kill_signal: SIGINT
9+
kill_timeout: 5s
10+
swap_size_mb: 512
11+
12+
experimental:
13+
auto_rollback: true
14+
15+
attached:
16+
secrets: {}
17+
18+
services:
19+
- processes:
20+
- app
21+
protocol: tcp
22+
internal_port: 8080
23+
24+
ports:
25+
- port: 80
26+
27+
handlers:
28+
- http
29+
force_https: true
30+
- port: 443
31+
32+
handlers:
33+
- tls
34+
- http
35+
36+
concurrency:
37+
type: connections
38+
hard_limit: 100
39+
soft_limit: 80
40+
41+
tcp_checks:
42+
- interval: 15s
43+
timeout: 2s
44+
grace_period: 1s
45+
46+
http_checks:
47+
- interval: 10s
48+
timeout: 2s
49+
grace_period: 5s
50+
method: get
51+
path: /resources/healthcheck
52+
protocol: http
53+
tls_skip_verify: false

exercises/03.resources/05.problem.linked/README.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
them even more useful! In this step, you'll learn how to link a resource
55
directly in your tool responses.
66

7-
Why does this matter? Sometimes, a tool's output isn't just plain text—it might
8-
be a file, a database record, or some other structured data. By linking to
9-
resource references, you enable clients (and LLMs) to follow links to additional
10-
context, download files, subscribe to updates, or fetch related data on demand.
7+
Why does this matter? Sometimes, an embedded resource is more content than is
8+
necessary for a tool's output. It could be a whole video potentially. By linking
9+
to resource references, you enable clients (and LLMs) to decide whether they
10+
want to follow links to additional context, download files, subscribe to updates,
11+
or fetch related data on demand.
1112

1213
Your goal in this step:
1314

14-
- Update your tools so that, when they create a tag, we tell them it was created
15-
and also include a reference to the tag (using the `type: 'resource_link'`
16-
content type in the response).
15+
- Update the `list_entries` and `list_tags` tools so when they create a tag or
16+
entry, we tell them it was created and also include a reference to the tag or
17+
entry (using the `type: 'resource_link'` content type in the response).
1718
- Make sure the resource includes the correct URI and metadata, so clients can
1819
easily fetch the resource if they want more details.
1920

@@ -33,7 +34,7 @@ resource:
3334
}
3435
```
3536

36-
To test this out, create a new tag and notice the resource is included in the
37-
response.
37+
To test this out, check the response from `list_entries` and `list_tags` and
38+
notice the resource is included in the response.
3839

3940
- 📜 [MCP Spec: Tools (Resource Links)](https://modelcontextprotocol.io/specification/2025-06-18/server/tools#resource-links)

0 commit comments

Comments
 (0)