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
| Environment | Streamable HTTP URL |
|---|---|
| Global | https://api.genispace.ai/mcp |
| Global test, when enabled | https://api.test.genispace.ai/mcp |
| Private deployment | Your 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. SendAuthorization: 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)
| Tool | Purpose |
|---|---|
genispace_list_capabilities | List the resource groups (agents, datasets, datasources, workflows, tasks, operators, knowledge base, workbenches, config, …) you can work with. |
genispace_search_capabilities | Search the live API for an operation that matches what you want to do. |
genispace_api_request | A guard‑railed generic executor for any supported endpoint not covered by a curated tool (administrative/internal endpoints are blocked). |
Curated tool groups
| Group | Examples |
|---|---|
| Agents & operators | genispace_agent_create (incl. strict‑schema TASK agents for structured extraction), genispace_agent_execute, genispace_operator_run, genispace_email_send |
| SQL data | genispace_database_create, genispace_table_create, genispace_datasource_create / _execute (a datasource is a saved, parameterized SQL statement) |
| Vector datasets | genispace_dataset_create, genispace_dataset_insert, genispace_dataset_search, genispace_dataset_fulltext_search |
| Workflows & tasks | genispace_workflow_create, genispace_task_create (manual or scheduled with a cron), genispace_task_run, genispace_task_status |
| Knowledge & config | genispace_kb_create / _search, genispace_configmap_create, genispace_configvar_set (with isSecret) |
| Workbench | genispace_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 & storage | genispace_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-componentsgenispace://reference/sql-data,genispace://reference/vector-datasets,genispace://reference/agents-and-operators,genispace://reference/knowledge-and-configgenispace://docs/recipes/job-intelligence-pipeline— a complete, end‑to‑end build recipegenispace://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:
- Discover — call
genispace_list_capabilities, thengenispace_search_capabilitiesto find the exact operation; prefer the curatedgenispace_*tools. - Read the reference for anything involving a workflow graph or a dashboard — read
genispace://reference/workflow-nodesbefore creating a workflow. - 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.
- Verify — use
genispace_whoamito confirm the space and permissions, andgenispace_task_statusafter 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):
genispace_database_create→genispace_table_createfor your tables.genispace_datasource_createfor the SQL the workflow will run (a read for de‑duplication, an insert, an update).genispace_agent_createwithagentType: "TASK"and a strictoutputSchema— your structured extractor.genispace_dataset_createfor semantic search/de‑duplication.- Read
genispace://reference/workflow-nodes, thengenispace_workflow_createwith the node/edge graph. genispace_task_create(type: "SCHEDULED", a cron like0 0 6 * * *) to run it daily.- Validate the draft with
genispace_task_validate, trial it withgenispace_task_trial, then confirm activation withgenispace_task_enable. - Optionally
genispace_workbench_createfor a dashboard (it provisions a WORKBENCH application and returns aworkbenchId), andgenispace_configmap_createfor 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_validateon the saved draft, then inspect an actual trial withgenispace_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.
Related
- API Authentication — creating and using API keys
- API Overview — the underlying REST API
- Developer Resources — SDK and other integration options