Skip to main content

Connect an AI agent via MCP

The GeniSpace MCP endpoint lets an agent discover and use authorized tools in a Space. It exposes platform capabilities and enabled resource methods, including Operators, Datasources and workflow tasks. Connect it in the client's MCP or Tools settings. Model provider configuration serves model inference and uses a separate endpoint and credential.

Endpoint and authentication​

EnvironmentStreamable HTTP URL
Globalhttps://api.genispace.ai/mcp
Global test, when enabledhttps://api.test.genispace.ai/mcp
Private deploymentYour organization's API origin followed by /mcp

A browser can open /mcp/info on the same API origin for connection information. Use the URL ending in /mcp in the client.

  • Space API key. In the target Space, open Settings → Integrations and create a dedicated API key with the required space.* permissions. Send Authorization: Bearer <key> with every request.
  • MCP OAuth. Use a client that can perform public-client dynamic registration and PKCE with S256. Choose the target Space on the GeniSpace authorization page. The issued access token belongs to that Space and is sent as a Bearer token. The deployment must accept the client's callback URL.

Every request checks the credential and current permissions. An authorized connection keeps its Space when you switch the active Space in the GeniSpace web app. To connect another Space, authorize a separate connection or use a key issued for that Space. Store credentials in the client's secret store, an environment variable supported by the client, or a private local configuration file.

Connect your client​

See the external client setup guide for WorkBuddy, Cursor, Cline, Roo Code, Continue, Cherry Studio, Dify, Open WebUI, and Claude Code. After connecting, refresh the tool list and call genispace_whoami to verify the Space before enabling write tools.

Protocol and verification​

Upgraded deployments support stateless Streamable HTTP with MCP 2026-07-28. Each POST carries the protocol version and request metadata, and any replica can handle it. In this revision, server/discover advertises versions and capabilities, and closing the response stream cancels the in-flight request. A tool can already have accepted a job or committed a write by the time the stream closes. Check its outcome before resubmitting it. Streamable HTTP specification

Clients using the 2025 Streamable HTTP handshake can use ordinary tools and read authorized views attached to those tools through the same endpoint. App-only interactions require a current request declaring MCP Apps support. A legacy standalone SSE endpoint, protocol session IDs, and session DELETE are unavailable in the stateless release.

Use this read-only check after your deployment has upgraded. Set GENISPACE_MCP_KEY in your environment before running it.

curl -sS --no-buffer 'https://api.genispace.ai/mcp' \
-H "Authorization: Bearer ${GENISPACE_MCP_KEY}" \
-H 'Accept: application/json, text/event-stream' \
-H 'Content-Type: application/json' \
-H 'MCP-Protocol-Version: 2026-07-28' \
-H 'Mcp-Method: tools/call' \
-H 'Mcp-Name: genispace_whoami' \
--data-binary @- <<'JSON'
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genispace_whoami",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {},
"io.modelcontextprotocol/clientInfo": { "name": "genispace-mcp-check", "version": "1.0.0" }
}
}
}
JSON

A successful result includes the authenticated Space. The response can be a JSON object or an SSE stream scoped to that POST. That stream is part of Streamable HTTP.

What you can do​

The server exposes a focused, navigable set of tools, plus reference documents and ready‑made templates.

Discovery tools (start here)​

ToolPurpose
genispace_list_capabilitiesList the resource groups (agents, datasets, datasources, workflows, tasks, operators, knowledge base, workbenches, config, …) you can work with.
genispace_search_capabilitiesSearch the live API for an operation that matches what you want to do.
genispace_api_requestA guard‑railed generic executor for any supported endpoint not covered by a curated tool (administrative/internal endpoints are blocked).

Curated tool groups​

GroupExamples
Agents & operatorsgenispace_agent_create (incl. strict‑schema TASK agents for structured extraction), genispace_agent_execute, genispace_operator_run, genispace_email_send
SQL datagenispace_database_create, genispace_table_create, genispace_datasource_create / _execute (a datasource is a saved, parameterized SQL statement)
Vector datasetsgenispace_dataset_create, genispace_dataset_insert, genispace_dataset_search, genispace_dataset_fulltext_search
Workflows & tasksgenispace_workflow_create, genispace_task_create (manual or scheduled with a cron), genispace_task_run, genispace_task_status
Knowledge & configgenispace_kb_create / _search, genispace_configmap_create, genispace_configvar_set (with isSecret)
Workbenchgenispace_workbench_create (creates a WORKBENCH application and its workbench, returning a workbenchId — workbenches cannot be created directly), genispace_workbench_page_upsert (low‑code dashboards)
Space & storagegenispace_whoami, genispace_space_overview, genispace_search, genispace_apikey_create, genispace_storage_list

Reference & recipe resources​

Two areas of the platform — the workflow node/edge graph and the workbench page/component layout — are powerful but detailed. The server publishes verified, copy‑paste templates for them as MCP resources, which the agent reads on demand:

  • genispace://reference/workflow-nodes, genispace://reference/workbench-components
  • genispace://reference/sql-data, genispace://reference/vector-datasets, genispace://reference/agents-and-operators, genispace://reference/knowledge-and-config
  • genispace://docs/recipes/job-intelligence-pipeline — a complete, end‑to‑end build recipe
  • genispace://catalog/operators, genispace://catalog/api — live inventories of your space

Build prompts​

User‑invoked templates that scaffold a whole build: build_monitoring_pipeline, build_extraction_agent, build_dashboard, summarize_space.

How to work​

A reliable agent follows this loop:

  1. Discover — call genispace_list_capabilities, then genispace_search_capabilities to find the exact operation; prefer the curated genispace_* tools.
  2. Read the reference for anything involving a workflow graph or a dashboard — read genispace://reference/workflow-nodes before creating a workflow.
  3. Build in order — provision data (database → tables, and/or a dataset) → create datasources (the SQL to run) → create agents/operators → assemble a workflow → wrap it in a task (and a schedule) → optionally a workbench dashboard → store secrets in a ConfigMap.
  4. Verify — use genispace_whoami to confirm the space and permissions, and genispace_task_status after a run to inspect results.

Example: a scheduled data pipeline​

A typical end‑to‑end build (the full template is in genispace://docs/recipes/job-intelligence-pipeline):

  1. genispace_database_create → genispace_table_create for your tables.
  2. genispace_datasource_create for the SQL the workflow will run (a read for de‑duplication, an insert, an update).
  3. genispace_agent_create with agentType: "TASK" and a strict outputSchema — your structured extractor.
  4. genispace_dataset_create for semantic search/de‑duplication.
  5. Read genispace://reference/workflow-nodes, then genispace_workflow_create with the node/edge graph.
  6. genispace_task_create (type: "SCHEDULED", a cron like 0 0 6 * * *) to run it daily.
  7. Validate the draft with genispace_task_validate, trial it with genispace_task_trial, then confirm activation with genispace_task_enable.
  8. Optionally genispace_workbench_create for a dashboard (it provisions a WORKBENCH application and returns a workbenchId), and genispace_configmap_create for secrets.

Limitations & notes​

  • File upload is not available over MCP (it requires multipart upload). Knowledge‑base and storage reads and search are available; ingest files through the Console first, then reference them.
  • Vector search needs a vectorized Dataset. Pass text to genispace_dataset_search; Dataset uses its configured embedding model for the query. Use full-text search for literal terms. Multimodal search requires a Dataset explicitly configured for multimodal embeddings.
  • Validate the workflow before activating the task. Use genispace_task_validate on the saved draft, then inspect an actual trial with genispace_task_trial.
  • Operators must be enabled for the space before they can be run.

Tool views​

When the method-view release is deployed, methods with a configured view.url expose standard MCP Apps UI metadata. An Apps-capable client reads the ui:// resource through resources/read and displays its text/html;profile=mcp-app content in a sandbox. A normal webpage URL alone does not implement this contract.

The optional view does not change tool execution permissions. Desktop uses the signed-in user's access in the conversation Space; a platform agent also remains restricted by its resource bindings. Discovery, resource reads, and interactive calls must pass current authorization. An external client without Apps support can still use the original results.

One view adapts to the available size. Current platform and Desktop Hosts support inline and fullscreen; the right detail Tab is not pip. Opening, resizing, or reopening a view does not rerun a tool or create a model request. If the URL, content fingerprint, or permission is no longer valid, the client keeps the authorized original result.