Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli.
This report summarizes scanner evidence for openclaw/mcporter, a TypeScript project with 5,098 GitHub stars. SynthScan examined 91,030 lines of code across 521 source files, recording 234 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 2.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 234 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 230 finding(s).
Which changes need focused human review? 234 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 234 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/e2e-fixture-servers.test.ts | 521 | async function startDelayedSseHeadersProxy(targetUrl: string, delayMs: number): Promise<RunningHttpProxy> { | CODE |
| LOW | tests/oauth-bridge-get-post-concurrency.test.ts | 235 | function installFakeCallbackServer(): void { | CODE |
| LOW | tests/record-replay-cli.test.ts | 161 | async function expectPrivateRecordingPermissions(filePath: string): Promise<void> { | CODE |
| LOW | tests/chrome-devtools-relay-proxy.test.ts | 291 | function expectEphemeralAuthorization(authorization: string): void { | CODE |
| LOW | tests/runtime-elicitation.test.ts | 28 | function expectNoInjectedControlSequences(output: string): void { | CODE |
| LOW | tests/runtime-elicitation.test.ts | 396 | function promoteInMemoryPairToModern( | CODE |
| LOW | tests/oauth-session.test.ts | 1067 | async function startSeparatedOAuthDiscoveryServers(): Promise<{ | CODE |
| LOW | tests/chrome-relay-fixture.test.ts | 11 | function caseInsensitiveEnvironment(values: NodeJS.ProcessEnv): NodeJS.ProcessEnv { | CODE |
| LOW | tests/runtime-chrome-relay-handoff.test.ts | 169 | function assertCredentialFreeSpawn(shape: SpawnShape): void { | CODE |
| LOW | tests/emit-ts.test.ts | 934 | function compileUnderRepositoryConfig(rootNames: string[]): EmittedDiagnostic[] { | CODE |
| LOW | tests/helpers/runtime-test-helpers.ts | 32 | export function getRuntimeConnectionCache(runtime: Runtime): RuntimeConnectionCache { | CODE |
| LOW | tests/helpers/runtime-test-helpers.ts | 89 | export function createPendingAuthorizationSession() { | CODE |
| LOW | tests/helpers/chrome-relay-fixture.ts | 4 | export function isolateChromeRelayTestEnvironment(home: string, env: NodeJS.ProcessEnv = process.env): () => void { | CODE |
| LOW | tests/helpers/chrome-relay-fixture.ts | 26 | export function assertSyntheticRelayCredentialPath( | CODE |
| LOW | src/browser-relay-auth-v2.ts | 41 | export function canonicalizeBrowserRelayProof( | CODE |
| LOW | src/fs-json.ts | 214 | async function resolvePathFollowingSymlinks(filePath: string): Promise<string> { | CODE |
| LOW | src/fs-json.ts | 237 | async function canonicalizeParentDirectory(filePath: string): Promise<string> { | CODE |
| LOW | src/oauth-client-info.ts | 4 | export function buildStaticClientInformation( | CODE |
| LOW | src/runtime-process-utils.ts | 18 | export async function captureTransportProcessTree(transport: Transport): Promise<TransportProcessTree> { | CODE |
| LOW | src/runtime-process-utils.ts | 83 | async function ensureProcessTreeTerminated( | CODE |
| LOW | src/runtime-process-utils.ts | 184 | async function listDescendantPidsWindows(rootPid: number): Promise<number[]> { | CODE |
| LOW | src/runtime-process-utils.ts | 236 | function collectDescendantsFromChildren(rootPid: number, children: Map<number, number[]>): number[] { | CODE |
| LOW | src/config-normalize.ts | 113 | function resolveConfigEnvPlaceholders(name: string, raw: RawEntry, env = process.env): RawEntry { | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 168 | export function recordChromeDevtoolsRelayDecision(server: string, decision: ChromeDevtoolsRelayDecision): void { | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 172 | export function getChromeDevtoolsRelayDecision(server: string): ChromeDevtoolsRelayDecision | undefined { | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 176 | export function formatChromeDevtoolsRelayDecision(decision: ChromeDevtoolsRelayDecision): string { | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 180 | export function resolveChromeDevtoolsRelayProbeTimeoutMs(env: NodeJS.ProcessEnv = process.env): number { | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 188 | export function resolveChromeDevtoolsRelayPolicy( | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 473 | export function hashChromeDevtoolsRelayEnvironment( | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 480 | export function resolveChromeDevtoolsRelayEnvironment( | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 487 | function selectChromeDevtoolsRelayRuntimeEnvironment(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv { | CODE |
| LOW⚡ | src/chrome-devtools-relay.ts | 496 | function sanitizeRelayIdentityEnvironment(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv { | CODE |
| LOW | src/chrome-devtools-relay.ts | 199 | export function isChromeDevtoolsAutoConnectCommand(command: string, args: readonly string[]): boolean { | CODE |
| LOW | src/chrome-devtools-relay.ts | 225 | function resolveOpenClawCredentialDir(env: NodeJS.ProcessEnv): string { | CODE |
| LOW | src/chrome-devtools-relay.ts | 308 | export function shouldAttemptChromeDevtoolsRelay( | CODE |
| LOW | src/chrome-devtools-relay.ts | 321 | export async function rewriteChromeDevtoolsArgsForRelay( | CODE |
| LOW | src/chrome-devtools-relay.ts | 507 | export function chromeDevtoolsRelayEnvironmentKeys( | CODE |
| LOW | src/chrome-devtools-relay.ts | 551 | export function hashChromeDevtoolsRelayProcessEnvironment( | CODE |
| LOW | src/chrome-devtools-relay.ts | 559 | export async function resolveChromeDevtoolsRelayRuntimeIdentity( | CODE |
| LOW | src/chrome-devtools-relay.ts | 577 | function createRelayCredentialIdResolver(): (credentialPath: string) => string { | CODE |
| LOW | src/chrome-devtools-relay.ts | 609 | function relayEnvironmentIdentityValues( | CODE |
| LOW | src/chrome-devtools-relay.ts | 672 | function relayEnvironmentIdentityValue(key: string, env: NodeJS.ProcessEnv): string | number | null { | CODE |
| LOW | src/chrome-devtools-relay.ts | 690 | function relayIdentityDependsOnCwd(env: NodeJS.ProcessEnv): boolean { | CODE |
| LOW | src/chrome-devtools-relay.ts | 714 | function parseRelayDiscoveryIdentity(encoded: string): RelayDiscoveryIdentity | undefined { | CODE |
| LOW | src/chrome-devtools-relay.ts | 753 | function referencedEnvironmentVariables(value: string): string[] { | CODE |
| LOW | src/chrome-devtools-relay.ts | 762 | function resolveRelayDefinitionEnvOverrides( | CODE |
| LOW | src/chrome-devtools-relay.ts | 774 | function resolveRelayIdentityEnvOverrides( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 160 | export function runOpenClawRelayDiscovery( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 228 | export function resolveOpenClawRelayDiscoveryCommandPlan( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 251 | function resolveWindowsCommandInterpreter(env: NodeJS.ProcessEnv): string | undefined { | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 268 | function resolveWindowsOpenClawShim( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 289 | function isSafeWindowsSystemToolPath(value: string, basename: string): boolean { | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 305 | function isConventionalWindowsSystemCmd(value: string): boolean { | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 314 | function isSafeWindowsAbsolutePath(value: string): boolean { | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 368 | function sanitizeOpenClawDiscoveryCommandEnvironment( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 391 | function createOpenClawRelayDiscoveryTerminationPlan( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 410 | async function terminateOpenClawRelayDiscoveryProcessTree( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 478 | function validateDiscoveryCommandResult( | CODE |
| LOW | src/chrome-devtools-relay-discovery.ts | 617 | function openClawDiscoveryEnvironment(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv { | CODE |
| LOW | src/chrome-devtools-compat.ts | 24 | export function applyChromeDevtoolsCompat( | CODE |
| 170 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/cli-stdout-pipe-truncation.integration.test.ts | 21 | COMMENT | |
| LOW | tests/setup/isolate-home.ts | 1 | import fs from 'node:fs'; | COMMENT |
| LOW | tests/helpers/timing.ts | 1 | // Shared platform scaling for test timing budgets. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/test-release.sh | 483 | # Workflow and orchestration boundaries: protected current default branch, | COMMENT |