Skip to content

Conversation

@himorishige
Copy link

従来のmicroCMS MCP Serverは、1つのサービスIDと1つのAPIキーを使用して、単一のmicroCMSサービスに接続する設計でした。

複数サービス対応により、1つのMCPサーバーインスタンスで複数のmicroCMSサービスを同時に操作できるようになります。

- 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant