Skip to content

Commit e83a8a6

Browse files
committed
replace javascript with prompts
1 parent 89075b9 commit e83a8a6

File tree

6 files changed

+261
-320
lines changed

6 files changed

+261
-320
lines changed

apps/workers-observability/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import {
1010
import { registerAccountTools } from '@repo/mcp-common/src/tools/account'
1111
import { registerWorkersTools } from '@repo/mcp-common/src/tools/worker'
1212

13-
import { registerLogsTools } from './tools/logs'
14-
1513
import type { AccountSchema, UserSchema } from '@repo/mcp-common/src/cloudflare-oauth-handler'
14+
import { registerObservabilityTools } from './tools/observability'
1615

1716
// Context from the auth process, encrypted & stored in the auth token
1817
// and provided to the DurableMCP as this.props
@@ -41,7 +40,8 @@ export class ObservabilityMCP extends McpAgent<Env, State, Props> {
4140
registerWorkersTools(this)
4241

4342
// Register Cloudflare Workers logs tools
44-
registerLogsTools(this)
43+
registerObservabilityTools(this)
44+
console.log('ObservabilityMCP initialized')
4545
}
4646

4747
getActiveAccountId() {
@@ -61,6 +61,7 @@ export class ObservabilityMCP extends McpAgent<Env, State, Props> {
6161
activeAccountId: accountId,
6262
})
6363
} catch (e) {
64+
console.error('Failed to set active accountId', e)
6465
return null
6566
}
6667
}

apps/workers-observability/src/tools/logs.ts

Lines changed: 0 additions & 307 deletions
This file was deleted.

0 commit comments

Comments
 (0)