Skip to content

Commit b500f51

Browse files
authored
Merge pull request #10 from context-dot-dev/release-please--branches--main--changes--next--components--context.dev
release: 1.3.0
2 parents 17dd04e + 6b83bcf commit b500f51

16 files changed

Lines changed: 235 additions & 10 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.2.0"
2+
".": "1.3.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-56a21db16ac3a797f86daca01a2ea115a0365db4b2f9d8accdec4f4d3ee2eb83.yml
3-
openapi_spec_hash: bfcef090896da96023c4485a3d69e350
4-
config_hash: 38268bb88fc4dcbb8f2f94dd138b5910
1+
configured_endpoints: 21
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-97cdb78dc0d72e9df643a89660f2b0c9687f12c6e4d93f7767f6cfc1b4f2e4c7.yml
3+
openapi_spec_hash: 92fc94fd8865fabe78c2667490ca3884
4+
config_hash: 682b89b02a20f5d1c13e2c91ecbcf5ce

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.3.0 (2026-04-04)
4+
5+
Full Changelog: [v1.2.0...v1.3.0](https://github.com/context-dot-dev/context-typescript-sdk/compare/v1.2.0...v1.3.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([a10ea99](https://github.com/context-dot-dev/context-typescript-sdk/commit/a10ea991a4f2518d2105c1ad8932329a20db11f0))
10+
311
## 1.2.0 (2026-04-03)
412

513
Full Changelog: [v1.1.0...v1.2.0](https://github.com/context-dot-dev/context-typescript-sdk/compare/v1.1.0...v1.2.0)

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Types:
44

55
- <code><a href="./src/resources/web.ts">WebScreenshotResponse</a></code>
6+
- <code><a href="./src/resources/web.ts">WebWebCrawlMdResponse</a></code>
67
- <code><a href="./src/resources/web.ts">WebWebScrapeHTMLResponse</a></code>
78
- <code><a href="./src/resources/web.ts">WebWebScrapeImagesResponse</a></code>
89
- <code><a href="./src/resources/web.ts">WebWebScrapeMdResponse</a></code>
@@ -11,6 +12,7 @@ Types:
1112
Methods:
1213

1314
- <code title="get /brand/screenshot">client.web.<a href="./src/resources/web.ts">screenshot</a>({ ...params }) -> WebScreenshotResponse</code>
15+
- <code title="post /web/crawl">client.web.<a href="./src/resources/web.ts">webCrawlMd</a>({ ...params }) -> WebWebCrawlMdResponse</code>
1416
- <code title="get /web/scrape/html">client.web.<a href="./src/resources/web.ts">webScrapeHTML</a>({ ...params }) -> WebWebScrapeHTMLResponse</code>
1517
- <code title="get /web/scrape/images">client.web.<a href="./src/resources/web.ts">webScrapeImages</a>({ ...params }) -> WebWebScrapeImagesResponse</code>
1618
- <code title="get /web/scrape/markdown">client.web.<a href="./src/resources/web.ts">webScrapeMd</a>({ ...params }) -> WebWebScrapeMdResponse</code>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "context.dev",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "The official TypeScript library for the Context Dev API",
55
"author": "Context Dev <hello@context.dev>",
66
"types": "dist/index.d.ts",

packages/mcp-server/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dxt_version": "0.2",
33
"name": "context.dev-mcp",
4-
"version": "1.2.0",
4+
"version": "1.3.0",
55
"description": "The official MCP Server for the Context Dev API",
66
"author": {
77
"name": "Context Dev",

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "context.dev-mcp",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "The official MCP Server for the Context Dev API",
55
"author": "Context Dev <hello@context.dev>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/code-tool-worker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ function getTSDiagnostics(code: string): string[] {
109109
const fuse = new Fuse(
110110
[
111111
'client.web.screenshot',
112+
'client.web.webCrawlMd',
112113
'client.web.webScrapeHTML',
113114
'client.web.webScrapeImages',
114115
'client.web.webScrapeMd',

packages/mcp-server/src/local-docs-search.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,52 @@ const EMBEDDED_METHODS: MethodEntry[] = [
237237
},
238238
},
239239
},
240+
{
241+
name: 'web_crawl_md',
242+
endpoint: '/web/crawl',
243+
httpMethod: 'post',
244+
summary: 'Crawl website and extract Markdown',
245+
description:
246+
'Performs a crawl starting from a given URL, extracts page content as Markdown, and returns results for all crawled pages. Only follows links within the same domain as the starting URL. Costs 1 credit per successful page crawled.',
247+
stainlessPath: '(resource) web > (method) web_crawl_md',
248+
qualified: 'client.web.webCrawlMd',
249+
params: [
250+
'url: string;',
251+
'followSubdomains?: boolean;',
252+
'includeImages?: boolean;',
253+
'includeLinks?: boolean;',
254+
'maxDepth?: number;',
255+
'maxPages?: number;',
256+
'shortenBase64Images?: boolean;',
257+
'urlRegex?: string;',
258+
'useMainContentOnly?: boolean;',
259+
],
260+
response:
261+
'{ metadata: { maxCrawlDepth: number; numFailed: number; numSucceeded: number; numUrls: number; }; results: { markdown: string; metadata: { crawlDepth: number; statusCode: number; success: boolean; title: string; url: string; }; }[]; }',
262+
markdown:
263+
"## web_crawl_md\n\n`client.web.webCrawlMd(url: string, followSubdomains?: boolean, includeImages?: boolean, includeLinks?: boolean, maxDepth?: number, maxPages?: number, shortenBase64Images?: boolean, urlRegex?: string, useMainContentOnly?: boolean): { metadata: object; results: object[]; }`\n\n**post** `/web/crawl`\n\nPerforms a crawl starting from a given URL, extracts page content as Markdown, and returns results for all crawled pages. Only follows links within the same domain as the starting URL. Costs 1 credit per successful page crawled.\n\n### Parameters\n\n- `url: string`\n The starting URL for the crawl (must include http:// or https:// protocol)\n\n- `followSubdomains?: boolean`\n When true, follow links on subdomains of the starting URL's domain (e.g. docs.example.com when starting from example.com). www and apex are always treated as equivalent.\n\n- `includeImages?: boolean`\n Include image references in the Markdown output\n\n- `includeLinks?: boolean`\n Preserve hyperlinks in the Markdown output\n\n- `maxDepth?: number`\n Maximum link depth from the starting URL (0 = only the starting page)\n\n- `maxPages?: number`\n Maximum number of pages to crawl. Hard cap: 500.\n\n- `shortenBase64Images?: boolean`\n Truncate base64-encoded image data in the Markdown output\n\n- `urlRegex?: string`\n Regex pattern. Only URLs matching this pattern will be followed and scraped.\n\n- `useMainContentOnly?: boolean`\n Extract only the main content, stripping headers, footers, sidebars, and navigation\n\n### Returns\n\n- `{ metadata: { maxCrawlDepth: number; numFailed: number; numSucceeded: number; numUrls: number; }; results: { markdown: string; metadata: { crawlDepth: number; statusCode: number; success: boolean; title: string; url: string; }; }[]; }`\n\n - `metadata: { maxCrawlDepth: number; numFailed: number; numSucceeded: number; numUrls: number; }`\n - `results: { markdown: string; metadata: { crawlDepth: number; statusCode: number; success: boolean; title: string; url: string; }; }[]`\n\n### Example\n\n```typescript\nimport ContextDev from 'context.dev';\n\nconst client = new ContextDev();\n\nconst response = await client.web.webCrawlMd({ url: 'https://example.com' });\n\nconsole.log(response);\n```",
264+
perLanguage: {
265+
http: {
266+
example:
267+
'curl https://api.context.dev/v1/web/crawl \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $CONTEXT_DEV_API_KEY" \\\n -d \'{\n "url": "https://example.com"\n }\'',
268+
},
269+
python: {
270+
method: 'web.web_crawl_md',
271+
example:
272+
'import os\nfrom context.dev import ContextDev\n\nclient = ContextDev(\n api_key=os.environ.get("CONTEXT_DEV_API_KEY"), # This is the default and can be omitted\n)\nresponse = client.web.web_crawl_md(\n url="https://example.com",\n)\nprint(response.metadata)',
273+
},
274+
ruby: {
275+
method: 'web.web_crawl_md',
276+
example:
277+
'require "context_dev"\n\ncontext_dev = ContextDev::Client.new(api_key: "My API Key")\n\nresponse = context_dev.web.web_crawl_md(url: "https://example.com")\n\nputs(response)',
278+
},
279+
typescript: {
280+
method: 'client.web.webCrawlMd',
281+
example:
282+
"import ContextDev from 'context.dev';\n\nconst client = new ContextDev({\n apiKey: process.env['CONTEXT_DEV_API_KEY'], // This is the default and can be omitted\n});\n\nconst response = await client.web.webCrawlMd({ url: 'https://example.com' });\n\nconsole.log(response.metadata);",
283+
},
284+
},
285+
},
240286
{
241287
name: 'extract_products',
242288
endpoint: '/brand/ai/products',

packages/mcp-server/src/methods.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export const sdkMethods: SdkMethod[] = [
1616
httpMethod: 'get',
1717
httpPath: '/brand/screenshot',
1818
},
19+
{
20+
clientCallName: 'client.web.webCrawlMd',
21+
fullyQualifiedName: 'web.webCrawlMd',
22+
httpMethod: 'post',
23+
httpPath: '/web/crawl',
24+
},
1925
{
2026
clientCallName: 'client.web.webScrapeHTML',
2127
fullyQualifiedName: 'web.webScrapeHTML',

0 commit comments

Comments
 (0)