Spedy NFS-e MCP
Enables issuing, consulting, and listing Brazilian NFS-e invoices through Spedy's API over an authenticated HTTP endpoint.
README
Spedy NFS-e MCP
An Invokta Action Engine that exposes Spedy NFS-e emission and status operations through an authenticated MCP Streamable HTTP endpoint.
The engine contains three capabilities:
openapi.emitir-nfse: creates and enqueues an NFS-e for asynchronous issue.openapi.consultar-nfse: reads the current status of one NFS-e.openapi.listar-nfse: lists NFS-e records with Spedy filters and pagination.
All capabilities require an authenticated principal. Spedy credentials remain server-side and are never accepted as MCP tool input.
First run
npm run check
npm run build
npm run mcp:http
The included local configuration serves MCP at http://127.0.0.1:3400/mcp. Clients
must send Authorization: Bearer <MCP_BEARER_TOKEN>.
The committed .env.example and the ignored local .env contain mock values.
Replace MCP_BEARER_TOKEN and SPEDY_API_KEY before making real requests. The
default connector target is Spedy's sandbox; production is never selected
implicitly.
Configuration
| Variable | Purpose |
|---|---|
MCP_BEARER_TOKEN |
Protects the MCP HTTP endpoint; minimum 32 characters. |
SPEDY_API_KEY |
Sent by the connector as the server-side X-Api-Key. |
SPEDY_BASE_URL |
Spedy API origin, normally https://sandbox-api.spedy.com.br. Do not append /v1. |
INVOKTA_HTTP_HOST |
Bind host; defaults to 127.0.0.1. |
INVOKTA_HTTP_PORT |
Bind port; the local example uses 3400 and the adapter defaults to 3000 when unset. |
Emission is asynchronous. A successful emitir-nfse result means Spedy
accepted and enqueued the request; use consultar-nfse or Spedy webhooks to
observe authorization or rejection. Always provide a stable integrationId
to make retries idempotent.
Project map
src/capabilities/owns domain actions and their input, output, access, and execution contracts.src/engine.tsregisters stable capability IDs and supplies engine-owned dependencies.src/direct.tsis the smallest executable smoke path.test/engine.test.tsproves behavior through the public engine boundary.AGENTS.mdrecords the project's non-negotiable architecture and delivery rules..agents/skills/develop-invokta-project/SKILL.mdgives compatible agents a complete change workflow.
Review the generated capabilities
- Read
AGENTS.mdand the generated development skill. - Add a failing engine-level test for the domain outcome you need.
- Update or replace the module under
src/capabilities/, then register its literal capability ID insrc/engine.ts. - Keep direct and generated adapter entry points on the same exported engine; do not duplicate the capability handler in an adapter.
- Run
npm run check, then inspect the capability in the devtools before deploying it.
Develop interactively
npm run devtools
Builds the engine and starts the Invokta devtools, normally on http://localhost:4100/. Open the URL printed by the command to browse capabilities, invoke them from schema-seeded JSON through the execution path you select, follow the live invocation trace, switch test identities, and read the doctor report. Source changes rebuild and restart the hosted engine automatically.
Run the read-only devtools diagnostics with:
npm run devtools:doctor
Start MCP HTTP
npm run build
npm run mcp:http
Package the server and probe an existing endpoint with:
npm run deploy:package
npm run deploy:probe -- --url https://engine.example/mcp
Review every generated capability's domain meaning and access rule before deployment.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。