Skip to content

Commit ae0f7fa

Browse files
committed
fix: enabled only
1 parent f3bed12 commit ae0f7fa

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

jupyter_mcp_tools/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ async def get_tools(
132132
params['query'] = query
133133
if enabled_only:
134134
params['enabled_only'] = 'true'
135-
135+
else:
136+
params['enabled_only'] = 'false'
137+
136138
try:
137139
async with self._session.get(url, params=params) as response:
138140
if response.status == 200:

jupyter_mcp_tools/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def get(self):
7474
for term in query_terms
7575
)
7676
]
77-
77+
7878
if enabled_only:
7979
tools = [tool for tool in tools if tool.get('isEnabled', False)]
8080

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@datalayer/jupyter-mcp-tools",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Jupyter MCP Tools.",
55
"keywords": [
66
"ai",

src/components/MCPToolsWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* Distributed under the terms of the Modified BSD License.
44
*/
55

6+
import React from 'react';
67
import { ReactWidget } from '@jupyterlab/apputils';
78
import { LabIcon } from '@jupyterlab/ui-components';
8-
import React from 'react';
99
import { MCPToolsPanel } from './MCPToolsPanel';
1010

1111
/**

0 commit comments

Comments
 (0)