@ehrocks/fe-mcp-server 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@ An MCP server for searching Hero Design System components.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
- Ensure you have configured `EH_GITHUB_PKG_TOKEN` to read the internal npm package. [Read more](https://employmenthero.atlassian.net/wiki/spaces/WEBPLATFORM/pages/3314778914/PRD+Experimental+migrating+private+package+hosting+to+Github+Packages#Prerequisite)
|
|
8
7
|
- Update mcp config from Cursor, e.g. on macOS `~/.cursor/mcp.json`
|
|
9
8
|
```
|
|
10
9
|
{
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
const HERO_DESIGN_COMPONENT_EXAMPLES_HOST = process.env.ENVIRONMENT === '
|
|
5
|
+
const HERO_DESIGN_COMPONENT_EXAMPLES_HOST = process.env.ENVIRONMENT === 'LOCAL' ? 'http://localhost:8000' : 'https://fe-mcp-service.staging.ehrocks.com';
|
|
6
6
|
export const searchHeroDesignComponentExamples = async (query, limit = 5, threshold = 0.4) => {
|
|
7
7
|
try {
|
|
8
8
|
const response = await fetch(`${HERO_DESIGN_COMPONENT_EXAMPLES_HOST}/retrieve_hero_design`, {
|