Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.9.0"
".": "2.10.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 38
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-155e4761d62255841349c0f8a01b0a9c463ea1d1f2d6c4fd8d1a75c8bef6f226.yml
openapi_spec_hash: ab91f77e7c9d992400cbc7fc8a9e76c1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b5a46cf886759797353b250da971e46cf66804b825ded9c51609f34d72d1169c.yml
openapi_spec_hash: 1947de2a731ddab05bfb781f37cd42b6
config_hash: bff282047fafdad771fb7ec685f56944
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 2.10.0 (2026-08-06)

Full Changelog: [v2.9.0...v2.10.0](https://github.com/context-dot-dev/context-typescript-sdk/compare/v2.9.0...v2.10.0)

### Features

* **api:** api update ([21cab16](https://github.com/context-dot-dev/context-typescript-sdk/commit/21cab16a097d178c4eeae4494121a3ff916af5fd))
* **api:** api update ([8189242](https://github.com/context-dot-dev/context-typescript-sdk/commit/81892426571cb9676d8b8e04e2c2f2e9fc0b5b3a))
* **api:** api update ([7d20482](https://github.com/context-dot-dev/context-typescript-sdk/commit/7d20482b2067563e536e5afd6d0e020a46f2daf4))
* **api:** api update ([38a76ed](https://github.com/context-dot-dev/context-typescript-sdk/commit/38a76ed4ba43440692353175b92e2047a0b4ab73))

## 2.9.0 (2026-08-05)

Full Changelog: [v2.8.0...v2.9.0](https://github.com/context-dot-dev/context-typescript-sdk/compare/v2.8.0...v2.9.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "context.dev",
"version": "2.9.0",
"version": "2.10.0",
"description": "The official TypeScript library for the Context Dev API",
"author": "Context Dev <hello@context.dev>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dxt_version": "0.2",
"name": "context.dev-mcp",
"version": "2.9.0",
"version": "2.10.0",
"description": "The official MCP Server for the Context Dev API",
"author": {
"name": "Context Dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "context.dev-mcp",
"version": "2.9.0",
"version": "2.10.0",
"description": "The official MCP Server for the Context Dev API",
"author": "Context Dev <hello@context.dev>",
"types": "dist/index.d.ts",
Expand Down
16 changes: 9 additions & 7 deletions packages/mcp-server/src/local-docs-search.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const newMcpServer = async ({
new McpServer(
{
name: 'context_dev_api',
version: '2.9.0',
version: '2.10.0',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
3 changes: 1 addition & 2 deletions src/resources/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ export interface ParseHandleParams {
* Query param: When true for PDF inputs, detect and OCR images embedded in the
* selected pages, inserting recognized text at each image's position in page
* reading order while preserving the PDF text layer. pdf.start/pdf.end limit the
* inclusive page range. When false, all OCR is disabled, including the automatic
* scanned-PDF fallback.
* inclusive page range. When false, no OCR runs.
*/
ocr?: boolean | 'true' | 'false';

Expand Down
25 changes: 19 additions & 6 deletions src/resources/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export class Web extends APIResource {
* | 401 / 403 | No | Invalid/disabled key, insufficient permissions, or credits exhausted; inspect error_code |
* | 404 | No | Target page returned or fingerprinted as not found |
* | 408 | No | Request timed out |
* | 413 | No | Target content exceeds the maximum supported size (20 MB) |
* | 415 | No | Unsupported content type |
* | 429 | No | Per-minute rate limit exceeded; honor Retry-After |
* | 500 | No | Internal error |
Expand All @@ -187,7 +188,11 @@ export class Web extends APIResource {
}

/**
* Crawl an entire website's sitemap and return all discovered page URLs.
* Crawl an entire website's sitemap and return all discovered page URLs. Pass
* `search` to have the crawled sitemap filtered down to the pages about a phrase
* (for example `pricing and plans` or `api authentication docs`), most relevant
* first — a searched crawl scans the whole sitemap and costs 2 credits instead
* of 1.
*
* @example
* ```ts
Expand Down Expand Up @@ -1930,7 +1935,8 @@ export interface WebWebScrapeSitemapResponse {
success: true;

/**
* Array of discovered page URLs from the sitemap (max 500)
* Discovered page URLs from the sitemap, up to `maxLinks`. When `search` is set
* these are only the matching pages, most relevant first.
*/
urls: Array<string>;

Expand Down Expand Up @@ -3615,13 +3621,13 @@ export namespace WebWebScrapeHTMLParams {
/**
* When true, detect and OCR images embedded in the selected PDF pages, inserting
* recognized text at each image's position in page reading order while preserving
* the PDF text layer. This is separate from automatic scanned-PDF OCR fallback.
* the PDF text layer. When false, no OCR runs.
*/
ocr?: boolean | 'true' | 'false';

/**
* When true, PDF URLs are fetched and parsed. When false, PDF URLs are skipped and
* a 400 WEBSITE_ACCESS_ERROR is returned.
* a 400 PDF_SKIPPED is returned.
*/
shouldParse?: boolean | 'true' | 'false';

Expand Down Expand Up @@ -4097,13 +4103,13 @@ export namespace WebWebScrapeMdParams {
/**
* When true, detect and OCR images embedded in the selected PDF pages, inserting
* recognized text at each image's position in page reading order while preserving
* the PDF text layer. This is separate from automatic scanned-PDF OCR fallback.
* the PDF text layer. When false, no OCR runs.
*/
ocr?: boolean | 'true' | 'false';

/**
* When true, PDF URLs are fetched and parsed. When false, PDF URLs are skipped and
* a 400 WEBSITE_ACCESS_ERROR is returned.
* a 400 PDF_SKIPPED is returned.
*/
shouldParse?: boolean | 'true' | 'false';

Expand Down Expand Up @@ -4133,6 +4139,13 @@ export interface WebWebScrapeSitemapParams {
*/
maxLinks?: number;

/**
* Optional search phrase. When provided, the crawled sitemap is filtered to the
* pages whose URLs are about that phrase, most relevant first, and the request
* costs 2 credits instead of 1.
*/
search?: string;

/**
* Optional explicit sitemap URL. When provided, exactly this sitemap is crawled
* instead of discovering the domain's sitemaps.
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '2.9.0'; // x-release-please-version
export const VERSION = '2.10.0'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/web.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ describe('resource web', () => {
domain: 'xxx',
headers: { foo: 'J!' },
maxLinks: 1,
search: 'help center and troubleshooting articles',
sitemapUrl: 'https://example.com',
tags: ['production', 'team-alpha'],
timeoutMS: 1,
Expand Down
Loading