| Did you know ... | Search Documentation: |
| Pack mcp -- prolog/mcp/servers/source.pl |
Lets a coding agent without a local checkout fetch source from this
server. Every tool takes a root name (e.g. swipl or
'swipl-source'); the relative path is then resolved against the
configured directory and validated to stay inside it (no .. escapes).
Tools registered:
Roots:
swipl root is provided by default and points at home directory
of the running Prolog system.'swipl-source' gives access to the GIT checked out source
tree. If SWI-Prolog is executed from the build tree, this is
discovered automatically. Otherwise it must be specified on the
commandline as swipl -Dcmake_source_directory=Path ...
:- multifile mcp_server_source:source_root/2.
mcp_server_source:source_root('chat80', pack(chat80)).