Unified AI System MCP Gateway

v0.8.0
io.github.happy520ai/unified-ai-system Checked 5 days ago Published 2 months ago

Self-hosted MCP gateway for Codex, Cursor, and Cline with provider-free prompt enhancement.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gateway_health Gateway health

Inspect gateway health, provider mode, and the real-provider safety flag.

gateway_readiness Gateway readiness

Inspect first-run readiness for chat and the local gateway runtime.

agent_governance_status Agent Governance status

Inspect Agent Governance status through the authenticated Gateway identity. The tool accepts no tenant override and fails closed when that identity is not authorized for platform status.

agent_governance_list List governed Agents

List only the governed Agents visible to the Gateway-authenticated tenant. The tool accepts no tenant or owner override.

knowledge_readiness Knowledge readiness

Inspect the gateway knowledge infrastructure without loading or changing data.

workflow_health Workflow health

Inspect the governed workflow subsystem without starting a workflow.

workflow_actions Workflow actions

List workflow action definitions without invoking any action.

workforce_health Workforce health

Inspect the workforce subsystem without planning or executing work.

workforce_agents Workforce agents

List configured workforce agent descriptors without dispatching them.

agent_governance_describe Describe a governed Agent

Describe one governed Agent only when it is visible to the Gateway-authenticated tenant. Cross-tenant and missing identifiers remain indistinguishable.

ParameterTypeDescription
agentId *stringServer-issued governed Agent identifier

gateway_prompt_enhance Natural-language prompt enhancement

Turn a plain-language request into a structured prompt locally without provider credentials or provider calls.

ParameterTypeDescription
input *stringThe natural-language request to preserve and structure
languagestringOutput language; auto follows the input language
profilestringOptional task profile; auto detects a profile from the request
targetstringExecution target; agent adds a plan-verify-report execution protocol

gateway_prompt_enhance_llm LLM-enhanced prompt enhancement

Enhance a prompt using LLM semantic rewriting when a provider is available. Falls back to the deterministic local engine when no provider is configured.

ParameterTypeDescription
input *stringThe natural-language request to enhance
languagestringOutput language
modelIdstringOptional model ID for LLM enhancement
profilestringOptional task profile hint
providerIdstringOptional provider ID for LLM enhancement
targetstringExecution target; agent adds a plan-verify-report execution protocol

gateway_chat Fake-provider chat

Send one chat request only when the gateway proves that real providers are disabled.

ParameterTypeDescription
prompt *stringPrompt for the deterministic local fake provider

knowledge_retrieve Knowledge retrieve

Search the local knowledge base by keyword. Returns ranked chunks with citations. Does not call any provider.

ParameterTypeDescription
query *stringSearch query for keyword-based retrieval
sourceIdsarrayOptional filter to specific knowledge source IDs
topKintegerNumber of results to return (1-5, default 3)

workflow_run Workflow run

Execute the 3-step local workflow: retrieve knowledge, compose a Markdown report, and write a controlled artifact. Does not call any provider.

ParameterTypeDescription
goal *stringThe workflow goal or objective
agentIdstringRequired when the Gateway has Agent Governance enabled
artifactNamestringOptional filename for the output artifact (without path)
querystringOptional retrieval query; defaults to the goal
topKintegerNumber of knowledge chunks to retrieve (1-5, default 3)