feat(runtimed-py): add kernel introspection methods and remove MCP#580
Merged
feat(runtimed-py): add kernel introspection methods and remove MCP#580
Conversation
Add 5 new methods to Session/AsyncSession for better agent workflows: - complete(code, cursor_pos) - code completions from kernel - get_queue_state() - see executing/queued cells - clear_outputs(cell_id) - clear cell outputs - run_all_cells() - batch execute all code cells - get_history(pattern, n, unique) - search kernel input history Also add new types: CompletionItem, CompletionResult, QueueState, HistoryEntry Remove MCP server from runtimed-py package - MCP tools are now handled by the separate nteract package. This removes the mcp and httpx dependencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add 5 new methods to Session/AsyncSession for better kernel introspection and agent workflows:
complete(code, cursor_pos)- Code completions from kernel (discover DataFrame columns, methods, etc.)get_queue_state()- See which cell is executing and which are queuedclear_outputs(cell_id)- Clear cell outputs before re-executionrun_all_cells()- Batch execute all code cellsget_history(pattern, n, unique)- Search kernel input historyAlso add new types:
CompletionItem,CompletionResult,QueueState,HistoryEntryRemove MCP server from runtimed-py package - MCP tools are now handled by the separate nteract package.
Changes
Verification
PR submitted by @rgbkrk's agent, Quill