Skip to content

Commit 8966bea

Browse files
Set up Vitepress deployment (#7)
1 parent dd47977 commit 8966bea

10 files changed

Lines changed: 5361 additions & 1549 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: npm
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v4
32+
- name: Install dependencies
33+
run: npm ci
34+
- name: Build with VitePress
35+
run: npm run docs:build
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: .vitepress/dist
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
needs: build
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ node_modules/
77
*.tsbuildinfo
88
dist/
99
schema/**/generated/
10+
.vitepress/cache
11+
.vitepress/dist

‎.vitepress/config.mts‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import { defineConfig } from "vitepress";
2+
import { withMermaid } from "vitepress-plugin-mermaid";
3+
4+
export default withMermaid(
5+
defineConfig({
6+
title: "MCP Tasks Extension",
7+
description: "Documentation for the MCP Tasks extension",
8+
9+
head: [["link", { rel: "icon", href: "/mcp.png" }]],
10+
11+
themeConfig: {
12+
outline: [2, 3],
13+
14+
nav: [
15+
{ text: "SEPs", link: "/seps/2663-tasks-extension" },
16+
{ text: "Specification", link: "/specification/draft/tasks" },
17+
],
18+
19+
sidebar: {
20+
"specification/": [
21+
{
22+
text: "Specification",
23+
items: [{ text: "Draft", link: "/specification/draft/tasks" }],
24+
},
25+
],
26+
"seps/": [
27+
{
28+
text: "SEPs",
29+
items: [
30+
{ text: "SEP-1686: Tasks", link: "/seps/1686-tasks" },
31+
{
32+
text: "SEP-2663: Tasks Extension",
33+
link: "/seps/2663-tasks-extension",
34+
},
35+
],
36+
},
37+
],
38+
},
39+
40+
socialLinks: [
41+
{
42+
icon: "github",
43+
link: "https://github.com/modelcontextprotocol/ext-tasks",
44+
},
45+
],
46+
47+
search: {
48+
provider: "local",
49+
},
50+
},
51+
}),
52+
);

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Please see the [MCP Contributing Guidelines](https://github.com/modelcontextprot
1313
## License
1414

1515
By contributing, you agree that your contributions will be licensed under the Apache License 2.0.
16-
See the [LICENSE](LICENSE) file for details.
16+
See the [LICENSE](https://github.com/modelcontextprotocol/ext-tasks/blob/main/LICENSE) file for details.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ This repository follows the Model Context Protocol project policies:
4444

4545
## License
4646

47-
This project is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.
47+
This project is licensed under the Apache License 2.0. See [LICENSE](https://github.com/modelcontextprotocol/ext-tasks/blob/main/LICENSE) for details.

docs/overview.md renamed to index.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
title: Overview
3-
group: Getting Started
43
description: MCP Tasks lets servers return durable poll handles instead of blocking on long-running tool calls. Clients poll for progress, provide mid-flight input, and retrieve results after reconnecting.
54
---
65

7-
# MCP Tasks Overview
6+
# Overview
87

98
MCP Tasks is an extension to the Model Context Protocol. Servers return a durable task handle instead of blocking on a long-running operation; clients poll for progress and retrieve the result when ready.
109

@@ -178,15 +177,15 @@ When a task needs client input, it transitions to `input_required` and the `task
178177

179178
Each key in `inputRequests` is unique over the lifetime of a task. The server may accept partial responses; the task remains `input_required` until all arrive. Reads (`tasks/get`) and writes (`tasks/update`) are separate to keep reads idempotent and cacheable.
180179

181-
See the [specification](./specification/draft/tasks.mdx) for the full `tasks/update` request shape and consistency semantics.
180+
See the [specification](./specification/draft/tasks) for the full `tasks/update` request shape and consistency semantics.
182181

183182
## Cancellation and Notifications
184183

185184
Clients send `tasks/cancel` to signal cancellation intent. The server acks with an empty result — cancellation is cooperative, and the task may still reach a non-`cancelled` terminal status.
186185

187186
Servers may also push status updates via `notifications/tasks`, which clients opt into through `subscriptions/listen`. Each notification carries the full task state, identical to a `tasks/get` response.
188187

189-
See the [specification](./specification/draft/tasks.mdx) for details on both mechanisms.
188+
See the [specification](./specification/draft/tasks) for details on both mechanisms.
190189

191190
## Security
192191

@@ -202,6 +201,6 @@ Task-augmented execution is currently supported for:
202201

203202
## Learn More
204203

205-
- [Specification](./specification/draft/tasks.mdx) — Full protocol specification
206-
- [SEP-2663](../seps/2663-tasks-extension.md) — The proposal defining this extension
207-
- [Schema](../schema/) — TypeScript types and generated JSON Schema
204+
- [Specification](./specification/draft/tasks) — Full protocol specification
205+
- [SEP-2663](./seps/2663-tasks-extension.md) — The proposal defining this extension
206+
- [Schema](https://github.com/modelcontextprotocol/ext-tasks/tree/main/schema) — TypeScript types and generated JSON Schema

0 commit comments

Comments
 (0)