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 @@
{
".": "0.2.0"
".": "0.3.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-c5d5abb4b31f6e352e3e02b47120e3f444377c1c564f141ebe0988b86ba5932e.yml
openapi_spec_hash: 8ef4803fbe33ae6472a4b8f660be7921
config_hash: a144af00e5e74176674d0ea954cc02c5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-c2e94e0c758b1aaba120c2a4231842fff0a120acc471fe24c7a81221e13a0482.yml
openapi_spec_hash: aabc231b46b1ca3375882f96c378c665
config_hash: ab5135cc119f83ae2821f9445ed99d16
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.3.0 (2026-03-18)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/brand-dot-dev/context-typescript-sdk/compare/v0.2.0...v0.3.0)

### Features

* **api:** api update ([dc135a5](https://github.com/brand-dot-dev/context-typescript-sdk/commit/dc135a5c4a01de856d7ee19efa958af62ff4e132))
* **api:** manual updates ([7cb981d](https://github.com/brand-dot-dev/context-typescript-sdk/commit/7cb981dbb19152fc272b33b119a7099410e48c50))
* **api:** manual updates ([6f77533](https://github.com/brand-dot-dev/context-typescript-sdk/commit/6f77533b4bdf4ca48092d378f883d01f8142a779))

## 0.2.0 (2026-03-18)

Full Changelog: [v0.1.0...v0.2.0](https://github.com/brand-dot-dev/context-typescript-sdk/compare/v0.1.0...v0.2.0)
Expand Down
92 changes: 66 additions & 26 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,87 @@
# Web

Types:

- <code><a href="./src/resources/web.ts">WebScreenshotResponse</a></code>
- <code><a href="./src/resources/web.ts">WebWebScrapeHTMLResponse</a></code>
- <code><a href="./src/resources/web.ts">WebWebScrapeImagesResponse</a></code>
- <code><a href="./src/resources/web.ts">WebWebScrapeMdResponse</a></code>
- <code><a href="./src/resources/web.ts">WebWebScrapeSitemapResponse</a></code>

Methods:

- <code title="get /brand/screenshot">client.web.<a href="./src/resources/web.ts">screenshot</a>({ ...params }) -> WebScreenshotResponse</code>
- <code title="get /web/scrape/html">client.web.<a href="./src/resources/web.ts">webScrapeHTML</a>({ ...params }) -> WebWebScrapeHTMLResponse</code>
- <code title="get /web/scrape/images">client.web.<a href="./src/resources/web.ts">webScrapeImages</a>({ ...params }) -> WebWebScrapeImagesResponse</code>
- <code title="get /web/scrape/markdown">client.web.<a href="./src/resources/web.ts">webScrapeMd</a>({ ...params }) -> WebWebScrapeMdResponse</code>
- <code title="get /web/scrape/sitemap">client.web.<a href="./src/resources/web.ts">webScrapeSitemap</a>({ ...params }) -> WebWebScrapeSitemapResponse</code>

# AI

Types:

- <code><a href="./src/resources/ai.ts">AIAIQueryResponse</a></code>
- <code><a href="./src/resources/ai.ts">AIExtractProductResponse</a></code>
- <code><a href="./src/resources/ai.ts">AIExtractProductsResponse</a></code>

Methods:

- <code title="post /brand/ai/query">client.ai.<a href="./src/resources/ai.ts">aiQuery</a>({ ...params }) -> AIAIQueryResponse</code>
- <code title="post /brand/ai/product">client.ai.<a href="./src/resources/ai.ts">extractProduct</a>({ ...params }) -> AIExtractProductResponse</code>
- <code title="post /brand/ai/products">client.ai.<a href="./src/resources/ai.ts">extractProducts</a>({ ...params }) -> AIExtractProductsResponse</code>

# Style

Types:

- <code><a href="./src/resources/style.ts">StyleExtractFontsResponse</a></code>
- <code><a href="./src/resources/style.ts">StyleExtractStyleguideResponse</a></code>

Methods:

- <code title="get /brand/fonts">client.style.<a href="./src/resources/style.ts">extractFonts</a>({ ...params }) -> StyleExtractFontsResponse</code>
- <code title="get /brand/styleguide">client.style.<a href="./src/resources/style.ts">extractStyleguide</a>({ ...params }) -> StyleExtractStyleguideResponse</code>

# Brand

Types:

- <code><a href="./src/resources/brand.ts">BrandRetrieveResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandAIProductResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandAIProductsResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandAIQueryResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandFontsResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandIdentifyFromTransactionResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandPrefetchResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandPrefetchByEmailResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandRetrieveByEmailResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandRetrieveByIsinResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandRetrieveByNameResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandRetrieveByTickerResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandRetrieveNaicsResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandRetrieveSimplifiedResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandScreenshotResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandStyleguideResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandWebScrapeHTMLResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandWebScrapeImagesResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandWebScrapeMdResponse</a></code>
- <code><a href="./src/resources/brand.ts">BrandWebScrapeSitemapResponse</a></code>

Methods:

- <code title="get /brand/retrieve">client.brand.<a href="./src/resources/brand.ts">retrieve</a>({ ...params }) -> BrandRetrieveResponse</code>
- <code title="post /brand/ai/product">client.brand.<a href="./src/resources/brand.ts">aiProduct</a>({ ...params }) -> BrandAIProductResponse</code>
- <code title="post /brand/ai/products">client.brand.<a href="./src/resources/brand.ts">aiProducts</a>({ ...params }) -> BrandAIProductsResponse</code>
- <code title="post /brand/ai/query">client.brand.<a href="./src/resources/brand.ts">aiQuery</a>({ ...params }) -> BrandAIQueryResponse</code>
- <code title="get /brand/fonts">client.brand.<a href="./src/resources/brand.ts">fonts</a>({ ...params }) -> BrandFontsResponse</code>
- <code title="get /brand/transaction_identifier">client.brand.<a href="./src/resources/brand.ts">identifyFromTransaction</a>({ ...params }) -> BrandIdentifyFromTransactionResponse</code>
- <code title="post /brand/prefetch">client.brand.<a href="./src/resources/brand.ts">prefetch</a>({ ...params }) -> BrandPrefetchResponse</code>
- <code title="post /brand/prefetch-by-email">client.brand.<a href="./src/resources/brand.ts">prefetchByEmail</a>({ ...params }) -> BrandPrefetchByEmailResponse</code>
- <code title="get /brand/retrieve-by-email">client.brand.<a href="./src/resources/brand.ts">retrieveByEmail</a>({ ...params }) -> BrandRetrieveByEmailResponse</code>
- <code title="get /brand/retrieve-by-isin">client.brand.<a href="./src/resources/brand.ts">retrieveByIsin</a>({ ...params }) -> BrandRetrieveByIsinResponse</code>
- <code title="get /brand/retrieve-by-name">client.brand.<a href="./src/resources/brand.ts">retrieveByName</a>({ ...params }) -> BrandRetrieveByNameResponse</code>
- <code title="get /brand/retrieve-by-ticker">client.brand.<a href="./src/resources/brand.ts">retrieveByTicker</a>({ ...params }) -> BrandRetrieveByTickerResponse</code>
- <code title="get /brand/naics">client.brand.<a href="./src/resources/brand.ts">retrieveNaics</a>({ ...params }) -> BrandRetrieveNaicsResponse</code>
- <code title="get /brand/retrieve-simplified">client.brand.<a href="./src/resources/brand.ts">retrieveSimplified</a>({ ...params }) -> BrandRetrieveSimplifiedResponse</code>
- <code title="get /brand/screenshot">client.brand.<a href="./src/resources/brand.ts">screenshot</a>({ ...params }) -> BrandScreenshotResponse</code>
- <code title="get /brand/styleguide">client.brand.<a href="./src/resources/brand.ts">styleguide</a>({ ...params }) -> BrandStyleguideResponse</code>
- <code title="get /web/scrape/html">client.brand.<a href="./src/resources/brand.ts">webScrapeHTML</a>({ ...params }) -> BrandWebScrapeHTMLResponse</code>
- <code title="get /web/scrape/images">client.brand.<a href="./src/resources/brand.ts">webScrapeImages</a>({ ...params }) -> BrandWebScrapeImagesResponse</code>
- <code title="get /web/scrape/markdown">client.brand.<a href="./src/resources/brand.ts">webScrapeMd</a>({ ...params }) -> BrandWebScrapeMdResponse</code>
- <code title="get /web/scrape/sitemap">client.brand.<a href="./src/resources/brand.ts">webScrapeSitemap</a>({ ...params }) -> BrandWebScrapeSitemapResponse</code>

# Industry

Types:

- <code><a href="./src/resources/industry.ts">IndustryRetrieveNaicsResponse</a></code>

Methods:

- <code title="get /brand/naics">client.industry.<a href="./src/resources/industry.ts">retrieveNaics</a>({ ...params }) -> IndustryRetrieveNaicsResponse</code>

# Utility

Types:

- <code><a href="./src/resources/utility.ts">UtilityPrefetchResponse</a></code>
- <code><a href="./src/resources/utility.ts">UtilityPrefetchByEmailResponse</a></code>

Methods:

- <code title="post /brand/prefetch">client.utility.<a href="./src/resources/utility.ts">prefetch</a>({ ...params }) -> UtilityPrefetchResponse</code>
- <code title="post /brand/prefetch-by-email">client.utility.<a href="./src/resources/utility.ts">prefetchByEmail</a>({ ...params }) -> UtilityPrefetchByEmailResponse</code>
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": "0.2.0",
"version": "0.3.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": "0.2.0",
"version": "0.3.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": "0.2.0",
"version": "0.3.0",
"description": "The official MCP Server for the Context Dev API",
"author": "Context Dev <hello@context.dev>",
"types": "dist/index.d.ts",
Expand Down
26 changes: 13 additions & 13 deletions packages/mcp-server/src/code-tool-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,26 @@ function getTSDiagnostics(code: string): string[] {

const fuse = new Fuse(
[
'client.brand.aiProduct',
'client.brand.aiProducts',
'client.brand.aiQuery',
'client.brand.fonts',
'client.web.screenshot',
'client.web.webScrapeHTML',
'client.web.webScrapeImages',
'client.web.webScrapeMd',
'client.web.webScrapeSitemap',
'client.ai.aiQuery',
'client.ai.extractProduct',
'client.ai.extractProducts',
'client.style.extractFonts',
'client.style.extractStyleguide',
'client.brand.identifyFromTransaction',
'client.brand.prefetch',
'client.brand.prefetchByEmail',
'client.brand.retrieve',
'client.brand.retrieveByEmail',
'client.brand.retrieveByIsin',
'client.brand.retrieveByName',
'client.brand.retrieveByTicker',
'client.brand.retrieveNaics',
'client.brand.retrieveSimplified',
'client.brand.screenshot',
'client.brand.styleguide',
'client.brand.webScrapeHTML',
'client.brand.webScrapeImages',
'client.brand.webScrapeMd',
'client.brand.webScrapeSitemap',
'client.industry.retrieveNaics',
'client.utility.prefetch',
'client.utility.prefetchByEmail',
],
{ threshold: 1, shouldSort: true },
);
Expand Down
120 changes: 60 additions & 60 deletions packages/mcp-server/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,76 @@ export type SdkMethod = {

export const sdkMethods: SdkMethod[] = [
{
clientCallName: 'client.brand.retrieve',
fullyQualifiedName: 'brand.retrieve',
clientCallName: 'client.web.screenshot',
fullyQualifiedName: 'web.screenshot',
httpMethod: 'get',
httpPath: '/brand/retrieve',
httpPath: '/brand/screenshot',
},
{
clientCallName: 'client.web.webScrapeHTML',
fullyQualifiedName: 'web.webScrapeHTML',
httpMethod: 'get',
httpPath: '/web/scrape/html',
},
{
clientCallName: 'client.web.webScrapeImages',
fullyQualifiedName: 'web.webScrapeImages',
httpMethod: 'get',
httpPath: '/web/scrape/images',
},
{
clientCallName: 'client.web.webScrapeMd',
fullyQualifiedName: 'web.webScrapeMd',
httpMethod: 'get',
httpPath: '/web/scrape/markdown',
},
{
clientCallName: 'client.web.webScrapeSitemap',
fullyQualifiedName: 'web.webScrapeSitemap',
httpMethod: 'get',
httpPath: '/web/scrape/sitemap',
},
{
clientCallName: 'client.brand.aiProduct',
fullyQualifiedName: 'brand.aiProduct',
clientCallName: 'client.ai.aiQuery',
fullyQualifiedName: 'ai.aiQuery',
httpMethod: 'post',
httpPath: '/brand/ai/product',
httpPath: '/brand/ai/query',
},
{
clientCallName: 'client.brand.aiProducts',
fullyQualifiedName: 'brand.aiProducts',
clientCallName: 'client.ai.extractProduct',
fullyQualifiedName: 'ai.extractProduct',
httpMethod: 'post',
httpPath: '/brand/ai/products',
httpPath: '/brand/ai/product',
},
{
clientCallName: 'client.brand.aiQuery',
fullyQualifiedName: 'brand.aiQuery',
clientCallName: 'client.ai.extractProducts',
fullyQualifiedName: 'ai.extractProducts',
httpMethod: 'post',
httpPath: '/brand/ai/query',
httpPath: '/brand/ai/products',
},
{
clientCallName: 'client.brand.fonts',
fullyQualifiedName: 'brand.fonts',
clientCallName: 'client.style.extractFonts',
fullyQualifiedName: 'style.extractFonts',
httpMethod: 'get',
httpPath: '/brand/fonts',
},
{
clientCallName: 'client.brand.identifyFromTransaction',
fullyQualifiedName: 'brand.identifyFromTransaction',
clientCallName: 'client.style.extractStyleguide',
fullyQualifiedName: 'style.extractStyleguide',
httpMethod: 'get',
httpPath: '/brand/transaction_identifier',
httpPath: '/brand/styleguide',
},
{
clientCallName: 'client.brand.prefetch',
fullyQualifiedName: 'brand.prefetch',
httpMethod: 'post',
httpPath: '/brand/prefetch',
clientCallName: 'client.brand.retrieve',
fullyQualifiedName: 'brand.retrieve',
httpMethod: 'get',
httpPath: '/brand/retrieve',
},
{
clientCallName: 'client.brand.prefetchByEmail',
fullyQualifiedName: 'brand.prefetchByEmail',
httpMethod: 'post',
httpPath: '/brand/prefetch-by-email',
clientCallName: 'client.brand.identifyFromTransaction',
fullyQualifiedName: 'brand.identifyFromTransaction',
httpMethod: 'get',
httpPath: '/brand/transaction_identifier',
},
{
clientCallName: 'client.brand.retrieveByEmail',
Expand All @@ -82,53 +106,29 @@ export const sdkMethods: SdkMethod[] = [
httpMethod: 'get',
httpPath: '/brand/retrieve-by-ticker',
},
{
clientCallName: 'client.brand.retrieveNaics',
fullyQualifiedName: 'brand.retrieveNaics',
httpMethod: 'get',
httpPath: '/brand/naics',
},
{
clientCallName: 'client.brand.retrieveSimplified',
fullyQualifiedName: 'brand.retrieveSimplified',
httpMethod: 'get',
httpPath: '/brand/retrieve-simplified',
},
{
clientCallName: 'client.brand.screenshot',
fullyQualifiedName: 'brand.screenshot',
httpMethod: 'get',
httpPath: '/brand/screenshot',
},
{
clientCallName: 'client.brand.styleguide',
fullyQualifiedName: 'brand.styleguide',
httpMethod: 'get',
httpPath: '/brand/styleguide',
},
{
clientCallName: 'client.brand.webScrapeHTML',
fullyQualifiedName: 'brand.webScrapeHTML',
clientCallName: 'client.industry.retrieveNaics',
fullyQualifiedName: 'industry.retrieveNaics',
httpMethod: 'get',
httpPath: '/web/scrape/html',
},
{
clientCallName: 'client.brand.webScrapeImages',
fullyQualifiedName: 'brand.webScrapeImages',
httpMethod: 'get',
httpPath: '/web/scrape/images',
httpPath: '/brand/naics',
},
{
clientCallName: 'client.brand.webScrapeMd',
fullyQualifiedName: 'brand.webScrapeMd',
httpMethod: 'get',
httpPath: '/web/scrape/markdown',
clientCallName: 'client.utility.prefetch',
fullyQualifiedName: 'utility.prefetch',
httpMethod: 'post',
httpPath: '/brand/prefetch',
},
{
clientCallName: 'client.brand.webScrapeSitemap',
fullyQualifiedName: 'brand.webScrapeSitemap',
httpMethod: 'get',
httpPath: '/web/scrape/sitemap',
clientCallName: 'client.utility.prefetchByEmail',
fullyQualifiedName: 'utility.prefetchByEmail',
httpMethod: 'post',
httpPath: '/brand/prefetch-by-email',
},
];

Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const newMcpServer = async (stainlessApiKey: string | undefined) =>
new McpServer(
{
name: 'context_dev_api',
version: '0.2.0',
version: '0.3.0',
},
{
instructions: await getInstructions(stainlessApiKey),
Expand Down
Loading
Loading