ubCode MCP Server¶
The ubCode MCP server exposes the indexed Sphinx-Needs project via the Model Context Protocol (MCP). Agents query it at the start of every session to retrieve their current instructions and skills, ensuring that agent behavior is always driven by the documented source of truth rather than hardcoded rules. |
Usage¶
Agents connect to the ubCode MCP server and query needs by ID, type, or tag:
# Retrieve the installer agent need and follow its links
get_need(id="AGENT_INSTALLER")
→ follow :applies: links → load flowinst objects
→ follow :employs: links → load flowskill objects
→ follow :uses: links → load flowtool objects
The server is provided by the ubCode VS Code extension and is available as an MCP server in GitHub Copilot agent mode.
Constraints¶
Agents MUST use ubCode MCP as the exclusive interface for reading Sphinx-Needs objects. Direct RST file parsing is not permitted.
If the ubCode MCP server is unavailable, the agent MUST detect this and offer to install the ubCode extension from the VS Code Marketplace after explicit user confirmation.
The server operates on the last indexed snapshot of the project. Agents should remind the user to re-index after making changes to
.rstfiles.
Missing Capabilities¶
The following swspec objects describe technical functionality that the
ubCode MCP server does not yet implement but is required for ubFlow.
The ubCode MCP server SHALL recognise When This allows the ubFlow agent stub (a minimal |
The MCP functions When Behaviour:
|