-
Notifications
You must be signed in to change notification settings - Fork 6
Add multi service support #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
himorishige
wants to merge
10
commits into
microcmsio:main
Choose a base branch
from
himorishige:add-multi-service-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add multi service support #10
himorishige
wants to merge
10
commits into
microcmsio:main
from
himorishige:add-multi-service-support
Conversation
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
- Introduced a new `.eslintrc.cjs` file to set up ESLint with TypeScript. - Configured parser, environment, and rules to enhance code quality and maintainability.
- Updated `.env.example` to include configuration for multi-service mode, allowing connection to multiple microCMS services via a JSON array. - Expanded `README.md` with detailed instructions for using single and multi-service modes, including examples and notes on configuration. - Refactored `cli.ts`, `client.ts`, and `config.ts` to support multi-service functionality, including client initialization and service ID handling. - Updated various tools to accept `serviceId` as an optional parameter, ensuring compatibility with both single and multi-service modes. - Enhanced error handling and validation for service configurations. - Improved server request handling to accommodate new multi-service capabilities.
…nting and formatting - Deleted `.eslintrc.cjs` and `.prettierrc` files to remove previous configurations. - Added `biome.json` for new linting and formatting rules. - Updated `package.json` scripts to use Biome for linting and formatting tasks.
…te packages - Added '@biomejs/biome' and related CLI packages for linting and formatting. - Removed outdated ESLint and Prettier dependencies along with their configurations. - Cleaned up unnecessary packages to streamline the dependency tree.
- Cleaned up formatting in `cli.ts`, `client.ts`, `config.ts`, and various tool files for better readability. - Standardized import statements and added type imports where necessary. - Enhanced error messages and comments for clarity. - Ensured consistent use of line breaks and spacing across files.
- Upgraded '@modelcontextprotocol/sdk' to version 1.12.1 in package.json. - Refactored import statements in server.ts for improved organization and consistency, ensuring all necessary tools are correctly imported.
- Reorganized import statements in server.ts to enhance clarity and maintainability. - Ensured all necessary tools are correctly imported, improving overall code structure.
…ocumentation updates - Introduced `getServicesTool` to retrieve configured microCMS services and their APIs, facilitating service discovery. - Updated `README.md` to reflect changes in service listing methods and added details on using the new tool. - Refactored import statements in `server.ts` for improved organization and included the new service tool. - Cleaned up code comments and descriptions across various tools for better clarity and consistency.
…ganization - Standardized import formatting in client.ts and server.ts for better readability and consistency. - Ensured all necessary tools are correctly imported, enhancing overall code structure.
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.
従来のmicroCMS MCP Serverは、1つのサービスIDと1つのAPIキーを使用して、単一のmicroCMSサービスに接続する設計でした。
複数サービス対応により、1つのMCPサーバーインスタンスで複数のmicroCMSサービスを同時に操作できるようになります。