get_spec_source_info
Retrieve the active spec source and all built-in adapters. Call at session start to let the AI correctly interpret spec semantics from markdown, GitHub, or other sources.
Instructions
Return the active spec source (selected via SPEC_SOURCE env var) plus all adapters built into this server. Call first in any session so the AI knows whether to expect markdown / GitHub / (future) Linear / JIRA / Notion semantics. Returns {active, available, version}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mk_spec_master/server.py:36-41 (handler)Handler for 'get_spec_source_info' — returns active spec source (SOURCE_NAME env var), available adapters from REGISTRY, and server version.
def _meta_info(_: dict) -> dict[str, Any]: return { "active": SOURCE_NAME, "available": sorted(REGISTRY), "version": __version__, } - src/mk_spec_master/server.py:45-45 (registration)Tool dispatch registration mapping 'get_spec_source_info' to _meta_info handler.
"get_spec_source_info": _meta_info, - src/mk_spec_master/server.py:69-79 (schema)Tool schema registration via @app.list_tools() — declares the tool with name 'get_spec_source_info', description, and empty inputSchema (no params).
Tool( name="get_spec_source_info", description=( "Return the active spec source (selected via SPEC_SOURCE env var) " "plus all adapters built into this server. Call first in any " "session so the AI knows whether to expect markdown / GitHub / " "(future) Linear / JIRA / Notion semantics. " "Returns {active, available, version}." ), inputSchema={"type": "object", "properties": {}}, ), - src/mk_spec_master/server.py:22-41 (helper)Imports SOURCE_NAME from config (driven by SPEC_SOURCE env var).
from .config import SOURCE_NAME from .tools import specs as specs_tools from .tools import scenarios as scenarios_tools from .tools import coverage as coverage_tools from .tools import quality as quality_tools from .tools import auto_link as auto_link_tools from .tools import optimization as optimization_tools from .tools import spec_knowledge as spec_knowledge_tools from .tools import history as history_tools from .tools import telemetry as telemetry_tools app = Server("mk-spec-master") def _meta_info(_: dict) -> dict[str, Any]: return { "active": SOURCE_NAME, "available": sorted(REGISTRY), "version": __version__, } - src/mk_spec_master/server.py:21-31 (helper)Imports REGISTRY from adapters package (populated by adapter registration).
from .adapters import REGISTRY from .config import SOURCE_NAME from .tools import specs as specs_tools from .tools import scenarios as scenarios_tools from .tools import coverage as coverage_tools from .tools import quality as quality_tools from .tools import auto_link as auto_link_tools from .tools import optimization as optimization_tools from .tools import spec_knowledge as spec_knowledge_tools from .tools import history as history_tools from .tools import telemetry as telemetry_tools