Feature improve mcp#13
Closed
cornelha wants to merge 18 commits into
Closed
Conversation
- Introduced SurrealDB as a new output backend for storing code graphs. - Implemented SurrealDbExporter for exporting knowledge graphs in SurrealDB format. - Added CLI support for selecting SurrealDB output type. - Created integration tests for SurrealDbExporter to ensure correct functionality. - Updated documentation to include SurrealDB usage and configuration details.
Add SurrealDB output support to graphify-dotnet
…d enhance SurrealDB exporter with embedded and remote modes - Updated descriptions for GraphTools methods to be more concise and clear. - Improved the Query method to match against node ID, label, or type. - Enhanced the Path method to provide a more straightforward explanation of its functionality. - Refactored the Explain method to simplify the output structure. - Added support for exporting to SurrealDB in both embedded and remote modes. - Updated SurrealDbExporter to handle authentication and connection to remote SurrealDB instances. - Improved test coverage for SurrealDbExporter, ensuring various scenarios are validated. - Added documentation for SurrealDB export format and MCP server usage.
…s for pre-release support
- Merged MCP server functionality into the Graphify.Cli project. - Updated documentation to reflect the new `graphify serve` command. - Removed the Graphify.Mcp project and its related files. - Added GraphTools to the CLI for handling MCP operations. - Updated version numbers for all projects to 0.9.0-preview.2. - Enhanced error handling and logging in the new serve command.
…dd nuget.config for package sources
Surreal db api integration
- Introduce `init` command to install or uninstall MCP agent instructions in codebases - Implement agent detection and instruction snippet injection for multiple coding agents - Add SurrealDB embedded and remote backend options to `serve` command for graph data storage - Refactor MCP GraphTools to use IGraphBackend abstraction for unified graph operations - Implement MemoryGraphBackend for in-memory graph serving from JSON files - Define SurrealDbGraphBackend for SurrealDB integration (partial implementation implied) - Add detailed GraphToolResponses DTOs to ensure consistent JSON output across backends - Provide canonical MCP instructions and snippet management utilities for agent integration - Enhance serve command options to configure SurrealDB connection and authentication - Improve error handling and verbose logging for graph loading and SurrealDB connections - Update project structure to separate graph backends and initialization logic for maintainability
- Introduce OpenAI configuration section in appsettings.json - Add OpenAI provider option in CLI with "--provider openai" - Extend ChatClientFactory to create clients for OpenAI-compatible endpoints - Implement OpenAIClientFactory to create IChatClient instances with API key auth - Update configuration classes and options to include OpenAI settings - Store OpenAI API key securely via dotnet user-secrets - Add prompts for OpenAI endpoint, API key, and model in config wizard - Display OpenAI configuration in status output tables - Validate OpenAI provider in config resolver alongside existing providers - Add unit tests for OpenAI config persistence and SDK client factory - Ensure error handling for missing OpenAI endpoint or API key during creation
- Include `openai` in the list of supported AI providers in CLI reference - Add usage example for running with OpenAI-compatible endpoint and model - Document OpenAI-compatible provider in configuration guide with env vars and secrets - Update getting started with OpenAI-compatible provider setup instructions - Clarify no separate setup guide needed for OpenAI-compatible provider in references section
- Introduce DotNetEnv package to load .env files automatically at startup - Update configuration priority order to include .env file between user secrets and environment variables - Add documentation for .env usage and security advice to .gitignore secrets - Provide example .env file with Graphify provider and OpenAI settings - Ensure local development environment variables are easily manageable and secure
- Create new setup-openai.md document with detailed instructions - Introduce OpenAI-compatible option as a versatile provider choice - Provide quick start, provider list, and configuration methods - Include CLI, environment variable, user secrets, and code examples - Add troubleshooting section for common errors and fixes - Reference this new guide in Azure, Ollama, Copilot SDK docs under See Also - Update configuration.md to mention OpenAI (Compatible) Setup link - Highlight benefits of multi-provider flexibility and self-hosted options
- Add detailed .env configuration example with all provider options to docs folder - Document .env.example location in configuration.md for better user guidance - Introduce .env file with default Graphify settings including AI providers and SurrealDB - Update CLI to resolve export formats and paths with proper priority from config sources - Refactor Graphify.Cli to support config wizard and unified config loading logic - Upgrade project versions to 0.9.0-preview.15 in multiple csproj files - Adjust nuget.config local package path for correct package source - Add dotnet-tools.json to define Graphify CLI tool with fixed version - Enhance SurrealDb exporter to dynamically use namespace and database settings - Switch SurrealDb entity creation to use parameterized RawQuery to avoid CBOR errors - Remove old concrete SurrealDb entity and relationship classes no longer needed - Improve remote SurrealDb connection by defining namespace and database if missing before use
- Implement SurrealDbExporter with transactional full graph snapshot import - Add SurrealDbExportOptions for configuration of remote or embedded SurrealDB mode - Extend WatchMode to support exporting updated graph state to SurrealDB on changes - Implement SurrealDbGraphBackend using SurrealQL for graph queries backed by SurrealDB - Use server-side graph algorithms for shortest path and degree computations - Add incremental graph update methods supporting removal by filePath to avoid orphans - Optimize SurrealDB schema with indexes for community and relationship types - Update CLI to enable SurrealDB export based on configuration settings - Refactor SurrealDbGraphBackend to batch queries and reduce client-side processing - Add community and node analysis queries with server-side aggregation and sorting
…id tombstoned record conflict - SurrealDB transactions keep tombstoned records visible within the transaction scope, causing 'Database record already exists' when INSERT + same-ID DELETE share a BEGIN/COMMIT. - Split: DELETE (auto-commit) first, then transactional INSERT. - Added descriptive error reporting that surfaces SurrealDB's own error text instead of the SDK's opaque 'ResponseUnsuccessful' message. - Delete-only batches now handled correctly in watch mode (fix from code review). - Bump to 0.9.0-preview.22.
Author
|
Accidental PR, ignore please |
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.