Tags: 1mcp-app/agent
Tags
chore: update build and development scripts for improved workflow - Replaced the `dev` and `build` scripts in package.json with new shell scripts (`dev-start.sh` and `build.sh`) to streamline the development and build processes. - The `dev-start.sh` script handles environment setup and starts TypeScript compilation in watch mode alongside nodemon for auto-restart. - The `build.sh` script manages the build process, including TypeScript compilation, path alias resolution, and setting executable permissions on the output file. - Added `concurrently` and `nodemon` as new dependencies to facilitate the development workflow.
chore(deps-dev): bump @types/node from 24.3.1 to 24.7.0 (#144) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.3.1 to 24.7.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.7.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat(template): enhance instruction template variables and grammar he… …lpers - Added new template variables for connected server counts and instructional server counts to improve clarity and usability. - Updated existing variables to reflect their new definitions and added examples for better understanding. - Introduced new Handlebars helpers for mathematical and string operations to facilitate more complex template logic. - Enhanced documentation to include detailed descriptions of new variables and their usage in templates. - Implemented tests to ensure the correct functionality of new features and maintain existing behavior.
fix(instruction): fallback to default template on custom template fai… …lure (#132) * fix(instruction): fallback to default template on custom template failure - Replace error template with graceful fallback to default template - Add comprehensive error handling for Handlebars template parsing - Log template errors and print to console for immediate visibility - Preserve filtering and configuration when falling back to default - Update tests to verify fallback behavior and remove error template checks - Fix crypto import for ES modules and add fallback hash function - Add new test suite for template fallback scenarios * feat(serve): support custom instructions template for all transport types - Move custom template loading to occur before transport initialization - Pass custom template to ExpressServer and subsequently to HTTP route handlers - Update InstructionAggregator to accept custom template via config - Remove redundant console.error in favor of structured logger - Adjust function signatures across HTTP transport modules to accept and propagate customTemplate parameter This change ensures that custom instructions templates are properly utilized across all server transport mechanisms (stdio, HTTP, SSE). * test(instructionAggregator): replace console.error spy with logger.error mock - Replace console.error spy with logger mock to align with updated error logging - Update test cases to verify logger.error is called with structured error messages - Ensure logger.error includes error details and template length for debugging - Remove console.error assertions and clear logger mock calls before each test - Maintain existing test logic and expectations for template fallback behavior * feat(template): remove template caching and add size validation - Remove `lru-cache` dependency and all caching logic for templates - Add `templateSizeLimit` option to `TemplateConfig` with 1MB default - Validate template size before compilation and throw error if exceeded - Update tests to reflect removal of caching and addition of size checks - Improve template error handling with categorization and suggestions - Remove cache-related methods and stats from `InstructionAggregator` - Update lockfile and package.json to remove `lru-cache` reference - Adjust test cases to handle direct template compilation without caching
chore(deps): bump uuid from 11.1.0 to 13.0.0 (#123) Bumps [uuid](https://github.com/uuidjs/uuid) from 11.1.0 to 13.0.0. - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md) - [Commits](uuidjs/uuid@v11.1.0...v13.0.0) --- updated-dependencies: - dependency-name: uuid dependency-version: 13.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix(config): fix config directory resolution and improve config conte… …xt reliability (#122) * feat(config): add support for custom config directory - Introduce ConfigContext class to manage config file paths - Update server management commands to use ConfigContext - Add getConfigPath function to constants.js - Modify existing constants and functions to accommodate new config directory support * feat(config): enhance config context and add e2e tests for config options - Refactor ConfigContext class to improve config path resolution logic - Add support for explicit config path and directory in loadConfig and validateConfigPath functions - Implement e2e tests for --config-dir CLI flag and ONE_MCP_CONFIG_DIR environment variable - Add test cases for config file vs directory priority - Improve error handling and output assertions in CliTestRunner
chore(deps-dev): bump @typescript-eslint/parser from 8.39.1 to 8.41.0 (… …#99) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.39.1 to 8.41.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.41.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-version: 8.41.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
PreviousNext