Skip to main content
Glama
CaBsCrypto

campaign-creator-provider

by CaBsCrypto

Campaign Creator Provider

Независимый, локально-ориентированный TypeScript-провайдер, который создаёт двуязычную стратегию кампании, тексты для каналов и календарь публикаций на основе URL и цели. Он предоставляет типизированный библиотечный API, MCP-совместимый JSON-RPC stdio-контракт и небольшой HTTP API, развёрнутый на Vercel.

Провайдер генерирует детерминированный фикстурный контент. Он не загружает указанный URL, не вызывает внешние сервисы, не публикует контент, не сохраняет входные данные и не взаимодействует со Stellar Bazaar.

Возможности

  • Вывод на испанском (es, по умолчанию) и английском (en) языках

  • Стратегия, тексты для каналов и настраиваемый календарь на 1–30 дней

  • Каналы: X, LinkedIn, Instagram и email

  • JSON Schema определение инструмента и структурированные ошибки валидации

  • HTTP, TypeScript и MCP-совместимые stdio-точки входа поверх единого генератора

  • Генерация без сетевых запросов, детерминированный вывод

  • Лицензия Apache-2.0

Related MCP server: moltline-mcp

HTTP API

Обнаружение

curl https://campaign-creator-provider.vercel.app/

Health

curl https://campaign-creator-provider.vercel.app/health

Создание кампании

curl -X POST https://campaign-creator-provider.vercel.app/api/campaign \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/product","objective":"Increase qualified sign-ups","locale":"en","days":7,"channels":["linkedin","email"]}'

Обязательные поля: url (абсолютный HTTP/HTTPS URL) и objective. Необязательные поля:

Поле

Тип

По умолчанию

Ограничения

locale

"es" | "en"

"es"

Поддерживаемый язык вывода

days

integer

7

1–30

channels

array

все каналы

Один или несколько из x, linkedin, instagram, email

audience

string

локализованный фикстурный текст

Непустая строка

Успешные запросы возвращают объект кампании напрямую с кодом HTTP 200. Некорректные входные данные возвращают HTTP 400 и стабильный JSON-объект ошибки, содержащий структурированные проблемы валидации. Маршруты поддерживают CORS и не кэшируют ответы.

TypeScript API

import { createCampaign } from "@stellar-bazaar/campaign-creator-provider";

const campaign = createCampaign({
  url: "https://example.com/product",
  objective: "Increase qualified sign-ups",
  locale: "en",
  days: 7,
  channels: ["linkedin", "email"]
});

Возвращаемый объект CampaignPlan содержит strategy, copy, calendar, контекст источника и метаданные фикстурного контента.

MCP-совместимый stdio-контракт

Собранный сервер принимает по одному JSON-RPC 2.0 объекту на строку в stdin и записывает по одному ответу на строку в stdout. Он реализует initialize, tools/list, tools/call и notifications/initialized.

echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_campaign","arguments":{"url":"https://example.com","objective":"Aumentar registros","locale":"es"}}}' | node dist/server.js

Результат create_campaign включает MCP-текстовый контент и ту же кампанию в structuredContent. Некорректные аргументы возвращают isError: true со структурированными проблемами валидации. См. service-card.json для метаданных обнаружения.

Локальная разработка

Требуется Node.js 22.6 или новее.

npm ci
npm run test:all

test:all выполняет проверку типов как для библиотеки, так и для Vercel-обработчиков, запускает набор тестов и собирает распространяемый пакет.

Развёртывание отдельного проекта Vercel

При аутентифицированном Vercel CLI:

vercel link --project campaign-creator-provider
vercel deploy --prod

Отслеживаемый vercel.json явно собирает три серверless-точки входа. Локальные метаданные Vercel .vercel/ игнорируются и никогда не должны попадать в коммиты.

Граница фикстурного контента

URL используется только как контекст кампании и никогда не запрашивается. Идентичные нормализованные входные данные дают идентичный вывод, включая campaignId и generatedAt. Тексты — это универсальный фикстурный материал, а не утверждение о содержимом указанного сайта.

Этот репозиторий и развёртывание независимы. Они не регистрируются в Stellar Bazaar и не изменяют его.

Лицензия

Apache License 2.0. См. LICENSE.

Available Tools

1 tool
create_campaignB

Create a deterministic Spanish or English campaign plan, copy set, and calendar from a URL and objective.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYes
daysNo
localeNoes
audienceNo
channelsNo
objectiveYes

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full behavioral burden. It mentions 'deterministic' but does not clarify whether the tool persists data, requires authentication, or has other side effects. It lacks disclosure of mutation, idempotency, or return behavior, which is a significant gap for a creation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-formed sentence with no filler. It front-loads the primary action and key attributes (deterministic, Spanish/English) efficiently, making it easy to parse and remember.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of 6 parameters, no output schema, and no annotations, the description is inadequate. It does not explain the effect of optional parameters, expected outputs, or usage context, making it incomplete for reliable tool selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description only implicitly explains the two required parameters (URL and objective). The optional parameters (days, locale, audience, channels) are not described at all, leaving agents without guidance on their meaning or selection. This is insufficient for a 6-parameter tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (Create) on a clear resource (campaign plan, copy set, and calendar) with defined inputs (URL and objective). It also mentions determinism and language options, making the tool's function unambiguous even without sibling tools to differentiate from.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies usage when you have a URL and an objective, but it does not provide explicit guidance on when to use this tool versus alternatives, nor does it mention optional parameters or exclusions. With no sibling tools listed, a clearer context would be beneficial.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.1.0
    • First observedcreate_campaign

TDQS

A3.6/5.0

Scored across 1 tool

Disambiguation5/5

Only one tool is exposed, so there is no possibility of selecting between overlapping operations. The purpose is immediately clear and unambiguous.

Naming Consistency5/5

The sole tool uses a clean snake_case verb_noun name, create_campaign, which follows common MCP naming conventions. With a single tool, consistency is trivially maintained.

Tool Count3/5

A single tool is on the thin side for a general-purpose server, but create_campaign is a substantial atomic operation that directly covers the provider's stated purpose. It is borderline rather than excessive or trivial.

Completeness4/5

The tool fully delivers the advertised campaign plan, copy set, and calendar generation in one deterministic action. Broader lifecycle operations like list, update, or delete are absent, but they appear outside the scope of a campaign creator.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    MCP server for Publiar that writes LinkedIn lead magnets without fabricating facts, renders matching visuals, publishes to LinkedIn, and tracks engagement, with 19 tools over stdio.
    19
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Zero-dependency stdio bridge to Moltline Studio's fleet of 14 hosted MCP servers covering code review, time operations, data transforms, business ops, education, research, outreach and more. Free tier requires no registration; premium tools unlock with a license. Independently audited, MCPize Verified A.
    10
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables generating deterministic, cited research findings from caller-supplied source metadata and excerpts via a local-fixture MCP tool, supporting English and Spanish.
    Apache 2.0