campaign-source-mcp
v0.1.4Local 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.
| Parameter | Type | Description |
|---|---|---|
include_core_rules | boolean | |
include_private | boolean |
search_campaign_sources
Search local campaign module/source cards. Returns file/line pointers and small context windows; candidates are not automatic canon activation.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
context_lines | integer | Context lines on each side: integer from 0 to 20. |
directories | Optional top-level dir(s), e.g. official_5e_wdh or official_5e_bgdia. | |
include_core_rules | boolean | |
include_full_source | boolean | |
include_private | boolean | |
max_results | integer | Maximum results: integer from 1 to 40. |
regex | boolean |
search_campaign_module
Search inside one campaign module/source library by module name or alias, e.g. module=bgdia query=Elturel.
| Parameter | Type | Description |
|---|---|---|
module * | string | Top-level directory or alias, e.g. official_5e_bgdia, bgdia, wdh, wdmm, bg3. |
query * | string | |
context_lines | integer | Context lines on each side: integer from 0 to 20. |
include_full_source | boolean | |
include_private | boolean | |
max_results | integer | Maximum results: integer from 1 to 40. |
regex | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path relative to lore/source_materials. |
column | string | Auto mode only: which cell to open when the line has text in both columns. |
context_lines | integer | Context lines on each side: integer from 0 to 80. |
include_private | boolean | |
line | integer | Physical source line: integer of at least 1. |
reading_order | string |
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.
| Parameter | Type | Description |
|---|---|---|
context * | string | |
campaign_year | integer | Campaign year in DR; any integer. |
context_lines | integer | Context lines: integer from 0 to 20; routing output stays compact. |
include_private | boolean | |
max_results | integer | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
directory * | string | |
include_core_rules | boolean | |
include_full_source | boolean | |
include_private | boolean | |
max_files | integer | Maximum files: integer from 1 to 400. |