Skip to content

Commit 632c9e3

Browse files
authored
yarn fix (#4)
* yarn * fix jlpm run lint:check * fix tests * test * update readme * remove links check * update build * build again * update repo link
1 parent fea0959 commit 632c9e3

File tree

12 files changed

+5001
-577
lines changed

12 files changed

+5001
-577
lines changed

.copier-answers.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ kind: frontend
99
labextension_name: mcp-client-jupyter-chat
1010
project_short_description: A JupyterLab extension for Chat with AI supporting MCP
1111
python_name: mcp_client_jupyter_chat
12-
repository: https://github.com/ihrpr/mcp-client-jupyter-chat.git
12+
repository: https://github.com/ihrpr/mcp-client-jupyter-chat
1313
test: true
14-

.github/workflows/build.yml

Lines changed: 111 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -15,76 +15,76 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v4
20-
21-
- name: Base Setup
22-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
23-
24-
- name: Install dependencies
25-
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
26-
27-
- name: Lint the extension
28-
run: |
29-
set -eux
30-
jlpm
31-
jlpm run lint:check
32-
33-
- name: Test the extension
34-
run: |
35-
set -eux
36-
jlpm run test
37-
38-
- name: Build the extension
39-
run: |
40-
set -eux
41-
python -m pip install .[test]
42-
43-
jupyter labextension list
44-
jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
45-
python -m jupyterlab.browser_check
46-
47-
- name: Package the extension
48-
run: |
49-
set -eux
50-
51-
pip install build
52-
python -m build
53-
pip uninstall -y "mcp_client_jupyter_chat" jupyterlab
54-
55-
- name: Upload extension packages
56-
uses: actions/upload-artifact@v4
57-
with:
58-
name: extension-artifacts
59-
path: dist/mcp_client_jupyter_chat*
60-
if-no-files-found: error
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Base Setup
22+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
23+
24+
- name: Install dependencies
25+
run: python -m pip install -U "jupyterlab>=4.0.0,<5"
26+
27+
- name: Lint the extension
28+
run: |
29+
set -eux
30+
jlpm
31+
jlpm run lint:check
32+
33+
- name: Test the extension
34+
run: |
35+
set -eux
36+
jlpm run test
37+
38+
- name: Build the extension
39+
run: |
40+
set -eux
41+
python -m pip install .[test]
42+
43+
jupyter labextension list
44+
jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
45+
python -m jupyterlab.browser_check
46+
47+
- name: Package the extension
48+
run: |
49+
set -eux
50+
51+
pip install build
52+
python -m build
53+
pip uninstall -y "mcp_client_jupyter_chat" jupyterlab
54+
55+
- name: Upload extension packages
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: extension-artifacts
59+
path: dist/mcp_client_jupyter_chat*
60+
if-no-files-found: error
6161

6262
test_isolated:
6363
needs: build
6464
runs-on: ubuntu-latest
6565

6666
steps:
67-
- name: Install Python
68-
uses: actions/setup-python@v5
69-
with:
70-
python-version: '3.9'
71-
architecture: 'x64'
72-
- uses: actions/download-artifact@v4
73-
with:
74-
name: extension-artifacts
75-
- name: Install and Test
76-
run: |
77-
set -eux
78-
# Remove NodeJS, twice to take care of system and locally installed node versions.
79-
sudo rm -rf $(which node)
80-
sudo rm -rf $(which node)
81-
82-
pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
83-
84-
85-
jupyter labextension list
86-
jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
87-
python -m jupyterlab.browser_check --no-browser-test
67+
- name: Install Python
68+
uses: actions/setup-python@v5
69+
with:
70+
python-version: '3.9'
71+
architecture: 'x64'
72+
- uses: actions/download-artifact@v4
73+
with:
74+
name: extension-artifacts
75+
- name: Install and Test
76+
run: |
77+
set -eux
78+
# Remove NodeJS, twice to take care of system and locally installed node versions.
79+
sudo rm -rf $(which node)
80+
sudo rm -rf $(which node)
81+
82+
pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
83+
84+
85+
jupyter labextension list
86+
jupyter labextension list 2>&1 | grep -ie "mcp-client-jupyter-chat.*OK"
87+
python -m jupyterlab.browser_check --no-browser-test
8888
8989
integration-tests:
9090
name: Integration tests
@@ -95,59 +95,50 @@ jobs:
9595
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers
9696

9797
steps:
98-
- name: Checkout
99-
uses: actions/checkout@v4
100-
101-
- name: Base Setup
102-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
103-
104-
- name: Download extension package
105-
uses: actions/download-artifact@v4
106-
with:
107-
name: extension-artifacts
108-
109-
- name: Install the extension
110-
run: |
111-
set -eux
112-
python -m pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
113-
114-
- name: Install dependencies
115-
working-directory: ui-tests
116-
env:
117-
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
118-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
119-
run: jlpm install
120-
121-
- name: Set up browser cache
122-
uses: actions/cache@v4
123-
with:
124-
path: |
125-
${{ github.workspace }}/pw-browsers
126-
key: ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
127-
128-
- name: Install browser
129-
run: jlpm playwright install chromium
130-
working-directory: ui-tests
131-
132-
- name: Execute integration tests
133-
working-directory: ui-tests
134-
run: |
135-
jlpm playwright test
136-
137-
- name: Upload Playwright Test report
138-
if: always()
139-
uses: actions/upload-artifact@v4
140-
with:
141-
name: mcp_client_jupyter_chat-playwright-tests
142-
path: |
143-
ui-tests/test-results
144-
ui-tests/playwright-report
145-
146-
check_links:
147-
name: Check Links
148-
runs-on: ubuntu-latest
149-
timeout-minutes: 15
150-
steps:
151-
- uses: actions/checkout@v4
152-
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
153-
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
98+
- name: Checkout
99+
uses: actions/checkout@v4
100+
101+
- name: Base Setup
102+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
103+
104+
- name: Download extension package
105+
uses: actions/download-artifact@v4
106+
with:
107+
name: extension-artifacts
108+
109+
- name: Install the extension
110+
run: |
111+
set -eux
112+
python -m pip install "jupyterlab>=4.0.0,<5" mcp_client_jupyter_chat*.whl
113+
114+
- name: Install dependencies
115+
working-directory: ui-tests
116+
env:
117+
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
118+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
119+
run: jlpm install
120+
121+
- name: Set up browser cache
122+
uses: actions/cache@v4
123+
with:
124+
path: |
125+
${{ github.workspace }}/pw-browsers
126+
key: ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
127+
128+
- name: Install browser
129+
run: jlpm playwright install chromium
130+
working-directory: ui-tests
131+
132+
- name: Execute integration tests
133+
working-directory: ui-tests
134+
run: |
135+
jlpm playwright test
136+
137+
- name: Upload Playwright Test report
138+
if: always()
139+
uses: actions/upload-artifact@v4
140+
with:
141+
name: mcp_client_jupyter_chat-playwright-tests
142+
path: |
143+
ui-tests/test-results
144+
ui-tests/playwright-report

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# mcp_client_jupyter_chat
22

3-
[![Github Actions Status](https://github.com/ihrpr/mcp-client-jupyter-chat.git/workflows/Build/badge.svg)](https://github.com/ihrpr/mcp-client-jupyter-chat.git/actions/workflows/build.yml)
4-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ihrpr/mcp-client-jupyter-chat.git/main?urlpath=lab)
3+
[![Github Actions Status](https://github.com/ihrpr/mcp-client-jupyter-chat/workflows/Build/badge.svg)](https://github.com/ihrpr/mcp-client-jupyter-chat/actions/workflows/build.yml)
4+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ihrpr/mcp-client-jupyter-chat/main?urlpath=lab)
55

66
A JupyterLab extension for Chat with AI supporting Model Context Protocol (MCP). This extension integrates AI and provides interactive tool usage capabilities through MCP servers.
77

@@ -20,9 +20,7 @@ A JupyterLab extension for Chat with AI supporting Model Context Protocol (MCP).
2020
- An Anthropic API key for Claude access
2121
- Running MCP server(s) for tool integration (optional)
2222

23-
## Configuration
24-
25-
### Model Configuration
23+
## Model Configuration
2624

2725
The extension supports multiple Claude models through the Anthropic API. You'll need to:
2826

junit.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="1.92">
3+
<testsuite name="mcp-client-jupyter-chat" errors="0" failures="0" skipped="0" timestamp="2025-02-01T19:40:26" time="1.419" tests="1">
4+
<testcase classname="mcp-client-jupyter-chat should be tested" name="mcp-client-jupyter-chat should be tested" time="0.001">
5+
</testcase>
6+
</testsuite>
7+
</testsuites>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"jupyterlab",
88
"jupyterlab-extension"
99
],
10-
"homepage": "https://github.com/ihrpr/mcp-client-jupyter-chat.git",
10+
"homepage": "https://github.com/ihrpr/mcp-client-jupyter-chat",
1111
"bugs": {
12-
"url": "https://github.com/ihrpr/mcp-client-jupyter-chat.git/issues"
12+
"url": "https://github.com/ihrpr/mcp-client-jupyter-chat/issues"
1313
},
1414
"license": "BSD-3-Clause",
1515
"author": {
@@ -27,7 +27,7 @@
2727
"style": "style/index.css",
2828
"repository": {
2929
"type": "git",
30-
"url": "https://github.com/ihrpr/mcp-client-jupyter-chat.git.git"
30+
"url": "https://github.com/ihrpr/mcp-client-jupyter-chat.git"
3131
},
3232
"scripts": {
3333
"build": "jlpm build:lib && jlpm build:labextension:dev",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.12",
2727
"Programming Language :: Python :: 3.13",
2828
]
29-
dependencies = ["mcp-server-jupyter>=0.1.9"]
29+
dependencies = []
3030
dynamic = ["version", "description", "authors", "urls", "keywords"]
3131

3232
[tool.hatch.version]

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ const plugin: JupyterFrontEndPlugin<void> = {
183183
assistant = null;
184184
};
185185
} catch (error) {
186-
console.error('Failed to connect to MCP server:', error);
187186
const errorMessage =
188187
error instanceof Error ? error.message : String(error);
189188

style/base.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/*
2-
See the JupyterLab Developer Guide for useful CSS Patterns:
3-
https://jupyterlab.readthedocs.io/en/stable/developer/css.html
2+
See the JupyterLab Developer Guide for useful CSS Patterns:
3+
https://jupyterlab.readthedocs.io/en/stable/developer/css.html
44
*/
55

66
.mcp-chat {
7-
background: var(--jp-layout-color1);
8-
color: var(--jp-ui-font-color1);
9-
height: 100%;
7+
background: var(--jp-layout-color1);
8+
color: var(--jp-ui-font-color1);
9+
height: 100%;
1010
}
1111

1212
.mcp-message {
13-
font-size: var(--jp-ui-font-size1);
13+
font-size: var(--jp-ui-font-size1);
1414
}
1515

1616
.mcp-input {
17-
font-size: var(--jp-ui-font-size1);
18-
font-family: var(--jp-ui-font-family);
17+
font-size: var(--jp-ui-font-size1);
18+
font-family: var(--jp-ui-font-family);
1919
}

0 commit comments

Comments
 (0)