-
Notifications
You must be signed in to change notification settings - Fork 0
feat(adt-mcp): enforce scoped safe execution #143
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
81dc2bd
feat(adt-mcp): enforce scoped safe execution
ThePlenkov 31c73be
fix: format mcp-runtime, refactor run-unit-tests for code health, swa…
devin-ai-integration[bot] 1da266d
fix(review): address PR #143 review threads\n\n- Deduplicate scope de…
devin-ai-integration[bot] d6807f5
refactor: split wrapToolHandler and initializeCsrf to improve code he…
devin-ai-integration[bot] 8f83e8c
fix(review): address Baz and Gitar threads on safe-execute dispatch\n…
devin-ai-integration[bot] d15941c
fix(codacy): suppress false-positive header-injection on Map counters
devin-ai-integration[bot] 5132a02
fix(codacy): inline nosemgrep suppression for Map.set false positive
devin-ai-integration[bot] ee0fd77
fix(review): address remaining Baz/Cubic/CodeRabbit review threads
devin-ai-integration[bot] 6746f00
refactor: reduce CodeScene complexity/argument warnings
devin-ai-integration[bot] 3fbb0b3
fix: Sonar/Codacy issues in scoped execution
devin-ai-integration[bot] a948ab4
fix(session): pass URL objects directly to fetch to satisfy Codacy ta…
devin-ai-integration[bot] 7d493f3
fix(session): suppress Opengrep SSRF false positives on validated ADT…
devin-ai-integration[bot] 3dd2368
fix(adt-mcp, adt-client): address P1 review threads
devin-ai-integration[bot] 6d2bfc4
fix(adt-client, adt-mcp): SSRF session-path normalization and safe-ex…
devin-ai-integration[bot] d3bd8ae
fix(adt-mcp): return normal MCP error for missing ATC object under sa…
devin-ai-integration[bot] 848b15c
fix(adt-mcp): stable ATC object-not-found error and avoid orphan work…
devin-ai-integration[bot] 911b007
Merge branch 'main' into feat/scoped-safe-execution
ThePlenkov 89e5490
fix(adt-mcp): address Devin Review thread gaps
devin-ai-integration[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { AsyncLocalStorage } from 'node:async_hooks'; | ||
|
|
||
| const adtAbortSignal = new AsyncLocalStorage<AbortSignal>(); | ||
|
|
||
| /** | ||
| * Runs an ADT operation with an execution-scoped abort signal. Async local | ||
| * storage keeps concurrent clients and invocations isolated without mutating | ||
| * shared client state. | ||
| */ | ||
| export async function runWithAdtAbortSignal<T>( | ||
| signal: AbortSignal, | ||
| operation: () => Promise<T>, | ||
| ): Promise<T> { | ||
| signal.throwIfAborted(); | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
|
||
| return await adtAbortSignal.run(signal, operation); | ||
| } | ||
|
|
||
| export function activeAdtAbortSignal(): AbortSignal | undefined { | ||
| return adtAbortSignal.getStore(); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.