nuget FieldCure.AssistStudio.RunnerstdioMITupdated 3mo ago
A Windows-only headless LLM task automation engine that executes natural language tasks on schedule and delivers results through configured channels. Built as a Model Context Protocol (MCP) server with the official MCP C# SDK.
What can you do with assiststudio runner?
AssistStudio Runner
A Windows-only headless LLM task automation engine that executes natural language tasks on schedule and delivers results through configured channels. Built as a Model Context Protocol (MCP) server with the official MCP C# SDK.
Features
- Dual-mode operation β MCP server (
serve) for task management, headless CLI (exec) for scheduled execution - 7 MCP tools β
create_task,update_task,delete_task,list_tasks,run_task,get_task_history,get_execution_status - Windows Task Scheduler integration β cron expressions automatically mapped to
schtasksentries - Shared AgentLoop β LLM execution powered by Ai.Execution (same loop used by SubAgentExecutor)
- Multi-provider LLM support β Claude, OpenAI, Gemini, Ollama, Groq via Ai.Providers
- MCP server orchestration β tasks can bootstrap any MCP servers (Outbox, RAG, Filesystem, custom)
- Flexible tool control β
AllowedToolsnull = all tools permitted; explicit list for fine-grained control; empty list = safe tools only - Secure credentials β API keys in Windows Credential Manager (DPAPI), shared with AssistStudio
- Execution logging β DB summary + detailed JSON logs with full conversation history
- One-time scheduling β
schedule_oncewith ISO 8601 datetime for single-execution tasks (βin 5 minutesβ, βtomorrow at 9amβ) - Result delivery β send results via Outbox channels (Slack, Telegram, Email, KakaoTalk, Discord)
Installation
dotnet tool (recommended)
dotnet tool install -g FieldCure.AssistStudio.Runner
After installation, the assiststudio-runner command is available globally.
The published package is Windows-only because scheduling is implemented via Windows Task Scheduler and credentials are stored in Windows Credential Manager.
From source
git clone https://github.com/fieldcure/fieldcure-assiststudio-runner.git
cd fieldcure-assiststudio-runner
dotnet build
Requirements
- .NET 8.0 Runtime or later
- Windows (required for Task Scheduler and Credential Manager)
Configuration
Auto-configuration (recommended)
When launched in serve mode with no runner.json, Runner automatically scans Windows Credential Manager for known provider API keys and generates the config file. If you use AssistStudio, API keys are already stored β no manual setup needed.
Manual Setup
# Create runner.json config template
assiststudio-runner config init
# Set API key for a provider model
assiststudio-runner config set-credential "Claude" sk-ant-api03-...
# Verify (displays masked value)
assiststudio-runner config get-credential "Claude"
The config file is created at %LOCALAPPDATA%/FieldCure/AssistStudio/Runner/runner.json:
{
"defaultModelName": "Claude",
"models": {
"Claude": {
"providerType": "Claude",
"modelId": "claude-sonnet-4-20250514"
}
},
"fallbackChannel": "runner-alerts",
"logRetentionDays": 30
}
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"runner": {
"command": "assiststudio-runner",
"args": ["serve"]
}
}
}
VS Code (Copilot)
Add to .vscode/mcp.json:
{
"servers": {
"runner": {
"command": "assiststudio-runner",
"args": ["serve"]
}
}
}
From source (without dotnet tool)
{
"mcpServers": {
"runner": {
"command": "dotnet",
"args": [
"run",
"--project", "C:\\path\\to\\fieldcure-assiststudio-runner\\src\\FieldCure.AssistStudio.Runner",
"--", "serve"
]
}
}
}
Tools
| Tool | Description | Confirmation |
|---|---|---|
create_task |
Create a task with prompt, schedule, and MCP server config | Required |
update_task |
Modify task fields β partial update, only changed fields | Required |
delete_task |
Delete a task, its executions, and log files | Required |
list_tasks |
List tasks with filtering and last execution status | β |
run_task |
Start execution (async default, optional 60s wait) | Required |
get_task_history |
Query execution history with status filtering | β |
get_execution_status |
Check real-time status of an execution | β |
Usage
Conversation Example
User: "Summarize competitor news every morning at 9 AM and send it to Slack"
LLM β create_task (schedule: "0 9 * * 1-5", mcp_servers: [outbox, rag])
User: "Run a test"
LLM β run_task (wait: true) β reports result
User: "Exclude weekends"
LLM β update_task (schedule: "0 9 * * 1-5")
User: "What were yesterday's results?"
LLM β get_task_history (limit: 1)
Execution Modes
| Mode | Command | Purpose |
|---|---|---|
| Serve | assiststudio-runner serve |
MCP server (stdio) for task management |
| Exec | assiststudio-runner exec <task-id> |
Headless execution (called by schtasks) |
| Config | assiststudio-runner config init |
Create config template |
assiststudio-runner config set-credential <key> <value> |
Store API key or env var | |
assiststudio-runner config get-credential <key> |
Retrieve credential (masked) |
Exit Codes (exec mode)
| Code | Meaning |
|---|---|
0 |
Succeeded |
1 |
Failed |
2 |
Timed out |
3 |
Task not found |
4 |
Already running |
Scheduling
Cron expressions are automatically mapped to Windows Task Scheduler entries:
| Schedule | Parameter | schtasks |
|---|---|---|
| Once at specific time | schedule_once: "2026-04-07T15:30:00+09:00" |
/SC ONCE /SD 2026/04/07 /ST 15:30 |
| Every 30 minutes | schedule: "*/30 * * * *" |
/SC MINUTE /MO 30 |
| Every 2 hours | schedule: "0 */2 * * *" |
/SC HOURLY /MO 2 |
| Daily at 9:00 AM | schedule: "0 9 * * *" |
/SC DAILY /ST 09:00 |
| Weekdays at 9:00 AM | schedule: "0 9 * * 1-5" |
/SC WEEKLY /D MON,TUE,WED,THU,FRI /ST 09:00 |
| Monthly on the 1st | schedule: "0 9 1 * *" |
/SC MONTHLY /D 1 /ST 09:00 |
Scheduled tasks are created with schtasks /IT, so they run in the interactive
user context and require the user to be logged in at trigger time.
The schtasks command line uses dnx (NuGet's npx-equivalent, .NET 10+) to
fetch and run the worker β dnx FieldCure.AssistStudio.Runner@<major>.* --yes exec <id>.
Stateless MCP servers consumed by the worker (Essentials, Outbox) are spawned
the same way, pinned at their current major range. Set RunnerConfig.ToolPath
to override with a concrete executable when an offline-from-NuGet workflow is
required.
Data Storage
| Data | Location |
|---|---|
| Configuration | %LOCALAPPDATA%/FieldCure/AssistStudio/Runner/runner.json |
| Task database | %LOCALAPPDATA%/FieldCure/AssistStudio/Runner/runner.db (SQLite, WAL) |
| Execution logs | %LOCALAPPDATA%/FieldCure/AssistStudio/Runner/logs/{id}.json |
| API keys | Windows Credential Manager (FieldCure.AssistStudio) |
Project Structure
src/FieldCure.AssistStudio.Runner/
βββ Program.cs # Dual-mode entry point (serve/exec/config)
βββ Models/ # RunnerTask, TaskExecution, RunnerConfig, ExecutionLog
βββ Storage/TaskStore.cs # SQLite storage with WAL mode
βββ Credentials/ # ICredentialService + Windows PasswordVault
βββ Scheduling/ # CronToSchtasks parser, SchedulerService (schtasks)
βββ Execution/ # TaskExecutor (AgentLoop-based), McpServerPool
βββ Tools/ # 7 MCP tools for serve mode
βββ Configuration/ConfigRunner.cs # CLI config subcommands
Development
# Build
dotnet build
# Test
dotnet test
# Pack
dotnet pack -c Release
Designed for AssistStudio
Runner is purpose-built for the AssistStudio ecosystem. Tasks are typically created through natural language conversations in AssistStudio, which handles workflow design, MCP server selection, and tool permissions automatically.
While Runner can be used standalone with Claude Desktop or VS Code (via serve mode), you'll need to construct task parameters (prompt, MCP servers, allowed tools) manually. For the full experience, use AssistStudio.
See Also
Part of the AssistStudio ecosystem.
License
Install
Add assiststudio runner to your client. Pick the one you use.
claude mcp add fieldcure-assiststudio-runner -- dnx FieldCure.AssistStudio.Runner --yescodex mcp add fieldcure-assiststudio-runner -- dnx FieldCure.AssistStudio.Runner --yesamp mcp add fieldcure-assiststudio-runner -- dnx FieldCure.AssistStudio.Runner --yes{
"mcpServers": {
"fieldcure-assiststudio-runner": {
"command": "dnx",
"args": [
"FieldCure.AssistStudio.Runner",
"--yes"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"fieldcure-assiststudio-runner": {
"command": "dnx",
"args": [
"FieldCure.AssistStudio.Runner",
"--yes"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"fieldcure-assiststudio-runner","command":"dnx","args":["FieldCure.AssistStudio.Runner","--yes"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"fieldcure-assiststudio-runner": {
"command": "dnx",
"args": [
"FieldCure.AssistStudio.Runner",
"--yes"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"fieldcure-assiststudio-runner": {
"command": "dnx",
"args": [
"FieldCure.AssistStudio.Runner",
"--yes"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"fieldcure-assiststudio-runner": {
"command": "dnx",
"args": [
"FieldCure.AssistStudio.Runner",
"--yes"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"fieldcure-assiststudio-runner": {
"type": "local",
"command": "dnx",
"args": [
"FieldCure.AssistStudio.Runner",
"--yes"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"fieldcure-assiststudio-runner": {
"command": {
"path": "dnx",
"args": [
"FieldCure.AssistStudio.Runner",
"--yes"
]
}
}
}
}Add to your Zed `settings.json`.
dnx FieldCure.AssistStudio.Runner --yesRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
7 tools
assiststudio runner exposes 7 tools to a connected agent.
- create_task
- Create a task with prompt, schedule, and MCP server config
- update_task
- Modify task fields β partial update, only changed fields
- delete_task
- Delete a task, its executions, and log files
- list_tasks
- List tasks with filtering and last execution status
- run_task
- Start execution (async default, optional 60s wait)
- get_task_history
- Query execution history with status filtering
- get_execution_status
- Check real-time status of an execution
Score
72 / 100
Good
- Documentation25/25
- Maintenance13/25
- Trust16/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 99 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 7 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 2.0.4Latest | May 25, 2026 |