EmpCloud Product and Resource Search
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EmpCloud Product and Resource Search search EmpCloud for biometric attendance and payroll documentation"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
EmpCloud Product and Resource Search - Gemini CLI Extension
A production-ready Gemini CLI extension and Model Context Protocol (MCP) server that enables developers, AI assistants, and users to search and discover public workforce management products, features, documentation, and web resources from EmpCloud.
Table of Contents
Related MCP server: workday-docs-mcp
Project Overview
When using the Gemini CLI, users frequently need up-to-date links and summaries about EmpCloud modules—such as biometric attendance, HRMS, payroll management, field force tracking, or employee monitoring (EmpMonitor).
This extension connects the Gemini CLI with the verified public WordPress REST API on empcloud.com. It queries live public content, enriches search results with verified Yoast SEO metadata and excerpts, and returns clean, clickable links directly to the user without touching private accounts or internal systems.
Features
Public Website Search: Live querying of EmpCloud's public WordPress REST API (
/wp-json/wp/v2/search).Rich Snippets & Summaries: Enriches search results with public Yoast SEO descriptions and excerpts where available.
Website Info Tool: Provides high-level platform information, module listings, and supported API capabilities.
Strict Domain Filtering: Validates all returned links against an allowlist (
empcloud.com,www.empcloud.com) to guard against malicious redirections.HTML Sanitization: Strips HTML formatting tags and decodes common entities (
&,’,") into clean plain text.Timeout & Error Resilience: Configurable request timeouts (default: 8s), graceful fallbacks, and user-friendly error messages.
Full Gemini CLI Compatibility: Includes a valid
gemini-extension.jsonmanifest utilizing the standard${extensionPath}variable.
MCP Tools
The extension exposes two Model Context Protocol (MCP) tools:
1. search_empcloud
Searches public EmpCloud content using verified WordPress REST API endpoints.
Parameters:
query(string, required): Search keywords or phrases (e.g.,"attendance","payroll","HRMS","biometrics").limit(number, optional, default: 5, min: 1, max: 10): Number of results to return.
Output: Markdown-formatted list containing page titles, clickable URLs, resource types, and summaries.
2. get_empcloud_website_info
Retrieves general platform metadata and supported modules from the EmpCloud public website.
Parameters: None.
Output: Website title, tagline, canonical URLs, supported workforce management modules, and REST API namespaces.
Requirements
Node.js: v18.0.0 or later (tested on Node v20.20.0 LTS)
npm: v9.0.0 or later
Gemini CLI: Google Gemini CLI (optional for local testing, required for CLI integration)
Installation & Linking
Option A: Local Development & Linking into Gemini CLI
Clone or download this repository:
git clone https://github.com/your-org/empcloud-gemini-extension.git cd empcloud-gemini-extensionInstall dependencies and compile TypeScript:
npm install npm run buildLink the extension to your local Gemini CLI (creates a symlink for live iteration):
gemini extensions link .Or install as a standalone local copy:
gemini extensions install .Verify that the extension is registered:
gemini extensions list
Development Setup & Build
1. Install Dependencies
npm install2. Build the TypeScript Project
Compiles the TypeScript source from src/ to dist/:
npm run buildTo continuously watch and compile during development:
npm run watch3. Run the MCP Server Standalone
You can start the MCP server directly over standard input/output (stdio):
npm startAutomated & Manual Testing
Automated Unit Tests (Offline / Mocked)
The automated test suite runs via Vitest with fully mocked HTTP responses to ensure speed and independence from external network availability:
npm testTest coverage includes:
Successful search: Verifies titles, URLs, and Yoast meta descriptions.
Empty search results: Verifies friendly guidance when no matching pages exist.
Input validation: Rejects empty queries, out-of-bounds limits (
< 1or> 10).Network / Website failure: Verifies graceful handling of connection failures and timeouts.
HTTP status errors: Verifies handling of 500, 404, and other HTTP status codes.
Result clamping: Ensures limit does not exceed 10.
Security & URL filtering: Validates allowed domains and discards untrusted links.
HTML sanitization: Tests entity decoding and tag stripping.
Manual Live Integration Test
A live manual test script is provided in scripts/manual-test.js to verify real queries against https://empcloud.com:
npm run test:manual
# or directly:
node scripts/manual-test.jsExample Prompts
Once installed in the Gemini CLI, you can ask Gemini natural language questions:
"Find EmpCloud information about attendance management and show me the relevant links."
"Search EmpCloud for payroll features."
"Find articles about employee monitoring."
"Show me EmpCloud product pages related to HRMS."
"What workforce management modules does EmpCloud offer?"
Gemini will automatically invoke search_empcloud or get_empcloud_website_info and format the response.
Architecture & Content Source
Verified Public Content Sources
Search Endpoint:
https://empcloud.com/wp-json/wp/v2/search?search={query}&per_page={limit}Returns structured records with
id,title,url,type, andsubtype.
Page Detail & Metadata Enrichment:
https://empcloud.com/wp-json/wp/v2/pages/{id}?_fields=id,excerpt,yoast_head_jsonFetches SEO meta descriptions and excerpts to provide summaries without downloading full page bodies.
Site Metadata Endpoint:
https://empcloud.com/wp-json/Returns public site title, tagline, and supported REST namespaces.
Project Layout
empcloud-gemini-extension/
├── gemini-extension.json # Gemini CLI extension manifest
├── GEMINI.md # Model instructions context playbook
├── package.json # NPM dependencies & scripts
├── tsconfig.json # TypeScript build configuration
├── .gitignore # Git exclusions
├── LICENSE # MIT License
├── README.md # Documentation & usage guide
├── src/
│ ├── index.ts # MCP server entry point (stdio)
│ ├── wordpress/
│ │ ├── client.ts # HTTP client with timeouts, validation, sanitization
│ │ └── api.ts # EmpCloud WordPress API functions
│ └── tools/
│ ├── search-empcloud.ts # Tool: search_empcloud
│ └── website-info.ts # Tool: get_empcloud_website_info
├── tests/
│ ├── search-empcloud.test.ts # Vitest unit test suite (12 tests)
│ └── manual-test.ts # TypeScript manual test definition
├── scripts/
│ └── manual-test.js # Node runner for live endpoint test
└── dist/ # Compiled JavaScript outputSecurity & Reliability
Public Data Only: Only queries public WordPress REST API endpoints.
No Credentials Required: Does not require, store, or accept any user credentials, API keys, or private tokens.
Read-Only Operations: Strictly performs HTTP
GETrequests. No write, update, create, or delete operations exist.Domain Whitelist: Rejects any response or redirection outside
empcloud.comandwww.empcloud.com.Request Timeouts: All requests utilize
AbortControllerwith an 8-second default timeout to prevent hanging.Privacy Assurance: Zero access to private employee data, biometric scans, payroll figures, or customer accounts.
Troubleshooting
1. gemini extensions validate or gemini command not found
If the gemini command is not available in your terminal PATH, verify that you have installed the official Gemini CLI:
npm install -g @google/gemini-cli
# or follow installation instructions at https://github.com/google-gemini/gemini-cliNote: You can develop, build, and test this extension completely independently without having the Gemini CLI installed globally.
2. Search returns "Failed to connect to EmpCloud website"
Verify that your machine has an active internet connection.
Check if
https://empcloud.comis reachable in your browser or withcurl -I https://empcloud.com.If behind a corporate proxy, set the
HTTP_PROXYandHTTPS_PROXYenvironment variables.
3. MCP JSON-RPC Communication Error
Ensure no code writes to
stdout(console.log) during server execution. All logging insrc/index.tsis routed tostderr(console.error) to preserve the integrity of the stdio JSON-RPC stream.
GitHub Publishing Instructions
To publish this extension to GitHub as an open-source project or extension registry item:
Initialize Git Repository:
git init git add . git commit -m "feat: initial commit of EmpCloud Gemini CLI extension"Create Remote Repository on GitHub:
Go to GitHub New Repository.
Name the repository
empcloud-gemini-extension.Set visibility to Public (or Private based on organizational requirements).
Do not initialize with README or .gitignore (already present).
Push to GitHub:
git remote add origin https://github.com/<your-username-or-org>/empcloud-gemini-extension.git git branch -M main git push -u origin mainTag a Release:
git tag -a v1.0.0 -m "Release v1.0.0: Initial production release" git push origin v1.0.0Install via Git in Gemini CLI: Users can install the published extension directly via GitHub URL:
gemini extensions install https://github.com/<your-username-or-org>/empcloud-gemini-extension
License
This project is licensed under the MIT License.
Available Tools
2 toolsget_empcloud_website_infoB
Retrieve general public information about EmpCloud, its primary workforce management modules, and official website URLs.
Inputs: no named parameters.
search_empcloudB
Search publicly available EmpCloud products, features, documentation, and website resources by keywords (e.g. attendance, payroll, HRMS, monitoring).
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
search_empcloud is keyword-based retrieval across products/features/docs, while get_empcloud_website_info targets a fixed 'about' summary with module list and URLs. There is some overlap since a keyword search could surface the same general info, but the descriptions make the primary intent of each reasonably clear.
Both names are snake_case and start with a verb (search_, get_), giving a predictable pattern. The second name is a longer noun phrase (empcloud_website_info) than the first (empcloud), a minor deviation but still readable and consistent in style.
Two tools is thin for a search-oriented server; a single search plus a fixed info tool leaves little room for scoped operations. The count is defensible for a narrow read-only lookup service, but it sits at the borderline of feeling under-scoped.
The read-only search surface covers keyword search and general company info, but obvious gaps remain: no get-by-id/product-detail tool, no listing or filtering of modules, and no way to fetch a specific documentation page returned by search. Agents can work around this by re-searching, but the lifecycle is incomplete.
Maintenance
Related MCP Connectors
Read-only search over the Vocenya AI receptionist API docs and endpoints, with code samples.
Provides metadata information to AI agents through the search API.
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Live web search, scraping and crawling API for AI. Get structured, LLM-ready data from any site.
Related MCP Servers
- AlicenseBqualityFmaintenanceProvides instant access to WordPress.org documentation, WordPress VIP guides, and function references. Enables searching developer documentation, looking up specific WordPress functions/hooks/classes, and querying VIP platform documentation directly in Claude conversations.486 npm4MIT
- FlicenseAqualityDmaintenanceEnables AI coding agents to search, read, and cite official Workday developer documentation, grounding their answers in real docs instead of hallucinating. Particularly useful for building Workday Extend apps.41-
- FlicenseNot gradedqualityBmaintenanceEnables browser-based AI agents to interact with a WordPress site through WebMCP-registered tools, allowing them to read, search, navigate, and optionally create or modify content, taxonomies, comments, and user data via the WordPress REST API.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage WordPress posts, pages, media, taxonomies, comments, users, settings, and custom fields through the WordPress REST API. Supports secure authentication, OAuth deployment, search, and safe write controls.MIT