Skip to content

Invalidate credentials preview #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 233 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
4cd5e73
docs: add error handling when it fails to start HTTP server
formulahendry Apr 20, 2025
52476aa
fix: add windows env PROGRAMFILES, avoid some exe can not be found
muzea Apr 23, 2025
2deffb6
test(server): add more tests forSSEServerTransport class
christian-bromann Apr 24, 2025
b71e096
fix: add missing eventsource-parser dependency
domnit Apr 28, 2025
59fb484
fix: Expose the MCP child process PID as an accessible property in St…
XiaofuHuang May 6, 2025
7e134f2
test: add ut of chile process pod in StdioClientTransport
XiaofuHuang May 6, 2025
d154914
fix: change pid return type from undefined to be null
May 6, 2025
fd13cd9
doc minimum node version requirment
marcopeg May 8, 2025
ae121a4
Bump formidable in the npm_and_yarn group across 1 directory
dependabot[bot] May 14, 2025
04cbbfb
elicitation example
ihrpr May 20, 2025
a89f950
post-rebase fixes
bhosmer-ant May 21, 2025
eea1519
lint
bhosmer-ant May 22, 2025
eefdcf5
docs: Add clarifying comments for stateless streamable HTTP endpoints
dhodun May 24, 2025
5f5180c
Register completions capabilities
fredericbarthelet May 26, 2025
269c8ca
Remove server-specific capabilities definition from Client constructo…
fredericbarthelet May 26, 2025
7e05215
Add tests for completions capability registration on template resourc…
fredericbarthelet May 26, 2025
adbacc6
Add DNS rebinding protection for SSE transport
ddworken May 29, 2025
ebf2535
Add protections for streamable HTTP too
ddworken May 29, 2025
41c7ed0
Revert package-lock change
ddworken May 29, 2025
88c6098
Clean up
ddworken May 29, 2025
970905c
Fix SSE content-type error message format
ddworken May 29, 2025
be063e4
fix: extra Headers when they are a Headers object
garciasdos May 30, 2025
ab90083
Invert variable to improve code readability
ddworken May 30, 2025
6cf0345
updates listed resources from resource templates to favor their own m…
carlpeaslee May 30, 2025
921ce70
fix: missing "properties" property in empty schema
sinedied Jun 9, 2025
2cf4f0c
Merge pull request #546 from fredericbarthelet/register-completions-c…
ihrpr Jun 10, 2025
eed97c9
Merge branch 'main' into ihrpr/elicitation
ihrpr Jun 10, 2025
2d61b4b
adding README
ihrpr Jun 10, 2025
c088719
tests
ihrpr Jun 10, 2025
84971c8
Set Mcp-Protocol-Version in client requests after init, and warn when…
ochafik Jun 10, 2025
449671d
Merge branch 'main' into main
ddworken Jun 11, 2025
18f8b40
Merge branch 'main' into ochafik/protocol-version
ochafik Jun 11, 2025
28e2efa
Merge branch 'main' into main
garciasdos Jun 12, 2025
255d30c
Rename ResourceReference to ResourceTemplateReference
ihrpr Jun 12, 2025
bb0592b
add supported versions to error message
ochafik Jun 12, 2025
a28e25a
use const in test
ochafik Jun 12, 2025
e573a0f
nits: remove dead comment & align test style on local idioms
ochafik Jun 12, 2025
4e9d6a7
Merge branch 'ochafik/protocol-version' of https://github.com/modelco…
ochafik Jun 12, 2025
bc53129
adding tests to prevent regressions
ihrpr Jun 12, 2025
9d3374c
Merge pull request #574 from loopwork-ai/carlpeaslee/fix-resource-tem…
ihrpr Jun 12, 2025
b6f0273
Merge pull request #621 from modelcontextprotocol/carlpeaslee/fix-res…
bhosmer-ant Jun 12, 2025
ea6d97d
1.12.3
ihrpr Jun 12, 2025
dd69efa
Merge pull request #623 from modelcontextprotocol/ihrpr/1.12.3
ihrpr Jun 12, 2025
4aaa26d
remove protocol version mismatch warning
ochafik Jun 13, 2025
33257f1
switch to optional Transport.setProtocolVersion
ochafik Jun 13, 2025
6b3d326
Merge pull request #614 from modelcontextprotocol/ochafik/protocol-ve…
ihrpr Jun 13, 2025
db9ba7b
raw request propagation in tools - implementation, unit tests, types
KKonstantinov Jun 13, 2025
e714050
Merge branch 'main' into request-propagation-in-tools
KKonstantinov Jun 13, 2025
9bf5c62
Merge pull request #619 from modelcontextprotocol/ihrpr/602
ihrpr Jun 15, 2025
e7284d2
added _meta to more objects
ihrpr Jun 15, 2025
4d03b24
add title
ihrpr Jun 15, 2025
7e59081
add resource link
ihrpr Jun 15, 2025
6dd0b1e
Update readme file to include a tip to allow `mcp-session-id` in CORS…
Achintha444 Jun 16, 2025
18d266b
Merge branch 'main' into main
Achintha444 Jun 16, 2025
86dbcfe
Merge pull request #630 from modelcontextprotocol/ihrpr/additinal-meta
ihrpr Jun 16, 2025
e808827
Merge branch 'main' into ihrpr/title
ihrpr Jun 16, 2025
d1c94a2
refactor
ihrpr Jun 16, 2025
bce2dbf
small fixes like argsSchema
ihrpr Jun 16, 2025
8719f93
clean up mcp.ts
ihrpr Jun 16, 2025
3f939be
readme fixes and template tests for title
ihrpr Jun 16, 2025
e78c1b7
fix
ihrpr Jun 16, 2025
90e4595
show name and title in example
ihrpr Jun 16, 2025
f1a07a9
ci fix
ihrpr Jun 16, 2025
ddc1a0c
Merge pull request #631 from modelcontextprotocol/ihrpr/title
ihrpr Jun 16, 2025
cacc3bc
Merge branch 'main' into ihrpr/resource-link
ihrpr Jun 16, 2025
97519d3
add description to resourse link
ihrpr Jun 16, 2025
1e5f0e1
whitespaces
ihrpr Jun 16, 2025
f822c12
Merge pull request #632 from modelcontextprotocol/ihrpr/resource-link
ihrpr Jun 16, 2025
c90d6c9
add context with arguments to completable
ihrpr Jun 16, 2025
42c3967
add to readme
ihrpr Jun 16, 2025
0e86a6d
improve readme
ihrpr Jun 16, 2025
c0c78ad
add how to use Completions to the readme
ihrpr Jun 16, 2025
4549250
readme
ihrpr Jun 16, 2025
5b875aa
clean up
ihrpr Jun 16, 2025
5b5e192
Merge branch 'main' into main
Achintha444 Jun 16, 2025
e89137f
Merge pull request #634 from modelcontextprotocol/ihrpr/context-for-c…
bhosmer-ant Jun 16, 2025
3df7325
Add missing _meta fields to match spec requirements
felixweinberger Jun 16, 2025
61ef3c9
Merge pull request #636 from modelcontextprotocol/fweinberger/addtl-meta
ihrpr Jun 16, 2025
71abccb
Merge branch 'main' into request-propagation-in-tools
KKonstantinov Jun 16, 2025
54c3010
Merge branch 'main' into ihrpr/elicitation
ihrpr Jun 16, 2025
4af2d4f
separate code block in README
ihrpr Jun 16, 2025
bbc128c
Merge pull request #520 from modelcontextprotocol/ihrpr/elicitation
ihrpr Jun 16, 2025
7b5bfce
implementation of RFC 8707 Resource Indicators (Fixes #592, Fixes #635)
ochafik Jun 16, 2025
784d944
update _meta comments
bhosmer-ant Jun 16, 2025
2e119aa
Merge pull request #639 from modelcontextprotocol/basil/_meta_language
bhosmer-ant Jun 16, 2025
1f4e42c
cleanup auth-utils and remove example files
ochafik Jun 16, 2025
cba6a6e
Update authorize.config.test.ts
ochafik Jun 16, 2025
ccccb4b
simplify PR / only keep verification in demo inmemory oauth provider
ochafik Jun 16, 2025
5a8af45
In src/examples/server/simpleStreamableHttp.ts
cliffhall Jun 16, 2025
e542ec1
docs: update PR description to clarify server-side validation is in d…
ochafik Jun 16, 2025
17897b8
Merge branch 'main' into dhodun/add-streamable-http-comments
dhodun Jun 16, 2025
188c1d3
Merge branch 'main' into main
ddworken Jun 16, 2025
6656d23
Simplify demo in-memory oauth provider
ochafik Jun 16, 2025
02ce81b
simplify diff
ochafik Jun 16, 2025
36f338a
Update demoInMemoryOAuthProvider.ts
ochafik Jun 16, 2025
224a2e2
update resource to be a url
ochafik Jun 16, 2025
551a439
use URL for resource throughout
ochafik Jun 16, 2025
6e4fc52
Update demoInMemoryOAuthProvider.test.ts
ochafik Jun 16, 2025
8b9aa20
Jerome/fix/dev oauth server required scopes change (#629)
jerome3o-anthropic Jun 17, 2025
ec0c504
rm noise
ochafik Jun 17, 2025
b16a415
cleanups
ochafik Jun 17, 2025
badb5dc
fix tests
ochafik Jun 17, 2025
4f708a7
update latest protocol version
ihrpr Jun 17, 2025
fd3165c
Merge branch 'main' into main
jerome3o-anthropic Jun 17, 2025
515abb4
fix lints
ochafik Jun 17, 2025
741a201
remove hasCustomTitle
ihrpr Jun 17, 2025
3e95a8b
Merge pull request #645 from modelcontextprotocol/ihrpr/remove-custom…
ihrpr Jun 17, 2025
824c1f5
Merge pull request #643 from modelcontextprotocol/ihrpr/june-protocol…
bhosmer-ant Jun 17, 2025
40f61d8
show how to enable strict resource checking in mcp server
ochafik Jun 17, 2025
617facc
Add test for default protocol version negotiation in bearerAuth middl…
ochafik Jun 17, 2025
66465ab
change version
ihrpr Jun 17, 2025
9b99ffb
Merge pull request #647 from modelcontextprotocol/ihrpr/update-versio…
bhosmer-ant Jun 17, 2025
c5922f8
Fix node 18 incompatibility caused by race condition with closing ser…
ddworken Jun 17, 2025
c8f633a
Merge branch 'main' into main
ddworken Jun 17, 2025
c2150f0
Update README.md
ochafik Jun 17, 2025
b92243b
Merge branch 'main' into main
Achintha444 Jun 17, 2025
bf72f87
cleanups
ochafik Jun 18, 2025
4a88cac
Update simpleStreamableHttp.ts
ochafik Jun 18, 2025
d58c2eb
Update simpleStreamableHttp.ts
ochafik Jun 18, 2025
aebb2ab
Update simpleStreamableHttp.ts
ochafik Jun 18, 2025
049170d
minimize diff
ochafik Jun 18, 2025
b77361b
Update streamableHttp.ts
ochafik Jun 18, 2025
8475e43
drop redundant resource canonicalization tests
ochafik Jun 18, 2025
e5b2a5b
fix simpleStreamableHttp.ts
ochafik Jun 18, 2025
4fcbb68
verify PRM resource
ochafik Jun 18, 2025
68424ef
simplify changes
ochafik Jun 18, 2025
9e2a565
minimize changes
ochafik Jun 18, 2025
6a01d0d
shrink token.test.ts
ochafik Jun 18, 2025
5c60c77
shrink diff
ochafik Jun 18, 2025
354318f
auth: don't fail the prm if the resource doesn't match
ochafik Jun 18, 2025
bac384f
simplify tests
ochafik Jun 18, 2025
a7f9c59
Fix SSE test resource URL validation errors
ochafik Jun 18, 2025
f0ea31c
Update auth.test.ts
ochafik Jun 18, 2025
3f07bdb
shrink tests
ochafik Jun 18, 2025
e76faf6
fix: skip validation if tool reports error
Jun 18, 2025
4b3db9b
stricter PRM check overridable w/ OAuthClientProvider.validateProtect…
ochafik Jun 18, 2025
f854b58
test validateProtectedResourceMetadata override
ochafik Jun 18, 2025
dada5f6
wip helper func
pcarleton Jun 18, 2025
4c51230
fix tests
pcarleton Jun 18, 2025
86bed6a
adjust comment
pcarleton Jun 18, 2025
90569d8
Merge pull request #638 from modelcontextprotocol/ochafik/auth-resource
ihrpr Jun 18, 2025
e7a5e33
rename decline to reject
ihrpr Jun 18, 2025
54a8556
bump version
ihrpr Jun 18, 2025
2f9530b
fix typo
ihrpr Jun 18, 2025
00a631c
Merge pull request #657 from modelcontextprotocol/ihrpr/decline-reject
ihrpr Jun 18, 2025
a68dcdf
Merge pull request #659 from modelcontextprotocol/ihrpr/1.13.0
ihrpr Jun 18, 2025
b293911
add overloads for registerResource method in McpServer class
kentcdodds Jun 19, 2025
d4c4dcc
Merge branch 'main' into main
Achintha444 Jun 19, 2025
2a23890
simpleStreamableHttp: fix example code (#660)
ochafik Jun 19, 2025
87da0e0
adjust default validation for resource parameter in client flow, and …
pcarleton Jun 19, 2025
eff548c
adjust to provided resource
pcarleton Jun 19, 2025
744b9ea
build: add watching script targets for build & simple streamable http…
ochafik Jun 19, 2025
81570d2
Merge branch 'main' into main
Achintha444 Jun 20, 2025
f4b8a48
feat: remove console statements from SDK code
ashwin-ant Jun 20, 2025
fc9ca5f
fix: update ToolCallback type to include output arguments for better …
sushichan044 Jun 20, 2025
1910358
Merge pull request #668 from modelcontextprotocol/ashwin/logremoval
ihrpr Jun 20, 2025
66b7cd2
Merge pull request #664 from modelcontextprotocol/pcarleton/auth-reso…
ihrpr Jun 20, 2025
08808a4
test: add type assertion to bypass type check
sushichan044 Jun 20, 2025
9edb619
make protocol class not overwrite existing hooks when connecting tran…
nichtsam May 9, 2025
d89e854
fix(client/sse): extract protected resource from eventsource 401
chrisdickinson Jun 20, 2025
0506add
Merge pull request #675 from chrisdickinson/chris/20250620-sse-authth…
ihrpr Jun 20, 2025
d897ee8
Merge branch 'main' into main
Achintha444 Jun 22, 2025
9c3ef4f
1.13.1
ihrpr Jun 23, 2025
cb4743d
Merge pull request #683 from modelcontextprotocol/ihrpr/1.13.1
ihrpr Jun 23, 2025
4f24b8b
Fix `/.well-known/oauth-authorization-server` dropping path
calclavia Jun 23, 2025
da6ac79
Fix missing issuer
calclavia Jun 23, 2025
6220701
Fix trailing slash
calclavia Jun 23, 2025
1ff08e4
Add path test
calclavia Jun 23, 2025
0a425f4
Merge branch 'main' into main
Achintha444 Jun 24, 2025
0fc9bd0
Merge pull request #687 from smithery-ai/patch-1
ihrpr Jun 24, 2025
03da7cf
fallback
ihrpr Jun 24, 2025
ebf8e2d
Merge pull request #692 from modelcontextprotocol/ihrpr/fallback-for-…
ihrpr Jun 24, 2025
15a2277
refactor resource selection to not include resource if PRM is not pre…
pcarleton Jun 24, 2025
96ff857
Merge branch 'main' into request-propagation-in-tools
KKonstantinov Jun 24, 2025
600c623
Merge pull request #693 from modelcontextprotocol/pcarleton/resource-…
ihrpr Jun 24, 2025
dff036e
Merge branch 'main' into request-propagation-in-tools
KKonstantinov Jun 24, 2025
c20a47a
small fixes
ihrpr Jun 24, 2025
33e03f4
Merge branch 'main' into fix/skip_validate_if_error
ihrpr Jun 24, 2025
c401939
Merge pull request #655 from Areo-Joe/fix/skip_validate_if_error
ihrpr Jun 24, 2025
33895f4
Merge branch 'main' into request-propagation-in-tools
KKonstantinov Jun 24, 2025
166da76
extra parameter - remain optional for backwards compatibility
KKonstantinov Jun 24, 2025
05d98bb
feat(shared/auth): support software_statement in OAuthClientMetadata …
chrisdickinson Jun 25, 2025
384095c
Merge branch 'main' into request-propagation-in-tools
KKonstantinov Jun 25, 2025
f733207
Merge pull request #640 from cliffhall/report-session-id-per-request
ihrpr Jun 25, 2025
606c278
clean up tests - remove mockRequestInfo
KKonstantinov Jun 25, 2025
924c1ce
Merge branch 'request-propagation-in-tools' of github.com:KKonstantin…
KKonstantinov Jun 25, 2025
a94a63a
Merge branch 'main' into request-propagation-in-tools
KKonstantinov Jun 25, 2025
fc85113
Merge branch 'main' into main
Achintha444 Jun 25, 2025
4621105
Merge pull request #627 from KKonstantinov/request-propagation-in-tools
ihrpr Jun 25, 2025
7a64f97
Add: Sampling Example to README
RishiNandha Jun 25, 2025
b232faf
Fixed Tabs
RishiNandha Jun 25, 2025
ca9924b
Changed example
RishiNandha Jun 25, 2025
4954cd7
Merge branch 'main' into main
Achintha444 Jun 25, 2025
5f96ae4
update PR#633 to address the comment about improving the example
Achintha444 Jun 25, 2025
909fe5d
Merge pull request #633 from Achintha444/main
ihrpr Jun 25, 2025
71d309d
Merge pull request #477 from nichtsam/pr/protocol-overwriting-transpo…
ihrpr Jun 26, 2025
a783c5a
Merge pull request #542 from dhodun/dhodun/add-streamable-http-comments
ihrpr Jun 26, 2025
6e0b699
Merge pull request #428 from modelcontextprotocol/dependabot/npm_and_…
ihrpr Jun 26, 2025
08c767f
Merge branch 'main' into cb/sse-tests
christian-bromann Jun 26, 2025
362acfc
Update package-lock.json
christian-bromann Jun 26, 2025
f76652b
Update src/server/sse.test.ts
christian-bromann Jun 26, 2025
be845dd
Merge pull request #391 from christian-bromann/cb/sse-tests
ihrpr Jun 26, 2025
9d678ce
1.13.2
ihrpr Jun 26, 2025
1e52f38
Merge pull request #701 from modelcontextprotocol/ihrpr/1.13.2
ihrpr Jun 26, 2025
185fb23
Merge branch 'main' into main
ddworken Jun 26, 2025
8bc7374
Fix merge conflict
ddworken Jun 26, 2025
26a98de
Merge pull request #565 from ddworken/main
ihrpr Jun 27, 2025
53ad0a0
fix lint
ihrpr Jun 27, 2025
0c9b9fb
Merge pull request #704 from modelcontextprotocol/ihrpr/fix-lint
ihrpr Jun 27, 2025
c17d851
Merge branch 'main' into eventsource-parser-dep
ihrpr Jun 27, 2025
773b842
Merge pull request #424 from domnit/eventsource-parser-dep
ihrpr Jun 27, 2025
d54ebee
Merge branch 'main' into hotfix/windows-default-env
felixweinberger Jun 27, 2025
191c2cb
Merge pull request #386 from muzea/hotfix/windows-default-env
felixweinberger Jun 27, 2025
99c7528
Merge pull request #661 from kentcdodds/resource-types
ihrpr Jun 27, 2025
64a60c4
Merge pull request #571 from garciasdos/main
ihrpr Jun 27, 2025
fb303d7
tidying up
sushichan044 Jun 28, 2025
7682c4c
Merge pull request #598 from sinedied/fix-empty-schema
ihrpr Jun 30, 2025
0db4407
Merge branch 'main' into xiaofhua/pid-StdioClientTransport
ihrpr Jun 30, 2025
a1a486d
Merge pull request #455 from XiaofuHuang/xiaofhua/pid-StdioClientTran…
ihrpr Jun 30, 2025
a40b353
Merge branch 'main' into feat/structured-content-with-type-safety
bhosmer-ant Jun 30, 2025
9533972
Merge pull request #670 from sushichan044/feat/structured-content-wit…
bhosmer-ant Jun 30, 2025
27a412c
Merge branch 'main' into main
ihrpr Jun 30, 2025
0a1cfd9
Merge pull request #463 from marcopeg/main
ihrpr Jun 30, 2025
a02704c
Merge branch 'main' into junhan/http-doc
ihrpr Jun 30, 2025
5e20ee1
Merge pull request #371 from formulahendry/junhan/http-doc
ihrpr Jun 30, 2025
3d6acd3
add an example and update readme
ihrpr Jun 30, 2025
a8fa0b3
build
ihrpr Jun 30, 2025
fb4d07f
Merge pull request #698 from RishiNandha/main
ihrpr Jun 30, 2025
6f5e53b
Returning undefined from `discoverOAuthMetadata` for CORS errors (#717)
geelen Jul 1, 2025
cfec7d9
1.13.3
ihrpr Jul 1, 2025
1b14bd7
Merge pull request #719 from modelcontextprotocol/ihrpr/1.13.3
ihrpr Jul 1, 2025
e36695b
Refactoring OAuthErrors
geelen May 29, 2025
877f4bf
Trying pkg.pr.new
geelen May 30, 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
Empty file added .git-blame-ignore-revs
Empty file.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Any Commit
on:
pull_request:
push:
branches:
- '**'
tags:
- '!**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- run: npm ci
- run: npm run build
- run: npx pkg-pr-new publish
Loading