Mcp support - #63
Draft
k9p5 wants to merge 13 commits into
Draft
Conversation
- Added @diffusionstudio/dapi as a dependency in package-lock.json, apps/cli/package.json, apps/desktop/package.json, and apps/web/package.json. - Refactored imports in CLI and desktop source files to utilize types and constants from @diffusionstudio/dapi, enhancing code modularity and maintainability. - Removed the cli-channels.ts file as its functionality is now encapsulated within the new dapi package. - Introduced a new MCP server design proposal in docs/mcp-server.md, outlining the transition to a unified API for tool interactions.
- Removed @trpc/client and @trpc/server dependencies from package-lock.json and apps/cli/package.json. - Updated TypeScript configuration in apps/cli/tsconfig.json to simplify compiler options. - Refactored cli-client.ts to replace TRPC client calls with direct calls to the DAPI, enhancing modularity and performance. - Adjusted media handling functions in index.ts to utilize the new call method for better clarity and maintainability. - Cleaned up protocol.ts by introducing encoding and decoding functions for replies, improving data handling consistency.
- Added @modelcontextprotocol/sdk as a dependency in package-lock.json and apps/cli/package.json. - Removed unused @types/ws dependency from package-lock.json and apps/cli/package.json. - Refactored cli-client.ts to utilize the new SDK for tool interactions, enhancing modularity and performance. - Updated media handling functions in index.ts to streamline output handling and improve clarity. - Deleted obsolete protocol.ts and ytdlp.ts files, consolidating functionality within the new SDK. - Introduced edit-types.ts to define types for source edits, improving type safety and maintainability in the editing process. - Updated package.json files to include vitest for testing support in both CLI and desktop applications.
- Added `zod` as a dependency in package-lock.json and apps/cli/package.json for input validation. - Introduced new help.ts module to provide descriptions and validation for CLI commands, ensuring consistency with the app's tool catalog. - Refactored cli-client.ts to improve timeout handling for tool calls, enhancing error management. - Created mcp-proxy.ts to facilitate communication between agents and the app's MCP server. - Updated index.ts to streamline command execution and improve error handling. - Implemented mcp-config.ts and mcp-install.ts for managing MCP server configurations across different agents. - Enhanced desktop application to support MCP registration from the menu, improving user experience.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Deleted all example files demonstrating the JSX API, including various compositions and their respective functionalities. - Removed the README.md file that provided instructions and descriptions for the examples. - Cleared the tsconfig.json for examples, ensuring no residual configurations remain. - This cleanup prepares the repository for a more streamlined focus on core functionalities without the example clutter.
- Replaced references to 'docs' and 'skills' with 'knowledge' in various configurations and scripts to streamline the knowledge base integration. - Removed the `stage-docs.mjs` and `stage-skills.mjs` scripts, replacing them with `stage-knowledge.mjs` to facilitate the staging of the knowledge base. - Updated `README.md` and other documentation to reflect the new structure and paths for the knowledge base resources. - Adjusted the DAPI server and related components to serve knowledge resources, ensuring agents can access the latest documentation and instructions. - Enhanced test cases to validate the new knowledge base structure and resource accessibility.
- Replaced the `time` argument with `times` in the CLI commands for consistency across tools. - Updated the `capture` and `media_grab` tools to handle multiple timestamps, improving flexibility in frame extraction. - Refactored input validation to utilize `zod` for better error handling and user feedback. - Removed the `help.ts` module as its functionality has been integrated into the main CLI structure. - Updated documentation to reflect changes in command syntax and input handling, ensuring clarity for users.
- Removed fallback parameters from the `field` function in CLI tools to simplify input handling. - Updated command options for `media_grab`, `media_filmstrip`, and `media_waveform` to remove default descriptions, relying on schema definitions instead. - Enhanced the `logs` and `fonts` tools to provide clearer descriptions for input fields. - Improved the `windowFields` schema to include default value descriptions for better user guidance. - Adjusted the `models` tool to specify model types in the description, enhancing clarity for users.
- Revised the README.md to clarify the app's MCP server functionality and the CLI tool descriptions, ensuring consistency in terminology. - Updated various sections to replace `dapi` references with direct tool names, enhancing clarity for users. - Improved instructions for using the CLI commands, including examples and command syntax, to better guide users in their interactions with the app. - Enhanced the knowledge base documentation to reflect recent changes in tool functionalities and command structures, ensuring users have access to the latest information.
- Removed Babel-related dependencies from apps/cli/package.json and package-lock.json to streamline the build process. - Added esbuild as a devDependency in apps/cli/package.json for improved bundling. - Updated README.md to provide a more detailed description of the dapi CLI tool, clarifying its role as a client of the MCP server and stdio proxy. - Deleted untyped-modules.d.ts to eliminate unnecessary type declarations for Babel presets. - Enhanced comments in stage-cli.mjs to clarify the staging process for the dapi CLI within the Electron app.
- Replaced all instances of `runsIn` with `environment` across the DAPI codebase to standardize terminology. - Updated related tests and tool definitions to reflect the new property name, ensuring alignment in functionality and documentation. - Enhanced error handling in the DapiServer class to maintain robustness with the updated property references.
- Deleted the OnboardingPage component and its associated logic from the codebase to streamline the authentication flow. - Updated the AuthGate component to directly render children if the user is authenticated or headless, removing the onboarding check. - Adjusted the DesktopAppDownloadSource type to exclude onboarding as a download source, reflecting the removal of the onboarding functionality.
- Revised README.md to clarify the app's MCP server functionality and updated prompt usage instructions, replacing `dapi` references with `diffusion` for consistency. - Refactored MCP server configuration to use `diffusion` as the server name instead of `dapi`, ensuring alignment with the updated terminology. - Enhanced tests to reflect changes in server naming and configuration, ensuring accurate validation of the new structure. - Added new skills and prompts for `editor` and `watch`, improving user guidance and interaction with the app's features.
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.
No description provided.