FA-Technician-Brain-MCP

FA-Technician-Brain-MCP

Provides structured knowledge about the Technician Portal module in FleetFocus FA/EAM, enabling AI agents to query pages, workflows, APIs, and more without live connections.

Category
访问服务器

README

FA-Technician-Brain-MCP

A Model Context Protocol (MCP) knowledge server for the Technician Portal module in FleetFocus FA/EAM (InfoCenter). This server provides structured, queryable information about the module's pages, workflows, API endpoints, database schema, field specifications, UI interaction patterns, and validation rules.

Purpose

This MCP is designed to be consumed by AI agents (e.g., Playwright automation, test generation, code review) that need to understand the Technician Portal's behavior without making live API calls. All data is hardcoded from research documents — no credentials, no live connections.

What's Covered

Domain Coverage
Pages 18 screens/pages with full field specs, actions, and navigation
Workflows 8 named workflow recipes (clock in, job on/off, create WO, finish/close, etc.)
API Endpoints 50+ endpoints across Custom Web API, V2 OData, and V3
Database 23 tables with columns and relationships
Fields Component-level specs (type, validation, API mapping)
Interactions UI patterns (CCL components, dialogs, drawers, cards)
Validation Server-side rules and client-side guards
Transitions Work order status state machine
Permissions Role/persona-based access by state

MCP Tools

Tool Description
get_page Full page specification by page_id
get_workflow Named workflow recipe with step-by-step instructions
get_api_endpoint Endpoint spec by entity + operation
get_table_schema Database table definition with columns
get_field Field-level spec (component, validation, API mapping)
get_interaction_pattern UI component interaction pattern
get_validation_rules Validation rules for entity/operation
get_transitions Status transitions from a given state
get_persona_permissions What a persona can do at a given WO state
search Full-text search across all data
get_test_fixtures Get test fixture data by entity or ID for automation
check_provenance Get provenance info for a data path (sources, last checked dates)

Setup

npm install
npm run build
npm start

Module Context

  • Application: FleetFocus FA/EAM InfoCenter
  • Module Path: InfoCenterBase/InfoCenter/ClientApp/src/app/modules/technician/
  • Design System: CCL (Component Class Library)
  • License: Independent beta license key
  • Version: 26.1 Beta (as of research date)
  • Legacy Screen ID: 7003 (ASP.NET WebForms predecessor)

Architecture

The Technician Portal uses two API layers:

  1. Custom InfoCenter Web API (/Infocenter/api/Technician/...) — Session-cookie auth, business logic operations
  2. V2 OData API (:9001/api/v2/...) — OAuth2 Bearer token, entity read/query operations

There are no V3 technician-specific endpoints. All business logic lives in FA-Suite controllers.

Provenance Tracking

Every piece of data in this MCP is tracked back to its source. The provenance registry (src/data/provenance.ts) maps each data path to one or more sources with:

  • Source type: jira, github, figma, api, confluence, or manual
  • URL: Direct link to the source material
  • Description: What information was extracted from the source
  • lastChecked: When the source was last verified
  • lastChanged: When the source was last observed to have changed

Checking for Updates

Run the source checker to see if any sources have been updated since last check:

# Set credentials
export JIRA_EMAIL="your-email@example.com"
export JIRA_API_TOKEN="your-jira-api-token"
export GITHUB_TOKEN="your-github-pat"

# Run check
npm run check-sources

Or use the shell wrapper:

./scripts/update-sources.sh

The checker:

  • Queries Jira REST API for issue updated timestamps
  • Queries GitHub API for file last-commit dates
  • Compares against recorded lastChanged dates
  • Reports which sources have newer changes
  • Does NOT auto-apply changes (manual review required)

Exit codes:

  • 0 — All sources up to date
  • 1 — Changes detected (review needed)
  • 2 — Script error

Using Provenance via MCP

Tool: check_provenance
Input: { "data_path": "pages.home" }

Returns the provenance entries showing where the home page data was sourced from and when it was last verified.

Test Fixtures

The test fixture registry (src/data/test-fixtures.ts) provides stable test data values for automation. Fixtures include:

ID Entity Description
default_technician Operator CA user with full admin access
test_equipment_fleet_001 Equipment QA-FLEET-001 vehicle
test_equipment_fleet_004 Equipment QA-FLEET-004 (preferred for OM)
test_vendor_qa Vendor QA test vendor for outsourced maintenance
test_task_ca_rp_01 TaskCode 001-CA-RP-01 task for OM tickets
test_work_order_open WorkOrder Template for OPEN WO creation
test_time_code_regular TimeCode REG time code for clock-in
test_time_code_indirect TimeCode IND time code for indirect labor
test_location_main Location Main shop location
test_delay_code DelayCode PARTS delay reason
pw_auto_ticket_mgmt_user Operator Playwright automation OM user
test_infocenter_url Environment QADEPLOY URLs and connection info

Using Fixtures via MCP

Tool: get_test_fixtures
Input: { "entity": "Equipment" }

Returns all equipment fixtures. Or get a specific fixture:

Tool: get_test_fixtures
Input: { "id": "default_technician" }

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选