geoserver-rest-api

geoserver-rest-api is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 53 tokens per session (5,657 once invoked), scanned A, original, MIT.

A way to manage GeoServer through HTTP requests instead of its graphical interface. GeoServer is an open-source server that publishes map and geographic data on the web.

In plain words
What is it for?
Use it in scripts and deployment pipelines to create GeoServer resources, upload styles, update data connections, inspect server status, and reload configuration.
Why use it?
It removes repetitive manual setup when many workspaces, data sources, map layers, styles, or service settings must be created or changed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it in scripts and deployment pipelines to create GeoServer resources, upload styles, update data connections, inspect server status, and reload configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/geoserver-rest-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add znlgis/opengis-skills --skill geoserver-rest-api
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for geoserver-rest-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/geoserver-rest-api/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/geoserver-rest-api)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geoserver-rest-api"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geoserver-rest-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for geoserver-rest-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geoserver-rest-api"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geoserver-rest-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 214
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.05657
Opus 5 $0.00026 $0.02828
Sonnet 5 $0.00011 $0.01131
Haiku 4.5 $0.00005 $0.00566

Measured 8d ago against content hash c75198aff46d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

geoserver-rest-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: "Use when automating GeoServer management — programmatic workspace, datastore, and layer creation, style upload, service configuration via REST API. GeoServer REST API: manage GeoServer without GUI using cur
gis/geoserver-rest-api/SKILL.md · 469 lines

How it starts

The opening of the file, as written. The whole thing — 469 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://github.com/geoserver/geoserver

REST API 文档: https://docs.geoserver.org/latest/en/user/rest/index.html

API 参考: https://docs.geoserver.org/stable/en/user/rest/api/index.html

许可证: GPL-2.0

概述

GeoServer 是一个基于 Java 的开源地理空间数据服务器,实现了 OGC WMS、WFS、WCS、WMTS 等标准协议。GeoServer REST API 提供了完整的 RESTful 配置管理接口,可通过标准 HTTP 方法(GET / POST / PUT / DELETE)对 GeoServer 的各类资源进行编程式管理。

REST API 的典型用途包括:

  • 自动化部署:批量创建工作空间、数据存储、发布图层
  • CI/CD 集成:在持续集成流水线中自动配置 GeoServer
  • AI 智能体:通过 HTTP 接口让 AI 自主管理地图服务
  • 运维脚本:批量修改样式、更新数据源连接参数

基础 URL 格式: http://{host}:{port}/geoserver/rest

默认认证: 用户名 admin,密码 geoserver(HTTP Basic Auth)

数据格式: 支持 JSON 和 XML,通过 Accept / Content-Type 请求头或 URL 后缀(.json / .xml)指定。


认证方式

所有写操作(POST / PUT / DELETE)均需认证。GeoServer 默认使用 HTTP Basic Auth:

# curl 方式
curl -u admin:geoserver ...

# HTTP Header 方式
Authorization: Basic YWRtaW46Z2Vvc2VydmVy

API 端点一览

系统管理

操作 方法 端点 说明
获取版本信息 GET /rest/about/version.json 返回 GeoServer 版本与组件信息
获取系统状态 GET /rest/about/system-status.json 返回系统运行状态
获取清单 GET /rest/about/manifest.json 返回已加载模块清单
重新加载配置 POST /rest/reload 从磁盘重新加载配置
重置缓存 POST /rest/reset 重置内存中的资源缓存

工作空间 (Workspaces)

操作 方法 端点 说明
列出所有工作空间 GET /rest/workspaces.json 返回工作空间列表
创建工作空间 POST /rest/workspaces 创建新工作空间
获取工作空间详情 GET /rest/workspaces/{ws}.json 获取指定工作空间信息
修改工作空间 PUT /rest/workspaces/{ws} 更新工作空间配置
删除工作空间 DELETE /rest/workspaces/{ws}?recurse=true 删除工作空间(recurse=true 级联删除)
获取默认工作空间 GET /rest/workspaces/default.json 获取默认工作空间
设置默认工作空间 PUT /rest/workspaces/default 设置默认工作空间

命名空间 (Namespaces)

操作 方法 端点 说明
列出所有命名空间 GET /rest/namespaces.json 返回命名空间列表
创建命名空间 POST /rest/namespaces 创建新命名空间
获取命名空间详情 GET /rest/namespaces/{ns}.json 获取指定命名空间
修改命名空间 PUT /rest/namespaces/{ns} 更新命名空间
删除命名空间 DELETE /rest/namespaces/{ns} 删除命名空间

Read the full file on GitHub · 469 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed c75198aff46d
  2. 12d ago First seen · 469 lines · 53 tokens per session scan A 2ad0bd96e562

Subscribe to this mod's changes

geoserver-rest-api is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 5,657 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.