get_project_context
Initializes any Symbols project task by locating symbols.json, classifying the environment, and returning project details and next-step guidance for the agent.
Instructions
Read the current Symbols project context — START HERE for any Symbols task.
Walks up from cwd (or the MCP process's working directory) looking for symbols.json,
parses it, classifies the environment from filesystem signals, and returns a single
JSON payload with everything an agent needs to begin work.
Returns:
owner, key, dir, bundler, sharedLibraries, brender — from symbols.json
project_root — absolute path of the project root
symbols_dir — absolute path of the symbols/ source dir (or null)
env_type —
local | cdn | json_runtime | remote_server | unknownenv_evidence — the filesystem signals that produced the classification
env_guidance — one-line guidance for that env type
token_present — whether
SYMBOLS_TOKENenv var or~/.smblsrctoken existsapi_base — the Symbols API base URL (defaults to https://api.symbols.app)
next_step — what the agent should do next (ask user / log in / proceed)
ALWAYS call this first for any Symbols-project task. It replaces the older
detect_environment tool (which required the caller to pre-compute file flags).
Use this BEFORE calling any auth-required tool (save_to_project, publish, push,
get_project) — combine with token_present to know whether to prompt for login.
Never hardcode owner/key/credentials. If next_step says "ask the user", ASK.
Args: cwd: Directory to start searching from. Defaults to the MCP server's process cwd. Pass an absolute path when the agent's cwd differs from the project root.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_project_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |