Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
d693199
init sdk and monorepo
fahreddinozcan Nov 22, 2025
60c45dc
init sdk and monorepo
fahreddinozcan Nov 22, 2025
36dddaa
comment cleanup
fahreddinozcan Nov 22, 2025
9f2162d
Merge branch 'CTX7-854' of https://github.com/upstash/context7 into C…
fahreddinozcan Nov 22, 2025
04f30aa
remove bun.lock
fahreddinozcan Nov 22, 2025
7525dbc
cleanup: remove sdk package and deps
fahreddinozcan Nov 22, 2025
fce1dd3
update tsconfigs
fahreddinozcan Nov 22, 2025
3d7eb3f
chore: add temp changelog
fahreddinozcan Nov 22, 2025
cb7adb7
ci: update scripts
fahreddinozcan Nov 22, 2025
5c18d32
ci: update github workflows
fahreddinozcan Nov 22, 2025
b327fc1
fmt: workflows
fahreddinozcan Nov 22, 2025
22f7957
fix: search libraries response type
fahreddinozcan Nov 22, 2025
9a1b43d
ci: update pack-mcpb script
fahreddinozcan Nov 22, 2025
eb3c02f
feat: init ts sdk
fahreddinozcan Nov 22, 2025
83ff961
feat: add commands and http client
fahreddinozcan Nov 22, 2025
e1991c3
update keywords and author
fahreddinozcan Nov 23, 2025
c18c7bc
Merge branch 'master' of https://github.com/upstash/context7 into CTX…
fahreddinozcan Nov 24, 2025
bbc6fcc
update eslint config for mcp
fahreddinozcan Nov 24, 2025
8e8f2f5
include license and readme in build
fahreddinozcan Nov 24, 2025
a59b810
update release.yaml
fahreddinozcan Nov 24, 2025
f4cc0d8
add readme symlink
fahreddinozcan Nov 24, 2025
0f09941
include readme in mcp package
fahreddinozcan Nov 24, 2025
0cb72a0
chore: add canary release workflow and update configs
fahreddinozcan Nov 24, 2025
9db19b7
chore: format files
fahreddinozcan Nov 24, 2025
ecc2fb5
ci: add changeset check workflow
fahreddinozcan Nov 24, 2025
b8a68e6
canary release trigger
fahreddinozcan Nov 24, 2025
8bae3b6
ci: login to npm before release
fahreddinozcan Nov 24, 2025
646454f
bump mcp version on package
fahreddinozcan Nov 24, 2025
b20ac59
remove pr trigger from canary release
fahreddinozcan Nov 24, 2025
22d5118
ci: remove package input
fahreddinozcan Nov 24, 2025
e566213
Merge branch 'CTX7-854' of https://github.com/upstash/context7 into C…
fahreddinozcan Nov 24, 2025
9eb40da
finalize sdk with tests and proper types
fahreddinozcan Nov 24, 2025
b200a79
address reviews
fahreddinozcan Nov 24, 2025
e611098
add client tests
fahreddinozcan Nov 24, 2025
42aa380
feat: use env var automatically
fahreddinozcan Nov 24, 2025
dd29668
add docs
fahreddinozcan Nov 24, 2025
5857c2e
docs: update API documentation and add SDK guides
fahreddinozcan Nov 24, 2025
7e4c4e1
remove docs changes (moving to separate PR)
fahreddinozcan Nov 24, 2025
d47669c
docs: ts sdk docs
fahreddinozcan Nov 24, 2025
de7e38b
update sdk examples
fahreddinozcan Nov 24, 2025
596fcf7
remove docs
fahreddinozcan Nov 25, 2025
8d5e1dc
update build config with tsup
fahreddinozcan Nov 25, 2025
256a44a
cleanup comments
fahreddinozcan Nov 25, 2025
c621695
fix error hangling on http client
fahreddinozcan Nov 25, 2025
cb63f0d
minor fixes
fahreddinozcan Nov 25, 2025
d763419
address reviews
fahreddinozcan Nov 25, 2025
e9af0fd
add txt pagination feature
fahreddinozcan Nov 26, 2025
4445dd8
remove unnecessary types
fahreddinozcan Nov 26, 2025
caf709e
update docs with new paging txt feature
fahreddinozcan Nov 26, 2025
da387f5
Merge branch 'CTX7-855' of https://github.com/upstash/context7 into C…
fahreddinozcan Nov 26, 2025
0ccd2a8
update default format
fahreddinozcan Nov 26, 2025
ce85e46
cleanup
fahreddinozcan Nov 26, 2025
ac6591d
fmt
fahreddinozcan Nov 26, 2025
e14028c
update
fahreddinozcan Nov 26, 2025
1cc13eb
add mcp lint command
fahreddinozcan Nov 26, 2025
1ccb829
update format scripts
fahreddinozcan Nov 26, 2025
201f3f0
fix: update eslint and tsconfig with update
fahreddinozcan Nov 27, 2025
f118d0e
Merge branch 'CTX7-854' of https://github.com/upstash/context7 into C…
fahreddinozcan Nov 27, 2025
2b6ef42
add readme
fahreddinozcan Nov 27, 2025
737b2dd
make default format json
fahreddinozcan Nov 27, 2025
cae4fe6
change docType to mode
fahreddinozcan Nov 27, 2025
7cd69d5
Merge CTX7-855 into CTX7-855-docs
fahreddinozcan Nov 27, 2025
2e7009b
update basic usage
fahreddinozcan Nov 27, 2025
e593dea
Merge branch 'CTX7-855' of https://github.com/upstash/context7 into C…
fahreddinozcan Nov 27, 2025
529fdf3
apply interface changes
fahreddinozcan Nov 27, 2025
24c83b3
Merge master into CTX7-855-docs
fahreddinozcan Nov 28, 2025
a2cda59
remove changeset
fahreddinozcan Nov 28, 2025
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
1 change: 0 additions & 1 deletion docs/api-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,5 @@ const response = await fetch("https://context7.com/api/v2/docs/code/vercel/next.
Authorization: "Bearer CONTEXT7_API_KEY",
},
});

const docs = await response.json();
```
15 changes: 15 additions & 0 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@
"dashboard/billing"
]
},
{
"group": "SDKs",
"pages": [
{
"group": "TypeScript",
"pages": [
"sdks/ts/getting-started",
{
"group": "Commands",
"pages": ["sdks/ts/commands/search-library", "sdks/ts/commands/get-docs"]
}
]
}
]
},
{
"group": "API Reference",
"openapi": "openapi.json"
Expand Down
97 changes: 95 additions & 2 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,57 @@
]
}
},
"headers": {
"X-Context7-Page": {
"description": "Current page number (1-indexed). Only returned for text/plain responses (type=txt).",
"schema": {
"type": "integer",
"minimum": 1
},
"example": 1
},
"X-Context7-Limit": {
"description": "Number of items per page. Only returned for text/plain responses (type=txt).",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"example": 10
},
"X-Context7-Total-Pages": {
"description": "Total number of pages available. Only returned for text/plain responses (type=txt).",
"schema": {
"type": "integer",
"minimum": 0
},
"example": 10
},
"X-Context7-Has-Next": {
"description": "Whether a next page exists. Only returned for text/plain responses (type=txt).",
"schema": {
"type": "string",
"enum": ["true", "false"]
},
"example": "true"
},
"X-Context7-Has-Prev": {
"description": "Whether a previous page exists. Only returned for text/plain responses (type=txt).",
"schema": {
"type": "string",
"enum": ["true", "false"]
},
"example": "false"
},
"X-Context7-Total-Tokens": {
"description": "Total token count for the current page. Only returned for text/plain responses (type=txt).",
"schema": {
"type": "integer",
"minimum": 0
},
"example": 1500
}
},
"responses": {
"CodeSnippetsJsonResponse": {
"description": "Successful response with code snippets",
Expand Down Expand Up @@ -801,10 +852,31 @@
},
"text/plain": {
"schema": {
"type": "string"
"type": "string",
"description": "Plain text formatted documentation. Pagination metadata is returned via response headers."
},
"example": "### Create and Run Next.js App with create-next-app (Quick Start)\n\nSource: https://github.com/vercel/next.js/blob/canary/docs/01-app/01-getting-started/01-installation.mdx\n\nQuickly set up and start a new Next.js application using `create-next-app` with various package managers. This command creates a new project directory, installs dependencies, and starts the development server. The `--yes` flag skips interactive prompts, enabling a default setup with TypeScript, Tailwind, ESLint, App Router, and Turbopack.\n\n```bash\npnpm create next-app@latest my-app --yes\ncd my-app\npnpm dev\n```\n\n```bash\nnpx create-next-app@latest my-app --yes\ncd my-app\nnpm run dev\n```\n\n```bash\nyarn create next-app@latest my-app --yes\ncd my-app\nyarn dev\n```\n\n```bash\nbun create next-app@latest my-app --yes\ncd my-app\nbun dev\n```"
}
},
"headers": {
"X-Context7-Page": {
"$ref": "#/components/headers/X-Context7-Page"
},
"X-Context7-Limit": {
"$ref": "#/components/headers/X-Context7-Limit"
},
"X-Context7-Total-Pages": {
"$ref": "#/components/headers/X-Context7-Total-Pages"
},
"X-Context7-Has-Next": {
"$ref": "#/components/headers/X-Context7-Has-Next"
},
"X-Context7-Has-Prev": {
"$ref": "#/components/headers/X-Context7-Has-Prev"
},
"X-Context7-Total-Tokens": {
"$ref": "#/components/headers/X-Context7-Total-Tokens"
}
}
},
"InfoSnippetsJsonResponse": {
Expand Down Expand Up @@ -859,10 +931,31 @@
},
"text/plain": {
"schema": {
"type": "string"
"type": "string",
"description": "Plain text formatted documentation. Pagination metadata is returned via response headers."
},
"example": "### How to Contribute > Writing MDX\n\nSource: https://github.com/vercel/next.js/blob/canary/docs/04-community/01-contribution-guide.mdx\n\nThe docs are written in [MDX](https://mdxjs.com/), a markdown format that supports JSX syntax. This allows us to embed React components in the docs. See the [GitHub Markdown Guide](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) for a quick overview of markdown syntax."
}
},
"headers": {
"X-Context7-Page": {
"$ref": "#/components/headers/X-Context7-Page"
},
"X-Context7-Limit": {
"$ref": "#/components/headers/X-Context7-Limit"
},
"X-Context7-Total-Pages": {
"$ref": "#/components/headers/X-Context7-Total-Pages"
},
"X-Context7-Has-Next": {
"$ref": "#/components/headers/X-Context7-Has-Next"
},
"X-Context7-Has-Prev": {
"$ref": "#/components/headers/X-Context7-Has-Prev"
},
"X-Context7-Total-Tokens": {
"$ref": "#/components/headers/X-Context7-Total-Tokens"
}
}
},
"BadRequestError": {
Expand Down
Loading