@saroday/mcp-server
Advanced tools
+196
-1
@@ -0,4 +1,191 @@ | ||
| The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0. | ||
| Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License. | ||
| No rights beyond those granted by the applicable original license are conveyed for such contributions. | ||
| --- | ||
| Apache License | ||
| Version 2.0, January 2004 | ||
| http://www.apache.org/licenses/ | ||
| TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||
| 1. Definitions. | ||
| "License" shall mean the terms and conditions for use, reproduction, | ||
| and distribution as defined by Sections 1 through 9 of this document. | ||
| "Licensor" shall mean the copyright owner or entity authorized by | ||
| the copyright owner that is granting the License. | ||
| "Legal Entity" shall mean the union of the acting entity and all | ||
| other entities that control, are controlled by, or are under common | ||
| control with that entity. For the purposes of this definition, | ||
| "control" means (i) the power, direct or indirect, to cause the | ||
| direction or management of such entity, whether by contract or | ||
| otherwise, or (ii) ownership of fifty percent (50%) or more of the | ||
| outstanding shares, or (iii) beneficial ownership of such entity. | ||
| "You" (or "Your") shall mean an individual or Legal Entity | ||
| exercising permissions granted by this License. | ||
| "Source" form shall mean the preferred form for making modifications, | ||
| including but not limited to software source code, documentation | ||
| source, and configuration files. | ||
| "Object" form shall mean any form resulting from mechanical | ||
| transformation or translation of a Source form, including but | ||
| not limited to compiled object code, generated documentation, | ||
| and conversions to other media types. | ||
| "Work" shall mean the work of authorship, whether in Source or | ||
| Object form, made available under the License, as indicated by a | ||
| copyright notice that is included in or attached to the work | ||
| (an example is provided in the Appendix below). | ||
| "Derivative Works" shall mean any work, whether in Source or Object | ||
| form, that is based on (or derived from) the Work and for which the | ||
| editorial revisions, annotations, elaborations, or other modifications | ||
| represent, as a whole, an original work of authorship. For the purposes | ||
| of this License, Derivative Works shall not include works that remain | ||
| separable from, or merely link (or bind by name) to the interfaces of, | ||
| the Work and Derivative Works thereof. | ||
| "Contribution" shall mean any work of authorship, including | ||
| the original version of the Work and any modifications or additions | ||
| to that Work or Derivative Works thereof, that is intentionally | ||
| submitted to the Licensor for inclusion in the Work by the copyright | ||
| owner or by an individual or Legal Entity authorized to submit on behalf | ||
| of the copyright owner. For the purposes of this definition, "submitted" | ||
| means any form of electronic, verbal, or written communication sent | ||
| to the Licensor or its representatives, including but not limited to | ||
| communication on electronic mailing lists, source code control systems, | ||
| and issue tracking systems that are managed by, or on behalf of, the | ||
| Licensor for the purpose of discussing and improving the Work, but | ||
| excluding communication that is conspicuously marked or otherwise | ||
| designated in writing by the copyright owner as "Not a Contribution." | ||
| "Contributor" shall mean Licensor and any individual or Legal Entity | ||
| on behalf of whom a Contribution has been received by Licensor and | ||
| subsequently incorporated within the Work. | ||
| 2. Grant of Copyright License. Subject to the terms and conditions of | ||
| this License, each Contributor hereby grants to You a perpetual, | ||
| worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||
| copyright license to reproduce, prepare Derivative Works of, | ||
| publicly display, publicly perform, sublicense, and distribute the | ||
| Work and such Derivative Works in Source or Object form. | ||
| 3. Grant of Patent License. Subject to the terms and conditions of | ||
| this License, each Contributor hereby grants to You a perpetual, | ||
| worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||
| (except as stated in this section) patent license to make, have made, | ||
| use, offer to sell, sell, import, and otherwise transfer the Work, | ||
| where such license applies only to those patent claims licensable | ||
| by such Contributor that are necessarily infringed by their | ||
| Contribution(s) alone or by combination of their Contribution(s) | ||
| with the Work to which such Contribution(s) was submitted. If You | ||
| institute patent litigation against any entity (including a | ||
| cross-claim or counterclaim in a lawsuit) alleging that the Work | ||
| or a Contribution incorporated within the Work constitutes direct | ||
| or contributory patent infringement, then any patent licenses | ||
| granted to You under this License for that Work shall terminate | ||
| as of the date such litigation is filed. | ||
| 4. Redistribution. You may reproduce and distribute copies of the | ||
| Work or Derivative Works thereof in any medium, with or without | ||
| modifications, and in Source or Object form, provided that You | ||
| meet the following conditions: | ||
| (a) You must give any other recipients of the Work or | ||
| Derivative Works a copy of this License; and | ||
| (b) You must cause any modified files to carry prominent notices | ||
| stating that You changed the files; and | ||
| (c) You must retain, in the Source form of any Derivative Works | ||
| that You distribute, all copyright, patent, trademark, and | ||
| attribution notices from the Source form of the Work, | ||
| excluding those notices that do not pertain to any part of | ||
| the Derivative Works; and | ||
| (d) If the Work includes a "NOTICE" text file as part of its | ||
| distribution, then any Derivative Works that You distribute must | ||
| include a readable copy of the attribution notices contained | ||
| within such NOTICE file, excluding those notices that do not | ||
| pertain to any part of the Derivative Works, in at least one | ||
| of the following places: within a NOTICE text file distributed | ||
| as part of the Derivative Works; within the Source form or | ||
| documentation, if provided along with the Derivative Works; or, | ||
| within a display generated by the Derivative Works, if and | ||
| wherever such third-party notices normally appear. The contents | ||
| of the NOTICE file are for informational purposes only and | ||
| do not modify the License. You may add Your own attribution | ||
| notices within Derivative Works that You distribute, alongside | ||
| or as an addendum to the NOTICE text from the Work, provided | ||
| that such additional attribution notices cannot be construed | ||
| as modifying the License. | ||
| You may add Your own copyright statement to Your modifications and | ||
| may provide additional or different license terms and conditions | ||
| for use, reproduction, or distribution of Your modifications, or | ||
| for any such Derivative Works as a whole, provided Your use, | ||
| reproduction, and distribution of the Work otherwise complies with | ||
| the conditions stated in this License. | ||
| 5. Submission of Contributions. Unless You explicitly state otherwise, | ||
| any Contribution intentionally submitted for inclusion in the Work | ||
| by You to the Licensor shall be under the terms and conditions of | ||
| this License, without any additional terms or conditions. | ||
| Notwithstanding the above, nothing herein shall supersede or modify | ||
| the terms of any separate license agreement you may have executed | ||
| with Licensor regarding such Contributions. | ||
| 6. Trademarks. This License does not grant permission to use the trade | ||
| names, trademarks, service marks, or product names of the Licensor, | ||
| except as required for reasonable and customary use in describing the | ||
| origin of the Work and reproducing the content of the NOTICE file. | ||
| 7. Disclaimer of Warranty. Unless required by applicable law or | ||
| agreed to in writing, Licensor provides the Work (and each | ||
| Contributor provides its Contributions) on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
| implied, including, without limitation, any warranties or conditions | ||
| of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | ||
| PARTICULAR PURPOSE. You are solely responsible for determining the | ||
| appropriateness of using or redistributing the Work and assume any | ||
| risks associated with Your exercise of permissions under this License. | ||
| 8. Limitation of Liability. In no event and under no legal theory, | ||
| whether in tort (including negligence), contract, or otherwise, | ||
| unless required by applicable law (such as deliberate and grossly | ||
| negligent acts) or agreed to in writing, shall any Contributor be | ||
| liable to You for damages, including any direct, indirect, special, | ||
| incidental, or consequential damages of any character arising as a | ||
| result of this License or out of the use or inability to use the | ||
| Work (including but not limited to damages for loss of goodwill, | ||
| work stoppage, computer failure or malfunction, or any and all | ||
| other commercial damages or losses), even if such Contributor | ||
| has been advised of the possibility of such damages. | ||
| 9. Accepting Warranty or Additional Liability. While redistributing | ||
| the Work or Derivative Works thereof, You may choose to offer, | ||
| and charge a fee for, acceptance of support, warranty, indemnity, | ||
| or other liability obligations and/or rights consistent with this | ||
| License. However, in accepting such obligations, You may act only | ||
| on Your own behalf and on Your sole responsibility, not on behalf | ||
| of any other Contributor, and only if You agree to indemnify, | ||
| defend, and hold each Contributor harmless for any liability | ||
| incurred by, or claims asserted against, such Contributor by reason | ||
| of your accepting any such warranty or additional liability. | ||
| END OF TERMS AND CONDITIONS | ||
| --- | ||
| MIT License | ||
| Copyright (c) 2026 Saroday (https://saroday.com) | ||
| Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC. | ||
@@ -22,1 +209,9 @@ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| SOFTWARE. | ||
| --- | ||
| Creative Commons Attribution 4.0 International (CC-BY-4.0) | ||
| Documentation in this project (excluding specifications) is licensed under | ||
| CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for | ||
| the full license text. |
+2
-1
| { | ||
| "name": "@saroday/mcp-server", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "mcpName": "io.github.yolstudio26-oss/saroday-mcp-server", | ||
| "description": "MCP (Model Context Protocol) server for Saroday - Korean Saju calculation tool. Lets Claude Desktop, Cline, Cursor and other MCP-compatible AI clients perform accurate Korean Saju (Four Pillars) calculation and access 80+ myeongni-hak (命理學) glossary terms.", | ||
@@ -5,0 +6,0 @@ "keywords": [ |
+102
-113
@@ -1,164 +0,153 @@ | ||
| # @saroday/mcp-server | ||
| # MCP Registry | ||
| MCP (Model Context Protocol) server for [Saroday](https://saroday.com) — Korean Saju (사주) calculation and myeongni-hak (命理學) glossary lookup. | ||
| The MCP registry provides MCP clients with a list of MCP servers, like an app store for MCP servers. | ||
| This MCP server lets Claude Desktop, Cline, Cursor, and any other MCP-compatible AI client perform accurate Korean Saju (Four Pillars of Destiny) calculation by calling the public Saroday API under the hood. | ||
| [**📤 Publish my MCP server**](docs/modelcontextprotocol-io/quickstart.mdx) | [**⚡️ Live API docs**](https://registry.modelcontextprotocol.io/docs) | [**👀 Ecosystem vision**](docs/design/ecosystem-vision.md) | 📖 **[Full documentation](./docs)** | ||
| --- | ||
| ## Development Status | ||
| ## What it does | ||
| **2025-10-24 update**: The Registry API has entered an **API freeze (v0.1)** 🎉. For the next month or more, the API will remain stable with no breaking changes, allowing integrators to confidently implement support. This freeze applies to v0.1 while development continues on v0. We'll use this period to validate the API in real-world integrations and gather feedback to shape v1 for general availability. Thank you to everyone for your contributions and patience—your involvement has been key to getting us here! | ||
| When connected, the AI client gains access to four tools: | ||
| **2025-09-08 update**: The registry has launched in preview 🎉 ([announcement blog post](https://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/)). While the system is now more stable, this is still a preview release and breaking changes or data resets may occur. A general availability (GA) release will follow later. We'd love your feedback in [GitHub discussions](https://github.com/modelcontextprotocol/registry/discussions/new?category=ideas) or in the [#registry-dev Discord](https://discord.com/channels/1358869848138059966/1369487942862504016) ([joining details here](https://modelcontextprotocol.io/community/communication)). | ||
| | Tool | Description | | ||
| |------|-------------| | ||
| | `calculate_saju` | Compute full Saju analysis (8 characters, sipseong, sinsal, hapchung, 12-unseong, yongshin, daeun) from birth date / time / gender. | | ||
| | `lookup_glossary` | Look up any of 80+ myeongni-hak terms (도화살, 천을귀인, 식신, 육합, etc.) with full Korean explanation. | | ||
| | `get_daily_fortune` | Today's fortune for one of 12 Western zodiac signs or 12 Chinese zodiac signs. Cached server-side, fast response. | | ||
| | `discover_saroday_api` | List available Saroday API endpoints and metadata. | | ||
| Current key maintainers: | ||
| - **Adam Jones** (Anthropic) [@domdomegg](https://github.com/domdomegg) | ||
| - **Tadas Antanavicius** (PulseMCP) [@tadasant](https://github.com/tadasant) | ||
| - **Toby Padilla** (GitHub) [@toby](https://github.com/toby) | ||
| - **Radoslav (Rado) Dimitrov** (Stacklok) [@rdimitrov](https://github.com/rdimitrov) | ||
| Why this matters: ChatGPT, Claude, and other LLMs frequently miscalculate Saju when asked directly because manse-ryeok (萬歲曆) lookup and 절기 (jeolgi) boundary handling require precise data. This MCP delegates the math to a verified server while letting the AI focus on the interpretation. | ||
| ## Contributing | ||
| --- | ||
| We use multiple channels for collaboration - see [modelcontextprotocol.io/community/communication](https://modelcontextprotocol.io/community/communication). | ||
| ## Installation | ||
| Often (but not always) ideas flow through this pipeline: | ||
| ### Option A — npx (no install) | ||
| - **[Discord](https://modelcontextprotocol.io/community/communication)** - Real-time community discussions | ||
| - **[Discussions](https://github.com/modelcontextprotocol/registry/discussions)** - Propose and discuss product/technical requirements | ||
| - **[Issues](https://github.com/modelcontextprotocol/registry/issues)** - Track well-scoped technical work | ||
| - **[Pull Requests](https://github.com/modelcontextprotocol/registry/pulls)** - Contribute work towards issues | ||
| ```bash | ||
| npx @saroday/mcp-server | ||
| ``` | ||
| ### Quick start: | ||
| ### Option B — global install | ||
| #### Pre-requisites | ||
| ```bash | ||
| npm install -g @saroday/mcp-server | ||
| saroday-mcp | ||
| ``` | ||
| - **Docker** | ||
| - **Go 1.24.x** | ||
| - **ko** - Container image builder for Go ([installation instructions](https://ko.build/install/)) | ||
| - **golangci-lint v2.4.0** | ||
| ### Option C — clone and run | ||
| #### Running the server | ||
| ```bash | ||
| git clone https://github.com/saroday/mcp-server.git | ||
| cd mcp-server | ||
| npm install | ||
| node index.js | ||
| # Start full development environment | ||
| make dev-compose | ||
| ``` | ||
| Requires Node.js 18 or newer. | ||
| This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing. | ||
| --- | ||
| **Note:** The registry uses [ko](https://ko.build) to build container images. The `make dev-compose` command automatically builds the registry image with ko and loads it into your local Docker daemon before starting the services. | ||
| ## Configure Claude Desktop | ||
| By default, the registry seeds from the production API with a filtered subset of servers (to keep startup fast). This ensures your local environment mirrors production behavior and all seed data passes validation. For offline development you can seed from a file without validation with `MCP_REGISTRY_SEED_FROM=data/seed.json MCP_REGISTRY_ENABLE_REGISTRY_VALIDATION=false make dev-compose`. | ||
| Edit your Claude Desktop config file: | ||
| The setup can be configured with environment variables in [docker-compose.yml](./docker-compose.yml) - see [.env.example](./.env.example) for a reference. | ||
| - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json` | ||
| - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json` | ||
| <details> | ||
| <summary>Alternative: Running a pre-built Docker image</summary> | ||
| Add (or merge) the following: | ||
| Pre-built Docker images are automatically published to GitHub Container Registry. Note that the image does not bundle PostgreSQL, so you need to run your own and point the registry at it via `MCP_REGISTRY_DATABASE_URL` (see [docker-compose.yml](./docker-compose.yml) for a working example): | ||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "saroday": { | ||
| "command": "npx", | ||
| "args": ["-y", "@saroday/mcp-server"] | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| ```bash | ||
| # Run latest stable release | ||
| docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:latest | ||
| Restart Claude Desktop. You should see "saroday" listed in the MCP servers panel (the plug icon in the input area). | ||
| # Run latest from main branch (continuous deployment) | ||
| docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main | ||
| ### Local development (running from cloned repo) | ||
| # Run specific release version | ||
| docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:v1.0.0 | ||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "saroday": { | ||
| "command": "node", | ||
| "args": ["/absolute/path/to/mcp-server/index.js"] | ||
| } | ||
| } | ||
| } | ||
| # Run development build from main branch | ||
| docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main-20250906-abc123d | ||
| ``` | ||
| --- | ||
| **Available tags:** | ||
| - **Releases**: `latest`, `v1.0.0`, `v1.1.0`, etc. | ||
| - **Continuous**: `main` (latest main branch build) | ||
| - **Development**: `main-<date>-<sha>` (specific commit builds) | ||
| ## Configure Cline / Cursor / other MCP clients | ||
| </details> | ||
| Any MCP client that supports stdio transport works. Point it at the `saroday-mcp` binary or `node index.js`. See your client's docs for the exact config format. | ||
| #### Publishing a server | ||
| --- | ||
| To publish a server, we've built a simple CLI. You can use it with: | ||
| ## Try it out | ||
| ```bash | ||
| # Build the latest CLI | ||
| make publisher | ||
| After connecting, ask Claude things like: | ||
| # Use it! | ||
| ./bin/mcp-publisher --help | ||
| ``` | ||
| - *"My birthday is March 15, 1992 at 10am. Calculate my Korean Saju."* | ||
| - *"What does 도화살 (dohwa-sal) mean in Korean fortune-telling?"* | ||
| - *"내 사주 봐줘. 1990년 5월 20일 음력 14시 여성."* | ||
| - *"제왕(jeokwang) 12-unseong이 뭐야?"* | ||
| See [the publisher guide](./docs/modelcontextprotocol-io/quickstart.mdx) for more details. | ||
| Claude will automatically invoke `calculate_saju` or `lookup_glossary` and give you a polished interpretation based on the structured data returned. | ||
| #### Other commands | ||
| --- | ||
| ```bash | ||
| # Run lint, unit tests and integration tests | ||
| make check | ||
| ``` | ||
| ## Environment variables | ||
| There are also a few more helpful commands for development. Run `make help` to learn more, or look in [Makefile](./Makefile). | ||
| | Variable | Default | Purpose | | ||
| |----------|---------|---------| | ||
| | `SARODAY_API_BASE` | `https://saroday.com` | Override the API base URL (e.g., for self-hosted or staging environments). | | ||
| <!-- | ||
| For Claude and other AI tools: Always prefer make targets over custom commands where possible. | ||
| --> | ||
| --- | ||
| ## Architecture | ||
| ## Rate limits | ||
| ### Project Structure | ||
| The public Saroday API allows **100 requests per hour per IP** for free use. Heavy users — apps shipping to many end-users, AI agents handling many concurrent users — should request an API key (coming soon) for higher quotas. | ||
| Contact: contact@saroday.com | ||
| --- | ||
| ## How it works | ||
| ``` | ||
| [User in Claude Desktop] | ||
| ↓ types "내 사주 봐줘" | ||
| [Claude Desktop] | ||
| ↓ calls calculate_saju via MCP stdio | ||
| [saroday-mcp (this package, runs locally)] | ||
| ↓ HTTPS POST /api/v1/saju | ||
| [saroday.com server] | ||
| ↓ runs verified manse-ryeok algorithm | ||
| [result JSON] | ||
| ↑ flows back through the chain | ||
| [Claude] writes a beautiful Korean interpretation | ||
| ├── cmd/ # Application entry points | ||
| │ └── publisher/ # Server publishing tool | ||
| ├── data/ # Seed data | ||
| ├── deploy/ # Deployment configuration (Pulumi) | ||
| ├── docs/ # Documentation | ||
| ├── internal/ # Private application code | ||
| │ ├── api/ # HTTP handlers and routing | ||
| │ ├── auth/ # Authentication (GitHub OAuth, JWT, namespace blocking) | ||
| │ ├── config/ # Configuration management | ||
| │ ├── database/ # Data persistence (PostgreSQL) | ||
| │ ├── service/ # Business logic | ||
| │ ├── telemetry/ # Metrics and monitoring | ||
| │ └── validators/ # Input validation | ||
| ├── pkg/ # Public packages | ||
| │ ├── api/ # API types and structures | ||
| │ │ └── v0/ # Version 0 API types | ||
| │ └── model/ # Data models for server.json | ||
| ├── scripts/ # Development and testing scripts | ||
| ├── tests/ # Integration tests | ||
| └── tools/ # CLI tools and utilities | ||
| └── validate-*.sh # Schema validation tools | ||
| ``` | ||
| This MCP package is a thin adapter — all calculation lives on Saroday's servers, so updates to the algorithm or glossary roll out without you having to upgrade the package. | ||
| ### Authentication | ||
| --- | ||
| Publishing supports multiple authentication methods: | ||
| - **GitHub OAuth** - For publishing by logging into GitHub | ||
| - **GitHub OIDC** - For publishing from GitHub Actions | ||
| - **DNS verification** - For proving ownership of a domain and its subdomains | ||
| - **HTTP verification** - For proving ownership of a domain | ||
| ## Differentiators | ||
| The registry validates namespace ownership when publishing. E.g. to publish...: | ||
| - `io.github.domdomegg/my-cool-mcp` you must login to GitHub as `domdomegg`, or be in a GitHub Action on domdomegg's repos | ||
| - `me.adamjones/my-cool-mcp` you must prove ownership of `adamjones.me` via DNS or HTTP challenge | ||
| - **Manse-ryeok accuracy** — handles 절기 (solar terms) boundaries that LLMs routinely get wrong (verified against `@fullstackfamily/manseryeok` library) | ||
| - **80+ glossary entries (~400 interpretation fields)** — every sinsal, hapchung, sipseong, 12-unseong term has summary / meaning / positive / negative / practical-tip interpretation written in friendly Korean | ||
| - **Korean myeongni-hak tradition** — based on 적천수(滴天髓), 자평진전(子平真詮), 궁통보감(窮通寶鑑) references | ||
| - **Three-channel exposure** — same algorithm available as web service (saroday.com), public REST API (saroday.com/api/v1), and MCP server (this package). Pick the channel that fits your integration. | ||
| ## Community Projects | ||
| --- | ||
| Check out [community projects](docs/community-projects.md) to explore notable registry-related work created by the community. | ||
| ## License | ||
| ## More documentation | ||
| MIT | ||
| --- | ||
| ## Support | ||
| - Web: https://saroday.com | ||
| - API docs: https://saroday.com/api/docs | ||
| - LLM-friendly index: https://saroday.com/llms.txt | ||
| - Email: contact@saroday.com | ||
| See the [documentation](./docs) for more details if your question has not been answered here! |
Mixed license
LicensePackage contains multiple licenses.
35750
63.68%1
Infinity%154
-6.67%