Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
f80275a
feat(mcp): add OAuth 2.1 authorization with per-tool scope extraction…
asoorm Mar 11, 2026
4bda41a
fix(mcp): address code review findings for OAuth auth middleware
asoorm Mar 19, 2026
e966e52
fix(mcp): validate redirect_uri and remove scaffold test code
asoorm Mar 19, 2026
1b9a10c
refactor(mcp): simplify OAuth auth middleware and address review find…
asoorm Mar 24, 2026
3877456
fix(mcp): align go.mod dependencies with main branch
asoorm Mar 24, 2026
df167f7
fix(mcp): cap scope combinations to prevent unbounded growth
asoorm Mar 31, 2026
8f2b53d
fix(mcp): add language tags to code blocks
asoorm Mar 31, 2026
3559108
fix(mcp): inject request headers into context for tool handlers
asoorm Mar 31, 2026
c9f3cce
fix(mcp): surface auth errors from Connect for OAuth discovery flow
asoorm Mar 31, 2026
290ff87
fix: run go mod tidy for router
asoorm Mar 31, 2026
325cc4b
fix: run go mod tidy for router-tests
asoorm Mar 31, 2026
39fc0bb
feat(mcp): make max scope combinations configurable
asoorm Mar 31, 2026
18a5dd7
fix: gofmt router-tests files
asoorm Mar 31, 2026
c8200f1
fix: update config golden fixtures for max_scope_combinations
asoorm Mar 31, 2026
2307f80
fix(mcp): wire stateless mode to new SDK and fix integration tests
asoorm Mar 31, 2026
94ce881
test(mcp): assert 415 for non-standard Content-Type params after SDK …
asoorm Mar 31, 2026
76d3aea
fix(mcp): disable SDK cross-origin protection in favor of router CORS…
asoorm Apr 2, 2026
a9df0f7
test(mcp): expand OAuth scope E2E tests and add debug tooling
asoorm Apr 7, 2026
41a1448
test(mcp): add MCP OAuth E2E test project files
asoorm Apr 7, 2026
0b394fa
fix: update debug proxy description to be client-agnostic
asoorm Apr 7, 2026
412360c
Merge branch 'main' into ahmet/mcp-per-tool-scope-extraction
asoorm Apr 7, 2026
14b3c81
Merge branch 'main' into ahmet/mcp-per-tool-scope-extraction
asoorm Apr 7, 2026
8b2cad3
chore: license mcp-ts as Apache-2.0
asoorm Apr 14, 2026
61a5994
test(mcp): make expected operation info readable with raw strings
asoorm Apr 14, 2026
ef3bbc4
test(router): adapt containers/image WWW-Authenticate parser
asoorm Apr 14, 2026
e8491ce
test(mcp): move OAuth e2e tests into protocol/ so CI picks them up
asoorm Apr 14, 2026
e41a605
test(mcp): fix OAuth per-tool scope enforcement tests
asoorm Apr 14, 2026
5702537
test(mcp): drop per-route list from OAuthTestServer doc comment
asoorm Apr 14, 2026
4514d1f
refactor(mcp): make MaxScopeCombinations default explicit
asoorm Apr 14, 2026
bd6f1a1
refactor(mcp): port debug proxy from TypeScript to Go
asoorm Apr 14, 2026
4a15138
docs(mcp): move OAuth sample config alongside other router examples
asoorm Apr 14, 2026
b48c627
Merge branch 'main' into ahmet/mcp-per-tool-scope-extraction
asoorm Apr 15, 2026
0ad51ed
Update router/pkg/mcpserver/auth_middleware.go
asoorm Apr 17, 2026
5a7645f
Update router/pkg/mcpserver/auth_middleware.go
asoorm Apr 17, 2026
4f3dbfa
Merge branch 'main' into ahmet/mcp-per-tool-scope-extraction
asoorm Apr 17, 2026
c07310b
Update router/pkg/mcpserver/auth_middleware.go
asoorm Apr 17, 2026
498d081
Merge branch 'main' into ahmet/mcp-per-tool-scope-extraction
asoorm Apr 17, 2026
f51c5de
Update router-tests/testutil/oauth_server.go
asoorm Apr 20, 2026
66d2c78
test(router): rename mcp_auth_e2e_test.go to mcp_auth_client_test.go …
asoorm Apr 20, 2026
5b70af8
test(router): use httptest.NewServer in OAuthTestServer to avoid free…
asoorm Apr 20, 2026
2279b1f
refactor(router): extract MCP server bootstrap into startMCPServer me…
asoorm Apr 20, 2026
5b75c37
fix(router): avoid leaking wrapped auth error details in WWW-Authenti…
asoorm Apr 20, 2026
b42ee9e
refactor(router): unexport scope challenge helpers used only in-package
asoorm Apr 20, 2026
ed8b064
test(router): use portless example URL in mcp auth test constants
asoorm Apr 20, 2026
08d41cd
fix(router): propagate walker errors from scope extraction to fail cl…
asoorm Apr 20, 2026
9e1b533
test(router): document cross-product edge cases for empty OR and AND …
asoorm Apr 20, 2026
732b5d1
refactor(router): derive mcp server context from caller, drop unused …
asoorm Apr 20, 2026
7dd0a38
fix(router): guard validation error causes access against empty slice
asoorm Apr 20, 2026
1cf4c29
refactor(router): use raw string literal for operation info error
asoorm Apr 20, 2026
387979b
refactor(router): rename mcp oauth tests to ACE sentence pattern
asoorm Apr 20, 2026
99839a8
refactor(router): rename mcp unit tests to ACE sentence pattern
asoorm Apr 20, 2026
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,809 changes: 2,809 additions & 0 deletions client-tests/mcp-ts/package-lock.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions client-tests/mcp-ts/package.json
Comment thread
asoorm marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "mcp-ts",
"version": "1.0.0",
"description": "MCP OAuth scope enforcement E2E tests using the official MCP TypeScript SDK",
"type": "module",
"scripts": {
"test": "vitest run",
"test:watch": "vitest watch"
},
"keywords": [],
"author": "",
"license": "Apache-2.0",
"packageManager": "pnpm@9.12.3",
"devDependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"@types/node": "^22.19.15",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
}
}
Loading
Loading