campaign-source-mcp

v0.1.4
campaign-source-mcp Checked 1 day ago Published 19 days ago

Local MCP server for campaign module/source-card routing and lookup.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_campaign_sources

List installed local campaign module/source libraries, excluding core rules/SRD by default.

ParameterTypeDescription
include_core_rulesboolean
include_privateboolean

search_campaign_sources

Search local campaign module/source cards. Returns file/line pointers and small context windows; candidates are not automatic canon activation.

ParameterTypeDescription
query *string
context_linesintegerContext lines on each side: integer from 0 to 20.
directoriesOptional top-level dir(s), e.g. official_5e_wdh or official_5e_bgdia.
include_core_rulesboolean
include_full_sourceboolean
include_privateboolean
max_resultsintegerMaximum results: integer from 1 to 40.
regexboolean

search_campaign_module

Search inside one campaign module/source library by module name or alias, e.g. module=bgdia query=Elturel.

ParameterTypeDescription
module *stringTop-level directory or alias, e.g. official_5e_bgdia, bgdia, wdh, wdmm, bg3.
query *string
context_linesintegerContext lines on each side: integer from 0 to 20.
include_full_sourceboolean
include_privateboolean
max_resultsintegerMaximum results: integer from 1 to 40.
regexboolean

open_campaign_source

Open a line-numbered window from a local campaign source file. Auto mode reconstructs confident two-column full-source PDF pages; reading_order=source preserves physical OCR rows. When the line has text in both columns, column picks the left (L) or right (R) cell.

ParameterTypeDescription
file *stringPath relative to lore/source_materials.
columnstringAuto mode only: which cell to open when the line has text in both columns.
context_linesintegerContext lines on each side: integer from 0 to 80.
include_privateboolean
lineintegerPhysical source line: integer of at least 1.
reading_orderstring

source_trigger_lookup

Route a location/faction/topic/context phrase through the local source library. Returns likely cards/indexes to read; does not activate canon.

ParameterTypeDescription
context *string
campaign_yearintegerCampaign year in DR; any integer.
context_linesintegerContext lines: integer from 0 to 20; routing output stays compact.
include_privateboolean
max_resultsintegerMaximum results: integer from 1 to 40.

list_campaign_source_files

List files under a specific source-library directory, e.g. official_5e_wdh or official_5e_bgdia/baldurs_gate.

ParameterTypeDescription
directory *string
include_core_rulesboolean
include_full_sourceboolean
include_privateboolean
max_filesintegerMaximum files: integer from 1 to 400.