Skip to content
Merged
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 @@
{
".": "1.31.0"
".": "1.32.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: 25
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-de0ba2ed18ec7265b0b20d9639b3da207dd33e354f0a856091902291c6661830.yml
openapi_spec_hash: ae25efc2ac6bcab54bc3f4efaab73a55
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-8f6bc62256b5a4aa44e82389bfefee1d73172856c407567bba11a82fd4203641.yml
openapi_spec_hash: 8b7230de56ecbec4712fa1e81067a75c
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.32.0 (2026-06-07)

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

### Features

* **api:** api update ([ff4cabc](https://github.com/context-dot-dev/context-typescript-sdk/commit/ff4cabcb0323ce677e117d5f4e903242cc6e4c0e))

## 1.31.0 (2026-06-07)

Full Changelog: [v1.30.0...v1.31.0](https://github.com/context-dot-dev/context-typescript-sdk/compare/v1.30.0...v1.31.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": "1.31.0",
"version": "1.32.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": "1.31.0",
"version": "1.32.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": "1.31.0",
"version": "1.32.0",
"description": "The official MCP Server for the Context Dev API",
"author": "Context Dev <hello@context.dev>",
"types": "dist/index.d.ts",
Expand Down
12 changes: 9 additions & 3 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: '1.31.0',
version: '1.32.0',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
43 changes: 43 additions & 0 deletions src/resources/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,13 @@ export interface WebWebCrawlMdParams {
*/
url: string;

/**
* CSS selectors to remove before each crawled page is converted to Markdown.
* Applied after includeSelectors. Exclusion takes precedence: an element matching
* both is removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".
*/
excludeSelectors?: Array<string>;

/**
* 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
Expand All @@ -1652,6 +1659,14 @@ export interface WebWebCrawlMdParams {
*/
includeLinks?: boolean;

/**
* CSS selectors. When provided, only matching HTML subtrees (and their
* descendants) are kept before each crawled page is converted to Markdown. When
* omitted, the entire document is kept. Examples: "article.main", "#content",
* "[role=main]".
*/
includeSelectors?: Array<string>;

/**
* Return a cached result if a prior scrape for the same parameters exists and is
* younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
Expand Down Expand Up @@ -1744,6 +1759,13 @@ export interface WebWebScrapeHTMLParams {
*/
url: string;

/**
* CSS selectors to remove from the result. Applied after includeSelectors.
* Exclusion takes precedence: an element matching both is removed. Examples:
* "nav", "footer", ".ad-banner", "[aria-hidden=true]".
*/
excludeSelectors?: Array<string>;

/**
* Optional outbound HTTP headers forwarded only to the target URL, sent as
* deep-object query params such as headers[X-Custom]=value. When provided, caching
Expand All @@ -1756,6 +1778,13 @@ export interface WebWebScrapeHTMLParams {
*/
includeFrames?: boolean;

/**
* CSS selectors. When provided, only matching subtrees (and their descendants) are
* kept and everything else is dropped. When omitted, the entire document is kept.
* Examples: "article.main", "#content", "[role=main]".
*/
includeSelectors?: Array<string>;

/**
* Return a cached result if a prior scrape for the same parameters exists and is
* younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
Expand Down Expand Up @@ -1883,6 +1912,13 @@ export interface WebWebScrapeMdParams {
*/
url: string;

/**
* CSS selectors to remove before conversion to Markdown. Applied after
* includeSelectors. Exclusion takes precedence: an element matching both is
* removed. Examples: "nav", "footer", ".ad-banner", "[aria-hidden=true]".
*/
excludeSelectors?: Array<string>;

/**
* Optional outbound HTTP headers forwarded only to the target URL, sent as
* deep-object query params such as headers[X-Custom]=value. When provided, caching
Expand All @@ -1905,6 +1941,13 @@ export interface WebWebScrapeMdParams {
*/
includeLinks?: boolean;

/**
* CSS selectors. When provided, only matching HTML subtrees (and their
* descendants) are kept before conversion to Markdown. When omitted, the entire
* document is kept. Examples: "article.main", "#content", "[role=main]".
*/
includeSelectors?: Array<string>;

/**
* Return a cached result if a prior scrape for the same parameters exists and is
* younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
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 = '1.31.0'; // x-release-please-version
export const VERSION = '1.32.0'; // x-release-please-version
6 changes: 6 additions & 0 deletions tests/api-resources/web.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,12 @@ describe('resource web', () => {
test.skip('webCrawlMd: required and optional params', async () => {
const response = await client.web.webCrawlMd({
url: 'https://example.com',
excludeSelectors: ['string'],
followSubdomains: true,
includeFrames: true,
includeImages: true,
includeLinks: true,
includeSelectors: ['string'],
maxAgeMs: 0,
maxDepth: 0,
maxPages: 1,
Expand Down Expand Up @@ -257,8 +259,10 @@ describe('resource web', () => {
test.skip('webScrapeHTML: required and optional params', async () => {
const response = await client.web.webScrapeHTML({
url: 'https://example.com',
excludeSelectors: ['string'],
headers: { foo: 'J!' },
includeFrames: true,
includeSelectors: ['string'],
maxAgeMs: 0,
pdf: {
end: 1,
Expand Down Expand Up @@ -315,10 +319,12 @@ describe('resource web', () => {
test.skip('webScrapeMd: required and optional params', async () => {
const response = await client.web.webScrapeMd({
url: 'https://example.com',
excludeSelectors: ['string'],
headers: { foo: 'J!' },
includeFrames: true,
includeImages: true,
includeLinks: true,
includeSelectors: ['string'],
maxAgeMs: 0,
pdf: {
end: 1,
Expand Down
Loading