feat(@deepnote/mcp): implement tool behaviors for enhance, fix circul… by jamesbhobbs · Pull Request #258 · deepnote/deepnote · GitHub
Skip to content

feat(@deepnote/mcp): implement tool behaviors for enhance, fix circul… - #258

Merged
jamesbhobbs merged 2 commits into
mcp-skillsfrom
mcp2
Jan 29, 2026
Merged

jamesbhobbs merged 2 commits into
mcp-skillsfrom
mcp2

Conversation

@jamesbhobbs

Copy link
Copy Markdown
Contributor

…ar deps, and refactor

enhance tool:

  • Now actually applies input blocks (input-slider) for hardcoded values like test_size, n_estimators, threshold, learning_rate, max_depth
  • Modifies code to reference the input variable instead of hardcoded value
  • Adds section headers (h1, h2) when structure enhancement is applied

fix tool:

  • Implements circular dependency detection using DAG analysis
  • Attempts to break cycles by reordering blocks (moving high-output blocks earlier)
  • Reports detected cycles with the variables involved

refactor tool:

  • Now removes extracted functions/classes from source blocks
  • Adds import statements to source notebooks (from import )
  • Reports sourceModified and importAdded in response

Updated tool descriptions to accurately reflect new capabilities.

jamesbhobbs and others added 2 commits January 29, 2026 12:49
…ar deps, and refactor

enhance tool:
- Now actually applies input blocks (input-slider) for hardcoded values like
  test_size, n_estimators, threshold, learning_rate, max_depth
- Modifies code to reference the input variable instead of hardcoded value
- Adds section headers (h1, h2) when structure enhancement is applied

fix tool:
- Implements circular dependency detection using DAG analysis
- Attempts to break cycles by reordering blocks (moving high-output blocks earlier)
- Reports detected cycles with the variables involved

refactor tool:
- Now removes extracted functions/classes from source blocks
- Adds import statements to source notebooks (from <module> import <names>)
- Reports sourceModified and importAdded in response

Updated tool descriptions to accurately reflect new capabilities.
@coderabbitai

coderabbitai Bot commented Jan 29, 2026 •

Copy link
Copy Markdown
Contributor

@jamesbhobbs
jamesbhobbs marked this pull request as ready for review January 29, 2026 12:59
@jamesbhobbs
jamesbhobbs merged commit f2be05f into mcp-skills Jan 29, 2026
18 checks passed
@jamesbhobbs
jamesbhobbs deleted the mcp2 branch January 29, 2026 12:59
@codecov

codecov Bot commented Jan 29, 2026 •

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant