Skip to content

Commit 74981df

Browse files
committed
chore: format webmcp files
1 parent 22530b5 commit 74981df

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

‎.changeset/webmcp-tools.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@tanstack/devtools-webmcp": patch
2+
'@tanstack/devtools-webmcp': patch
33
---
44

55
Add `@tanstack/devtools-webmcp` so a library can register development-only WebMCP tools.

‎examples/react/basic/src/webmcp-proof.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ export function WebMcpProof() {
112112
if (!active) {
113113
return
114114
}
115-
const result = active.record.execute(
116-
{},
117-
{ signal: active.record.signal },
118-
)
115+
const result = active.record.execute({}, { signal: active.record.signal })
119116
setStatus(`Tool result is ${JSON.stringify(result)}.`)
120117
}
121118

‎packages/devtools-webmcp/skills/devtools-webmcp/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: devtools-webmcp
3-
description: "Register WebMCP tools with registerDevtoolsTools from @tanstack/devtools-webmcp. Name rules, cleanup, replace behavior, root import, and the /production import."
3+
description: 'Register WebMCP tools with registerDevtoolsTools from @tanstack/devtools-webmcp. Name rules, cleanup, replace behavior, root import, and the /production import.'
44
type: core
55
library: '@tanstack/devtools-webmcp'
66
library_version: '0.0.1'

‎packages/devtools-webmcp/tests/index.test.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ describe('registerDevtoolsTools', () => {
5858
vi.stubEnv('NODE_ENV', 'development')
5959
vi.resetModules()
6060
// The re-import is required because NODE_ENV is read at module load.
61-
const { registerDevtoolsTools: registerInDevelopment } = await import(
62-
'../src'
63-
)
61+
const { registerDevtoolsTools: registerInDevelopment } =
62+
await import('../src')
6463

6564
const stop = registerInDevelopment({
6665
pluginId: 'tanstack.query',

0 commit comments

Comments
 (0)